Rosetta 3.3
Namespaces | Functions
src/ObjexxFCL/string.functions.cc File Reference
#include <ObjexxFCL/string.functions.hh>
#include <algorithm>
#include <cctype>
#include <cstring>

Namespaces

namespace  ObjexxFCL
 

Objexx Fortran Compatibility Library.


Functions

char const ObjexxFCL::SPACE ( ' ')
std::string const ObjexxFCL::WHITESPACE (" \t\0", 3)
bool ObjexxFCL::char_equali (char const c, char const d)
 char == char Case-Insensitively (non-inline for use by equali below)?
bool ObjexxFCL::equali (std::string const &s, std::string const &t)
 string == string Case-Insensitively?
bool ObjexxFCL::equali (std::string const &s, c_cstring const t)
 string == cstring Case-Insensitively?
bool ObjexxFCL::equali (c_cstring const s, std::string const &t)
 cstring == string Case-Insensitively?
bool ObjexxFCL::has_prefix (std::string const &s, std::string const &pre, bool const exact_case)
 Has a Prefix Case-Optionally?
bool ObjexxFCL::has_suffix (std::string const &s, std::string const &suf, bool const exact_case)
 Has a Suffix Case-Optionally?
std::string & ObjexxFCL::lowercase (std::string &s)
 Lowercase a string.
std::string & ObjexxFCL::uppercase (std::string &s)
 Uppercase a string.
std::string & ObjexxFCL::left_justify (std::string &s)
 Left Justify a string.
std::string & ObjexxFCL::right_justify (std::string &s)
 Right Justify a string.
std::string & ObjexxFCL::trim (std::string &s)
 Trim Trailing Space from a string.
std::string & ObjexxFCL::trim_whitespace (std::string &s)
 Trim Trailing Whitespace from a string.
std::string & ObjexxFCL::strip (std::string &s, std::string const &chars)
 Strip Specified Characters from a string's Tails.
std::string & ObjexxFCL::lstrip (std::string &s, std::string const &chars)
 Strip Specified Characters from a string's Left Tail.
std::string & ObjexxFCL::rstrip (std::string &s, std::string const &chars)
 Strip Specified Characters from a string's Right Tail.
std::string & ObjexxFCL::strip (std::string &s)
 Strip Space from a string's Tails.
std::string & ObjexxFCL::lstrip (std::string &s)
 Strip Space from a string's Left Tail.
std::string & ObjexxFCL::rstrip (std::string &s)
 Strip Space from a string's Right Tail.
std::string & ObjexxFCL::strip_whitespace (std::string &s)
 Strip Whitespace from a string's Tails.
std::string & ObjexxFCL::lstrip_whitespace (std::string &s)
 Strip Whitespace from a string's Left Tail.
std::string & ObjexxFCL::rstrip_whitespace (std::string &s)
 Strip Whitespace from a string's Right Tail.
std::string & ObjexxFCL::pad (std::string &s, std::string::size_type const len)
 Pad a string to a Specified Length.
std::string & ObjexxFCL::lpad (std::string &s, std::string::size_type const len)
 Left-Pad a string to a Specified Length.
std::string & ObjexxFCL::rpad (std::string &s, std::string::size_type const len)
 Right-Pad a string to a Specified Length.
std::string & ObjexxFCL::size (std::string &s, std::string::size_type const len)
 Size a string to a Specified Length.
std::string & ObjexxFCL::center (std::string &s)
 Center a string wrt its Whitespace.
std::string & ObjexxFCL::center (std::string &s, std::string::size_type const len)
 Center a string with a Specified Length.
std::string & ObjexxFCL::unique (std::string &s)
 Remove Repeat Characters from a Possibly Unsorted string Preserving Order.
std::string & ObjexxFCL::overlay (std::string &s, std::string const &t, std::string::size_type const pos)
 Overlay a string With Another string, Expanding Size as Needed.
std::string ObjexxFCL::lowercased (std::string const &s)
 Lowercased Copy of a string.
std::string ObjexxFCL::uppercased (std::string const &s)
 Uppercased Copy of a string.
std::string ObjexxFCL::left_justified (std::string const &s)
 Left-Justified Copy of a string.
std::string ObjexxFCL::right_justified (std::string const &s)
 Right-Justified Copy of a string.
std::string ObjexxFCL::trimmed (std::string const &s)
 Trailing Space Trimmed Copy of a string.
std::string ObjexxFCL::trimmed_whitespace (std::string const &s)
 Trailing Whitespace Trimmed Copy of a string.
std::string ObjexxFCL::stripped (std::string const &s, std::string const &chars)
 Specified Characters Stripped from a string's Tails Copy of a string.
std::string ObjexxFCL::lstripped (std::string const &s, std::string const &chars)
 Specified Characters Stripped from a string's Left Tail Copy of a string.
std::string ObjexxFCL::rstripped (std::string const &s, std::string const &chars)
 Specified Characters Stripped from a string's Right Tail Copy of a string.
std::string ObjexxFCL::stripped (std::string const &s)
 Space Stripped from a string's Tails Copy of a string.
std::string ObjexxFCL::lstripped (std::string const &s)
 Space Stripped from a string's Left Tail Copy of a string.
std::string ObjexxFCL::rstripped (std::string const &s)
 Space Stripped from a string's Right Tail Copy of a string.
std::string ObjexxFCL::stripped_whitespace (std::string const &s)
 Whitespace Stripped from a string's Tails Copy of a string.
std::string ObjexxFCL::lstripped_whitespace (std::string const &s)
 Whitespace Stripped from a string's Left Tail Copy of a string.
std::string ObjexxFCL::rstripped_whitespace (std::string const &s)
 Whitespace Stripped from a string's Right Tail Copy of a string.
std::string ObjexxFCL::padded (std::string const &s, std::string::size_type const len)
 Padded to a Specified Length Copy of a string.
std::string ObjexxFCL::lpadded (std::string const &s, std::string::size_type const len)
 Left-Padded to a Specified Length Copy of a string.
std::string ObjexxFCL::rpadded (std::string const &s, std::string::size_type const len)
 Right-Padded to a Specified Length Copy of a string.
std::string ObjexxFCL::sized (std::string const &s, std::string::size_type const len)
 Sized to a Specified Length Copy of a string.
std::string ObjexxFCL::centered (std::string const &s)
 Centered wrt Whitespace Copy of a string.
std::string ObjexxFCL::centered (std::string const &s, std::string::size_type const len)
 Centered in a string of Specified Length Copy of a string.
std::string ObjexxFCL::uniqued (std::string const &s)
 Removed Repeat Characters from a Possibly Unsorted string Preserving Order Copy of a string.
std::string ObjexxFCL::head (std::string const &s)
 Space-Free Head Copy of a string.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines