Rosetta  2020.50
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Namespaces | Functions
string.functions.hh File Reference
#include <ObjexxFCL/TypeTraits.hh>
#include <iomanip>
#include <sstream>
#include <string>
#include <vector>

Namespaces

 ObjexxFCL
 

Functions

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::equal (std::string const &s, std::string const &t, bool const exact_case=true)
 string == string Case-Optionally? More...
 
bool ObjexxFCL::is_blank (std::string const &s)
 string is Blank? More...
 
bool ObjexxFCL::not_blank (std::string const &s)
 string is Not Blank? More...
 
bool ObjexxFCL::is_whitespace (std::string const &s)
 string is Whitespace? More...
 
bool ObjexxFCL::not_whitespace (std::string const &s)
 string is Not Whitespace? More...
 
bool ObjexxFCL::has (std::string const &s, std::string const &t)
 string has a string? More...
 
bool ObjexxFCL::has (std::string const &s, c_cstring const t)
 string has a cstring? More...
 
bool ObjexxFCL::has (std::string const &s, char const c)
 string has a Character? More...
 
bool ObjexxFCL::has_any_of (std::string const &s, std::string const &t)
 string has Any Character of a string? More...
 
bool ObjexxFCL::has_any_of (std::string const &s, char const c)
 string has a Character? 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::size_type ObjexxFCL::len_trim (std::string const &s)
 Length Space-Trimmed. More...
 
std::string::size_type ObjexxFCL::len_trim_whitespace (std::string const &s)
 Length Whitespace-Trimmed. 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::blank (std::string::size_type len)
 Blank string of Specified Length. 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...
 
template<typename T >
std::string ObjexxFCL::string_of (T const &t)
 string of a Template Argument Type Supporting Stream Output More...
 
template<typename T >
std::string ObjexxFCL::string_of (T const &t, int const p)
 string of a Template Argument Type Supporting Stream Output More...
 
template<typename T >
std::string ObjexxFCL::left_string_of (T const &t, int const w, char const f= ' ')
 Left-Justified string of a Template Argument Type Supporting Stream Output. More...
 
template<typename T >
std::string ObjexxFCL::right_string_of (T const &t, int const w, char const f= ' ')
 Right-Justified string of a Template Argument Type Supporting Stream Output. More...
 
template<typename T >
std::string ObjexxFCL::lead_zero_string_of (T const &t, int const w)
 Leading-Zero Right-Justified string of a Template Argument Type Supporting Stream Output. More...
 
template<typename T >
std::string ObjexxFCL::general_string_of (T const &t, int const w=TypeTraits< T >::width(), int const p=TypeTraits< T >::precision())
 Right-Justified General Format string of a Template Argument Type Supporting Stream Output. More...
 
template<typename T >
std::string ObjexxFCL::fixed_string_of (T const &t, int const w=TypeTraits< T >::width(), int const p=TypeTraits< T >::precision())
 Right-Justified Fixed Format string of a Template Argument Type Supporting Stream Output. More...
 
template<typename T >
std::string ObjexxFCL::scientific_string_of (T const &t, int const w=TypeTraits< T >::width(), int const p=TypeTraits< T >::precision())
 Right-Justified Scientific Format string of a Template Argument Type Supporting Stream Output. More...
 
template<typename T >
bool ObjexxFCL::is_type (std::string const &s)
 string is Readable as a Type Supporting Stream Input? More...
 
template<>
bool ObjexxFCL::is_type< char > (std::string const &s)
 string is Readable as a char Supporting Stream Input? More...
 
bool ObjexxFCL::is_bool (std::string const &s)
 string is Readable as a bool? More...
 
bool ObjexxFCL::is_short (std::string const &s)
 string is Readable as a short int? More...
 
bool ObjexxFCL::is_int (std::string const &s)
 string is Readable as an int? 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...
 
bool ObjexxFCL::is_long (std::string const &s)
 string is Readable as a long int? More...
 
bool ObjexxFCL::is_ushort (std::string const &s)
 string is Readable as a unsigned short int? More...
 
bool ObjexxFCL::is_uint (std::string const &s)
 string is Readable as an unsigned int? More...
 
bool ObjexxFCL::is_ulong (std::string const &s)
 string is Readable as a unsigned long int? More...
 
bool ObjexxFCL::is_float (std::string const &s)
 string is Readable as a float? More...
 
bool ObjexxFCL::is_double (std::string const &s)
 string is Readable as a double? More...
 
bool ObjexxFCL::is_longdouble (std::string const &s)
 string is Readable as a long double? More...
 
bool ObjexxFCL::is_char (std::string const &s)
 string is Readable as a char? More...
 
template<typename T >
T ObjexxFCL::type_of (std::string const &s)
 Type of a string for Type Supporting Stream Input. More...
 
template<>
char ObjexxFCL::type_of< char > (std::string const &s)
 char of a string More...
 
short int ObjexxFCL::short_of (std::string const &s)
 short int of a string More...
 
int ObjexxFCL::int_of (std::string const &s)
 int of a string 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...
 
long int ObjexxFCL::long_of (std::string const &s)
 long int of a string More...
 
unsigned short int ObjexxFCL::ushort_of (std::string const &s)
 unsigned short int of a string More...
 
unsigned int ObjexxFCL::uint_of (std::string const &s)
 unsigned int of a string More...
 
unsigned long int ObjexxFCL::ulong_of (std::string const &s)
 unsigned long int of a string More...
 
float ObjexxFCL::float_of (std::string const &s)
 float of a string More...
 
double ObjexxFCL::double_of (std::string const &s)
 double of a string More...
 
long double ObjexxFCL::longdouble_of (std::string const &s)
 long double of a string More...
 
char ObjexxFCL::char_of (std::string const &s)
 char of a string More...