Rosetta  3.7
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Namespaces | Functions
string.functions.cc File Reference
#include <ObjexxFCL/string.functions.hh>
#include <algorithm>
#include <cctype>
#include <cstring>

Namespaces

 ObjexxFCL
 

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)? More...
 
bool ObjexxFCL::equali (std::string const &s, std::string const &t)
 string == string Case-Insensitively? More...
 
bool ObjexxFCL::equali (std::string const &s, c_cstring const t)
 string == cstring Case-Insensitively? More...
 
bool ObjexxFCL::equali (c_cstring const s, std::string const &t)
 cstring == string Case-Insensitively? More...
 
bool ObjexxFCL::has_prefix (std::string const &s, std::string const &pre, bool const exact_case)
 Has a Prefix Case-Optionally? More...
 
bool ObjexxFCL::has_suffix (std::string const &s, std::string const &suf, bool const exact_case)
 Has a Suffix Case-Optionally? More...
 
std::string & ObjexxFCL::lowercase (std::string &s)
 Lowercase a string. More...
 
std::string & ObjexxFCL::uppercase (std::string &s)
 Uppercase a string. More...
 
std::string & ObjexxFCL::left_justify (std::string &s)
 Left Justify a string. More...
 
std::string & ObjexxFCL::right_justify (std::string &s)
 Right Justify a string. More...
 
std::string & ObjexxFCL::trim (std::string &s)
 Trim Trailing Space from a string. More...
 
std::string & ObjexxFCL::trim_whitespace (std::string &s)
 Trim Trailing Whitespace from a string. More...
 
std::string & ObjexxFCL::strip (std::string &s, std::string const &chars)
 Strip Specified Characters from a string's Tails. More...
 
std::string & ObjexxFCL::lstrip (std::string &s, std::string const &chars)
 Strip Specified Characters from a string's Left Tail. More...
 
std::string & ObjexxFCL::rstrip (std::string &s, std::string const &chars)
 Strip Specified Characters from a string's Right Tail. More...
 
std::string & ObjexxFCL::strip (std::string &s)
 Strip Space from a string's Tails. More...
 
std::string & ObjexxFCL::lstrip (std::string &s)
 Strip Space from a string's Left Tail. More...
 
std::string & ObjexxFCL::rstrip (std::string &s)
 Strip Space from a string's Right Tail. More...
 
std::string & ObjexxFCL::strip_whitespace (std::string &s)
 Strip Whitespace from a string's Tails. More...
 
std::string & ObjexxFCL::lstrip_whitespace (std::string &s)
 Strip Whitespace from a string's Left Tail. More...
 
std::string & ObjexxFCL::rstrip_whitespace (std::string &s)
 Strip Whitespace from a string's Right Tail. More...
 
std::string & ObjexxFCL::pad (std::string &s, std::string::size_type len)
 Pad a string to a Specified Length. More...
 
std::string & ObjexxFCL::lpad (std::string &s, std::string::size_type len)
 Left-Pad a string to a Specified Length. More...
 
std::string & ObjexxFCL::rpad (std::string &s, std::string::size_type len)
 Right-Pad a string to a Specified Length. More...
 
std::string & ObjexxFCL::size (std::string &s, std::string::size_type len)
 Size a string to a Specified Length. More...
 
std::string & ObjexxFCL::center (std::string &s)
 Center a string wrt its Whitespace. More...
 
std::string & ObjexxFCL::center (std::string &s, std::string::size_type len)
 Center a string with a Specified Length. More...
 
std::string & ObjexxFCL::unique (std::string &s)
 Remove Repeat Characters from a Possibly Unsorted string Preserving Order. More...
 
std::string & ObjexxFCL::overlay (std::string &s, std::string const &t, std::string::size_type pos)
 Overlay a string With Another string, Expanding Size as Needed. More...
 
std::string ObjexxFCL::lowercased (std::string const &s)
 Lowercased Copy of a string. More...
 
std::string ObjexxFCL::uppercased (std::string const &s)
 Uppercased Copy of a string. More...
 
std::string ObjexxFCL::left_justified (std::string const &s)
 Left-Justified Copy of a string. More...
 
std::string ObjexxFCL::right_justified (std::string const &s)
 Right-Justified Copy of a string. More...
 
std::string ObjexxFCL::trimmed (std::string const &s)
 Trailing Space Trimmed Copy of a string. More...
 
std::string ObjexxFCL::trimmed_whitespace (std::string const &s)
 Trailing Whitespace Trimmed Copy of a string. More...
 
std::string ObjexxFCL::stripped (std::string const &s, std::string const &chars)
 Specified Characters Stripped from a string's Tails Copy of a string. More...
 
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. More...
 
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. More...
 
std::string ObjexxFCL::stripped (std::string const &s)
 Space Stripped from a string's Tails Copy of a string. More...
 
std::string ObjexxFCL::lstripped (std::string const &s)
 Space Stripped from a string's Left Tail Copy of a string. More...
 
std::string ObjexxFCL::rstripped (std::string const &s)
 Space Stripped from a string's Right Tail Copy of a string. More...
 
std::string ObjexxFCL::stripped_whitespace (std::string const &s)
 Whitespace Stripped from a string's Tails Copy of a string. More...
 
std::string ObjexxFCL::lstripped_whitespace (std::string const &s)
 Whitespace Stripped from a string's Left Tail Copy of a string. More...
 
std::string ObjexxFCL::rstripped_whitespace (std::string const &s)
 Whitespace Stripped from a string's Right Tail Copy of a string. More...
 
std::string ObjexxFCL::padded (std::string const &s, std::string::size_type len)
 Padded to a Specified Length Copy of a string. More...
 
std::string ObjexxFCL::lpadded (std::string const &s, std::string::size_type len)
 Left-Padded to a Specified Length Copy of a string. More...
 
std::string ObjexxFCL::rpadded (std::string const &s, std::string::size_type len)
 Right-Padded to a Specified Length Copy of a string. More...
 
std::string ObjexxFCL::sized (std::string const &s, std::string::size_type len)
 Sized to a Specified Length Copy of a string. More...
 
std::string ObjexxFCL::centered (std::string const &s)
 Centered wrt Whitespace Copy of a string. More...
 
std::string ObjexxFCL::centered (std::string const &s, std::string::size_type len)
 Centered in a string of Specified Length Copy of a string. More...
 
std::string ObjexxFCL::uniqued (std::string const &s)
 Removed Repeat Characters from a Possibly Unsorted string Preserving Order Copy of a string. More...
 
std::string ObjexxFCL::head (std::string const &s)
 Space-Free Head Copy of a string. More...
 
bool ObjexxFCL::is_ints (std::string const &s)
 ints of a string (e.g., allowing "5-8" to represent "5 6 7 8"). More...
 
std::vector< intObjexxFCL::ints_of (std::string const &s)
 ints of a string (e.g., allowing "5-8" to represent "5 6 7 8"). More...
 
std::vector< intObjexxFCL::ints_of (std::string const &s_input, bool &string_is_ok)
 ints of a string (e.g., allowing "5-8" to represent "5 6 7 8"). new – allow comma separation. More...