Rosetta 3.3
Namespaces | Functions
src/ObjexxFCL/string.functions.hh File Reference
#include <ObjexxFCL/TypeTraits.hh>
#include <iomanip>
#include <sstream>
#include <string>

Namespaces

namespace  ObjexxFCL
 

Objexx Fortran Compatibility Library.


Functions

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::equal (std::string const &s, std::string const &t, bool const exact_case=true)
 string == string Case-Optionally?
bool ObjexxFCL::is_blank (std::string const &s)
 string is Blank?
bool ObjexxFCL::not_blank (std::string const &s)
 string is Not Blank?
bool ObjexxFCL::is_whitespace (std::string const &s)
 string is Whitespace?
bool ObjexxFCL::not_whitespace (std::string const &s)
 string is Not Whitespace?
bool ObjexxFCL::has (std::string const &s, std::string const &t)
 string has a string?
bool ObjexxFCL::has (std::string const &s, c_cstring const t)
 string has a cstring?
bool ObjexxFCL::has (std::string const &s, char const c)
 string has a Character?
bool ObjexxFCL::has_any_of (std::string const &s, std::string const &t)
 string has Any Character of a string?
bool ObjexxFCL::has_any_of (std::string const &s, char const c)
 string has a Character?
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::size_type ObjexxFCL::len_trim (std::string const &s)
 Length Space-Trimmed.
std::string::size_type ObjexxFCL::len_trim_whitespace (std::string const &s)
 Length Whitespace-Trimmed.
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::blank (std::string::size_type const len)
 Blank string of Specified Length.
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.
template<typename T >
std::string ObjexxFCL::string_of (T const &t)
 string of a Template Argument Type Supporting Stream Output
template<typename T >
std::string ObjexxFCL::string_of (T const &t, int const p)
 string of a Template Argument Type Supporting Stream Output
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.
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.
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.
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.
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.
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.
template<typename T >
bool ObjexxFCL::is_type (std::string const &s)
 string is Readable as a Type Supporting Stream Input?
template<>
bool ObjexxFCL::is_type< char > (std::string const &s)
 string is Readable as a char Supporting Stream Input?
bool ObjexxFCL::is_bool (std::string const &s)
 string is Readable as a bool?
bool ObjexxFCL::is_short (std::string const &s)
 string is Readable as a short int?
bool ObjexxFCL::is_int (std::string const &s)
 string is Readable as an int?
bool ObjexxFCL::is_long (std::string const &s)
 string is Readable as a long int?
bool ObjexxFCL::is_ushort (std::string const &s)
 string is Readable as a unsigned short int?
bool ObjexxFCL::is_uint (std::string const &s)
 string is Readable as an unsigned int?
bool ObjexxFCL::is_ulong (std::string const &s)
 string is Readable as a unsigned long int?
bool ObjexxFCL::is_float (std::string const &s)
 string is Readable as a float?
bool ObjexxFCL::is_double (std::string const &s)
 string is Readable as a double?
bool ObjexxFCL::is_longdouble (std::string const &s)
 string is Readable as a long double?
bool ObjexxFCL::is_char (std::string const &s)
 string is Readable as a char?
template<typename T >
ObjexxFCL::type_of (std::string const &s)
 Type of a string for Type Supporting Stream Input.
template<>
char ObjexxFCL::type_of< char > (std::string const &s)
 char of a string
short int ObjexxFCL::short_of (std::string const &s)
 short int of a string
int ObjexxFCL::int_of (std::string const &s)
 int of a string
long int ObjexxFCL::long_of (std::string const &s)
 long int of a string
unsigned short int ObjexxFCL::ushort_of (std::string const &s)
 unsigned short int of a string
unsigned int ObjexxFCL::uint_of (std::string const &s)
 unsigned int of a string
unsigned long int ObjexxFCL::ulong_of (std::string const &s)
 unsigned long int of a string
float ObjexxFCL::float_of (std::string const &s)
 float of a string
double ObjexxFCL::double_of (std::string const &s)
 double of a string
long double ObjexxFCL::longdouble_of (std::string const &s)
 long double of a string
char ObjexxFCL::char_of (std::string const &s)
 char of a string
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines