Rosetta 3.3
Public Types | Public Member Functions | Protected Member Functions | Friends
ObjexxFCL::Fstring Class Reference

Fstring: Fixed-Length Fortran-Compatible String. More...

#include <Fstring.hh>

Inheritance diagram for ObjexxFCL::Fstring:
Inheritance graph
[legend]
Collaboration diagram for ObjexxFCL::Fstring:
Collaboration graph
[legend]

List of all members.

Public Types

typedef std::size_t size_type
typedef void(* initializer_function )(Fstring &)
typedef std::size_t Size
typedef void(* InitializerFunction )(Fstring &)

Public Member Functions

 Fstring ()
 Default Constructor.
 Fstring (Fstring const &s)
 Copy Constructor.
 Fstring (std::string const &s)
 string Constructor
 Fstring (c_cstring const s)
 cstring Constructor
 Fstring (char const c)
 char Constructor
 Fstring (signed char const c)
 signed char Constructor
 Fstring (unsigned char const c)
 unsigned char Constructor
 Fstring (short int const len_a)
 Length Constructor.
 Fstring (int const len_a)
 Length Constructor.
 Fstring (long int const len_a)
 Length Constructor.
 Fstring (unsigned short int const len_a)
 Length Constructor.
 Fstring (unsigned int const len_a)
 Length Constructor.
 Fstring (unsigned long int const len_a)
 Length Constructor.
 Fstring (size_type const len_a, Fstring const &s)
 Length + Fstring Constructor.
 Fstring (size_type const len_a, std::string const &s)
 Length + string Constructor.
 Fstring (size_type const len_a, c_cstring const s)
 Length + cstring Constructor.
 Fstring (size_type const len_a, char const c)
 Length + char Constructor.
 Fstring (size_type const len_a, initializer_function init)
 Length + Initializer Constructor.
virtual ~Fstring ()
 Destructor.
 operator std::string () const
 string Conversion
Fstringoperator= (Fstring const &s)
 Copy Assignment.
Fstringoperator= (std::string const &s)
 = string
Fstringoperator= (c_cstring const s)
 = cstring
Fstringoperator= (char const c)
 = char
char operator[] (size_type const i) const
 Constant char: s[ i ].
char & operator[] (size_type const i)
 char: s[ i ]
bool empty () const
 Empty?
bool is_blank () const
 Blank?
bool not_blank () const
 Not blank?
bool is_whitespace () const
 Whitespace?
bool not_whitespace () const
 Not whitespace?
bool has (Fstring const &s) const
 Has an Fstring?
bool has (std::string const &s) const
 Has a string?
bool has (c_cstring const s) const
 Has a cstring?
bool has (char const c) const
 Has a Character?
bool has_any_of (Fstring const &s) const
 Has Any Character of an Fstring?
bool has_any_of (std::string const &s) const
 Has Any Character of a string?
bool has_any_of (c_cstring const s) const
 Has Any Character of a cstring?
bool has_any_of (char const c) const
 Has a Character?
bool has_prefix (Fstring const &s, bool const exact_case=true) const
 Has a Prefix Case-Optionally?
bool has_prefix (c_cstring const s, bool const exact_case=true) const
 Has a Prefix Case-Optionally?
template<typename T >
bool is_type () const
 Fstring is Readable as a Type Supporting Stream Input?
bool is_bool () const
 Fstring is Readable as a bool?
bool is_short () const
 Fstring is Readable as a short int?
bool is_int () const
 Fstring is Readable as an int?
bool is_long () const
 Fstring is Readable as a long int?
bool is_ushort () const
 Fstring is Readable as a unsigned short int?
bool is_uint () const
 Fstring is Readable as an unsigned int?
bool is_ulong () const
 Fstring is Readable as a unsigned long int?
bool is_float () const
 Fstring is Readable as a float?
bool is_double () const
 Fstring is Readable as a double?
bool is_longdouble () const
 Fstring is Readable as a long double?
bool is_char () const
 Fstring is Readable as a char?
bool is_string () const
 Fstring is Readable as a string?
size_type size () const
 Size.
size_type length () const
 Length.
size_type len () const
 Length.
size_type len_trim () const
 Length Space-Trimmed.
size_type len_trim_whitespace () const
 Length Whitespace-Trimmed.
size_type find_whitespace () const
 Find First Occurrence of a Whitespace Character.
size_type find_non_whitespace () const
 Find First Occurrence of a Non-Whitespace Character.
size_type find_last_whitespace () const
 Find Last Occurrence of a Whitespace Character.
size_type find_last_non_whitespace () const
 Find Last Occurrence of a Non-Whitespace Character.
size_type trimmed_whitespace_range (size_type &b, size_type &e) const
 Get Range of Whitespace-Trimmed Portion and Return its Length.
size_type find (Fstring const &s) const
 Find First Occurrence of an Fstring.
size_type find (std::string const &s) const
 Find First Occurrence of a string.
size_type find (c_cstring const s) const
 Find First Occurrence of a cstring.
size_type find (char const c) const
 Find First Occurrence of a Character.
size_type find_last (Fstring const &s) const
 Find Last Occurrence of an Fstring.
size_type find_last (std::string const &s) const
 Find Last Occurrence of a string.
size_type find_last (c_cstring const s) const
 Find Last Occurrence of a cstring.
size_type find_last (char const c) const
 Find Last Occurrence of a Character.
size_type find_first_of (Fstring const &s) const
 Find First Occurrence of Any Character of an Fstring.
size_type find_first_of (std::string const &s) const
 Find First Occurrence of Any Character of a string.
size_type find_first_of (c_cstring const s) const
 Find First Occurrence of Any Character of a cstring.
size_type find_first_of (char const c) const
 Find First Occurrence of a Character.
size_type find_first_not_of (Fstring const &s) const
 Find First Occurrence of Any Character not of an Fstring.
size_type find_first_not_of (std::string const &s) const
 Find First Occurrence of Any Character not of a string.
size_type find_first_not_of (c_cstring const s) const
 Find First Occurrence of Any Character not of a cstring.
size_type find_first_not_of (char const c) const
 Find First Occurrence of not a Character.
size_type find_last_of (Fstring const &s) const
 Find Last Occurrence of Any Character of an Fstring.
size_type find_last_of (std::string const &s) const
 Find Last Occurrence of Any Character of a string.
size_type find_last_of (c_cstring const s) const
 Find Last Occurrence of Any Character of a cstring.
size_type find_last_of (char const c) const
 Find Last Occurrence of a Character.
size_type find_last_not_of (Fstring const &s) const
 Find Last Occurrence of Any Character not of an Fstring.
size_type find_last_not_of (std::string const &s) const
 Find Last Occurrence of Any Character not of a string.
size_type find_last_not_of (c_cstring const s) const
 Find Last Occurrence of Any Character not of a cstring.
size_type find_last_not_of (char const c) const
 Find Last Occurrence not of a Character.
template<typename T >
type_of () const
 Type of an Fstring for Type Supporting Stream Input.
short int short_of () const
 short int of the Fstring
int int_of () const
 int of the Fstring
long int long_of () const
 long int of the Fstring
unsigned short int ushort_of () const
 unsigned short int of the Fstring
unsigned int uint_of () const
 unsigned int of the Fstring
unsigned long int ulong_of () const
 unsigned long int of the Fstring
float float_of () const
 float of the Fstring
double double_of () const
 double of the Fstring
long double longdouble_of () const
 long double of the Fstring
char char_of () const
 char of the Fstring
std::string string_of () const
 string of the Fstring
Fstringlowercase ()
 Lowercase.
Fstringuppercase ()
 Uppercase.
Fstringleft_justify ()
 Left Justify.
Fstringright_justify ()
 Right Justify.
Fstringcenter ()
 Center.
Fstringcompress ()
 Compress Out Whitespace.
Fstringtrim ()
 Trim Trailing Space.
Fstringtrim_whitespace ()
 Trim Trailing Whitespace Replacing it with Space.
Fstringstrip (std::string const &chars)
 Strip Specified Characters from an Fstring's Tails.
Fstringlstrip (std::string const &chars)
 Strip Specified Characters from an Fstring's Left Tail.
Fstringrstrip (std::string const &chars)
 Strip Specified Characters from an Fstring's Right Tail.
Fstringstrip ()
 Strip Space from an Fstring's Tails.
Fstringlstrip ()
 Strip Space from an Fstring's Left Tail.
Fstringrstrip ()
 Strip Space from an Fstring's Right Tail.
Fstringstrip_whitespace ()
 Strip Whitespace from an Fstring's Tails.
Fstringlstrip_whitespace ()
 Strip Whitespace from an Fstring's Left Tail.
Fstringrstrip_whitespace ()
 Strip Whitespace from an Fstring's Right Tail.
Fstringclear ()
 Clear.
Fstringoverlay (Fstring const &s, size_type const pos=1)
 Overlay an Fstring.
Fstringoverlay (std::string const &s, size_type const pos=1)
 Overlay a string.
Fstringoverlay (c_cstring const s, size_type const pos=1)
 Overlay a cstring.
Fstring left_justified () const
 Left-Justified Copy.
Fstring right_justified () const
 Right-Justified Copy.
Fstring centered () const
 Centered Copy.
Fstring compressed () const
 Compressed Copy.
Fstring lowercased () const
 Lowercased Copy.
Fstring uppercased () const
 Uppercased Copy.
Fstring trimmed () const
 Trailing Space Trimmed Copy.
Fstring trimmed_whitespace () const
 Trailing Whitespace Trimmed Copy.
Fstring stripped (std::string const &chars) const
 Specified Characters Stripped from Tails Copy.
Fstring lstripped (std::string const &chars) const
 Specified Characters Stripped from Left Tail Copy.
Fstring rstripped (std::string const &chars) const
 Specified Characters Stripped from Right Tail Copy.
Fstring stripped () const
 Space Stripped from Tails Copy.
Fstring lstripped () const
 Space Stripped from Left Tail Copy.
Fstring rstripped () const
 Space Stripped from Right Tail Copy.
Fstring stripped_whitespace () const
 Whitespace Stripped from Tails Copy.
Fstring lstripped_whitespace () const
 Whitespace Stripped from Left Tail Copy.
Fstring rstripped_whitespace () const
 Whitespace Stripped from Right Tail Copy.
c_cstring c_str () const
 Null-Terminated cstring Copy of the Fstring that is Owned by the Fstring.
c_cstring t_str () const
 Whitespace-Trimmed Null-Terminated cstring Copy of the Fstring that is Owned by the Fstring.
c_cstring data () const
 Non-Null-Terminated cstring Copy of the Fstring Data.
size_type copy (cstring str, size_type const len_a, size_type const off=0) const
 Copy to a Pre-Allocated String.
Fsubstring const operator() (size_type const i, size_type const j) const
 Constant Substring: s( i, j )
Fsubstring operator() (size_type const i, size_type const j)
 Substring: s( i, j )
Fstring const operator() (size_type const i) const
 Constant Tail Substring: s( i )
Fsubstring operator() (size_type const i)
 Tail Substring: s( i )
Fsubstring const head () const
 Space-Free Head Constant Substring.
Fsubstring head ()
 Space-Free Head Substring.
Fsubstring tail ()
 Space Tail Substring.
Fsubstring const tail () const
 Space Tail Constant Substring.

Protected Member Functions

 Fstring (Fstring const &s, size_type const i, size_type const j)
 Substring Range Constructor.
 Fstring (Fstring const &s, size_type const i)
 Substring Tail Constructor.

Friends

class Fsubstring
Fstring operator+ (Fstring const &s, Fstring const &t)
 Fstring + Fstring.
std::string operator+ (Fstring const &s, std::string const &t)
 Fstring + string.
std::string operator+ (std::string const &t, Fstring const &s)
 string + Fstring
Fstring operator+ (Fstring const &s, c_cstring const t)
 Fstring + cstring.
Fstring operator+ (c_cstring const s, Fstring const &t)
 cstring + Fstring
Fstring operator+ (Fstring const &s, char const c)
 Fstring + char.
Fstring operator+ (char const c, Fstring const &s)
 char + Fstring
bool operator== (Fstring const &s, Fstring const &t)
 Fstring == Fstring.
bool operator!= (Fstring const &s, Fstring const &t)
 Fstring != Fstring.
bool operator== (Fstring const &s, std::string const &t)
 Fstring == string.
bool operator== (std::string const &t, Fstring const &s)
 string == Fstring
bool operator!= (Fstring const &s, std::string const &t)
 Fstring != string.
bool operator!= (std::string const &t, Fstring const &s)
 string != Fstring
bool operator== (Fstring const &s, c_cstring const t)
 Fstring == cstring.
bool operator== (c_cstring const t, Fstring const &s)
 cstring == Fstring
bool operator!= (Fstring const &s, c_cstring const t)
 Fstring != cstring.
bool operator!= (c_cstring const t, Fstring const &s)
 cstring != Fstring
bool operator== (Fstring const &s, char const c)
 Fstring == char.
bool operator== (char const c, Fstring const &s)
 char == Fstring
bool operator!= (Fstring const &s, char const c)
 Fstring != char.
bool operator!= (char const c, Fstring const &s)
 char != Fstring
bool equali (Fstring const &s, Fstring const &t)
 Fstring == Fstring Case-Insensitively?
bool equali (Fstring const &s, std::string const &t)
 Fstring == string Case-Insensitively?
bool equali (std::string const &s, Fstring const &t)
 string == Fstring Case-Insensitively?
bool equali (Fstring const &s, char const c)
 Fstring == char Case-Insensitively?
bool equali (char const c, Fstring const &s)
 char == Fstring Case-Insensitively?
bool equal (Fstring const &s, Fstring const &t, bool const exact_case=true)
 Fstring == Fstring Case-Optionally?
bool equal (Fstring const &s, char const c, bool const exact_case=true)
 Fstring == char Case-Optionally?
bool equal (char const c, Fstring const &s, bool const exact_case=true)
 char == Fstring Case-Optionally?
bool operator<= (Fstring const &s, Fstring const &t)
 Fstring <= Fstring.
bool operator< (Fstring const &s, Fstring const &t)
 Fstring < Fstring.
bool operator>= (Fstring const &s, Fstring const &t)
 Fstring >= Fstring.
bool operator> (Fstring const &s, Fstring const &t)
 Fstring > Fstring.
bool operator<= (Fstring const &s, std::string const &t)
 Fstring <= string.
bool operator< (Fstring const &s, std::string const &t)
 Fstring < string.
bool operator>= (Fstring const &s, std::string const &t)
 Fstring >= string.
bool operator> (Fstring const &s, std::string const &t)
 Fstring > string.
bool operator<= (std::string const &s, Fstring const &t)
 string <= Fstring
bool operator< (std::string const &s, Fstring const &t)
 string < Fstring
bool operator>= (std::string const &s, Fstring const &t)
 string >= Fstring
bool operator> (std::string const &s, Fstring const &t)
 string > Fstring
bool operator<= (Fstring const &s, c_cstring const t)
 Fstring <= cstring.
bool operator< (Fstring const &s, c_cstring const t)
 Fstring < cstring.
bool operator>= (Fstring const &s, c_cstring const t)
 Fstring >= cstring.
bool operator> (Fstring const &s, c_cstring const t)
 Fstring > cstring.
bool operator<= (c_cstring const s, Fstring const &t)
 cstring <= Fstring
bool operator< (c_cstring const s, Fstring const &t)
 cstring < Fstring
bool operator>= (c_cstring const s, Fstring const &t)
 cstring >= Fstring
bool operator> (c_cstring const s, Fstring const &t)
 cstring > Fstring
std::istream & operator>> (std::istream &stream, Fstring &s)
 Stream Input.
std::istream & get (std::istream &stream, Fstring &s)
 Get from Stream.
std::istream & getline (std::istream &stream, Fstring &s)
 Get Line from Stream.
std::istream & read (std::istream &stream, Fstring &s)
 Read from Stream.
std::istream & readsome (std::istream &stream, Fstring &s)
 Read Available Characters from Stream.
std::ostream & operator<< (std::ostream &stream, Fstring const &s)
 Stream Output.

Detailed Description

Fstring: Fixed-Length Fortran-Compatible String.

Remarks:
  • Subscripts run from 1 to the length
  • Space-padding is used in comparisons and assignments
  • Internal string rep is not null-terminated
  • Zero-length Fstrings are supported but cannot be indexed into (no valid indices)
  • All the length constructors are needed to avoid ambiguity with the char constructor
  • Assignment can set length/string if Fstring is uninitialized (default constructed)
  • Substrings: Use s( i, j ) or s( i ) / Pass s( i, j ).ref() to a non-const Fstring& argument
  • Assumes that char is a single-byte ASCII-collated character

Member Typedef Documentation


Constructor & Destructor Documentation

ObjexxFCL::Fstring::Fstring ( ) [inline]
ObjexxFCL::Fstring::Fstring ( Fstring const &  s)

Copy Constructor.

ObjexxFCL::Fstring::Fstring ( std::string const &  s)

string Constructor

ObjexxFCL::Fstring::Fstring ( c_cstring const  s)

cstring Constructor

ObjexxFCL::Fstring::Fstring ( char const  c) [inline, explicit]

char Constructor

ObjexxFCL::Fstring::Fstring ( signed char const  c) [inline, explicit]

signed char Constructor

ObjexxFCL::Fstring::Fstring ( unsigned char const  c) [inline, explicit]

unsigned char Constructor

ObjexxFCL::Fstring::Fstring ( short int const  len_a) [explicit]

Length Constructor.

References ObjexxFCL::SPACE().

ObjexxFCL::Fstring::Fstring ( int const  len_a) [explicit]

Length Constructor.

References ObjexxFCL::SPACE().

ObjexxFCL::Fstring::Fstring ( long int const  len_a) [explicit]

Length Constructor.

References ObjexxFCL::SPACE().

ObjexxFCL::Fstring::Fstring ( unsigned short int const  len_a) [explicit]

Length Constructor.

References ObjexxFCL::SPACE().

ObjexxFCL::Fstring::Fstring ( unsigned int const  len_a) [explicit]

Length Constructor.

References ObjexxFCL::SPACE().

ObjexxFCL::Fstring::Fstring ( unsigned long int const  len_a) [explicit]

Length Constructor.

References ObjexxFCL::SPACE().

ObjexxFCL::Fstring::Fstring ( size_type const  len_a,
Fstring const &  s 
)

Length + Fstring Constructor.

References ObjexxFCL::SPACE().

ObjexxFCL::Fstring::Fstring ( size_type const  len_a,
std::string const &  s 
)

Length + string Constructor.

References ObjexxFCL::SPACE().

ObjexxFCL::Fstring::Fstring ( size_type const  len_a,
c_cstring const  s 
)

Length + cstring Constructor.

References ObjexxFCL::SPACE().

ObjexxFCL::Fstring::Fstring ( size_type const  len_a,
char const  c 
)

Length + char Constructor.

Note:
Fills with specified char => Use Fstring( len_a, "c" ) for space-padded single character
ObjexxFCL::Fstring::Fstring ( size_type const  len_a,
initializer_function  init 
)

Length + Initializer Constructor.

References src::init(), and ObjexxFCL::SPACE().

virtual ObjexxFCL::Fstring::~Fstring ( ) [inline, virtual]

Destructor.

ObjexxFCL::Fstring::Fstring ( Fstring const &  s,
size_type const  i,
size_type const  j 
) [protected]

Substring Range Constructor.

ObjexxFCL::Fstring::Fstring ( Fstring const &  s,
size_type const  i 
) [protected]

Substring Tail Constructor.


Member Function Documentation

c_cstring ObjexxFCL::Fstring::c_str ( ) const

Null-Terminated cstring Copy of the Fstring that is Owned by the Fstring.

Fstring & ObjexxFCL::Fstring::center ( )
Fstring ObjexxFCL::Fstring::centered ( ) const [inline]

Centered Copy.

References Fstring().

Referenced by ObjexxFCL::center().

char ObjexxFCL::Fstring::char_of ( ) const [inline]

char of the Fstring

Fstring& ObjexxFCL::Fstring::clear ( ) [inline]
Fstring & ObjexxFCL::Fstring::compress ( )

Compress Out Whitespace.

References color_pdb::i, ObjexxFCL::NULLC(), ObjexxFCL::SPACE(), and ObjexxFCL::TAB().

Fstring ObjexxFCL::Fstring::compressed ( ) const [inline]

Compressed Copy.

References Fstring().

Referenced by ObjexxFCL::compress().

Fstring::size_type ObjexxFCL::Fstring::copy ( cstring  str,
size_type const  len_a,
size_type const  off = 0 
) const

Copy to a Pre-Allocated String.

References basic::options::OptionKeys::ddg::min.

Referenced by ObjexxFCL::Fsubstring::operator=(), and operator=().

c_cstring ObjexxFCL::Fstring::data ( ) const [inline]

Non-Null-Terminated cstring Copy of the Fstring Data.

double ObjexxFCL::Fstring::double_of ( ) const [inline]

double of the Fstring

bool ObjexxFCL::Fstring::empty ( ) const [inline]

Empty?

Referenced by ObjexxFCL::operator==().

Fstring::size_type ObjexxFCL::Fstring::find ( Fstring const &  s) const

Find First Occurrence of an Fstring.

References color_pdb::i, and length().

Referenced by head(), and ObjexxFCL::index().

Fstring::size_type ObjexxFCL::Fstring::find ( std::string const &  s) const

Find First Occurrence of a string.

References color_pdb::i.

Fstring::size_type ObjexxFCL::Fstring::find ( char const  c) const

Find First Occurrence of a Character.

References color_pdb::i.

Fstring::size_type ObjexxFCL::Fstring::find ( c_cstring const  s) const

Find First Occurrence of a cstring.

References color_pdb::i.

Fstring::size_type ObjexxFCL::Fstring::find_first_not_of ( std::string const &  s) const

Find First Occurrence of Any Character not of a string.

References color_pdb::i.

Fstring::size_type ObjexxFCL::Fstring::find_first_not_of ( char const  c) const

Find First Occurrence of not a Character.

Find First Occurrence not of a Character.

References color_pdb::i.

Fstring::size_type ObjexxFCL::Fstring::find_first_not_of ( Fstring const &  s) const

Find First Occurrence of Any Character not of an Fstring.

References color_pdb::i.

Referenced by lstrip(), lstrip_whitespace(), lstripped(), lstripped_whitespace(), strip(), strip_whitespace(), stripped(), and stripped_whitespace().

Fstring::size_type ObjexxFCL::Fstring::find_first_not_of ( c_cstring const  s) const

Find First Occurrence of Any Character not of a cstring.

References color_pdb::i.

Fstring::size_type ObjexxFCL::Fstring::find_first_of ( Fstring const &  s) const

Find First Occurrence of Any Character of an Fstring.

References color_pdb::i.

Fstring::size_type ObjexxFCL::Fstring::find_first_of ( std::string const &  s) const

Find First Occurrence of Any Character of a string.

References color_pdb::i.

Fstring::size_type ObjexxFCL::Fstring::find_first_of ( c_cstring const  s) const

Find First Occurrence of Any Character of a cstring.

References color_pdb::i.

Fstring::size_type ObjexxFCL::Fstring::find_first_of ( char const  c) const

Find First Occurrence of a Character.

References color_pdb::i.

Fstring::size_type ObjexxFCL::Fstring::find_last ( Fstring const &  s) const

Find Last Occurrence of an Fstring.

References color_pdb::i, and length().

Referenced by ObjexxFCL::last_index().

Fstring::size_type ObjexxFCL::Fstring::find_last ( std::string const &  s) const

Find Last Occurrence of a string.

References color_pdb::i.

Fstring::size_type ObjexxFCL::Fstring::find_last ( char const  c) const

Find Last Occurrence of a Character.

References color_pdb::i.

Fstring::size_type ObjexxFCL::Fstring::find_last ( c_cstring const  s) const

Find Last Occurrence of a cstring.

References color_pdb::i.

Fstring::size_type ObjexxFCL::Fstring::find_last_non_whitespace ( ) const

Find Last Occurrence of a Non-Whitespace Character.

References color_pdb::i, ObjexxFCL::NULLC(), ObjexxFCL::SPACE(), and ObjexxFCL::TAB().

Fstring::size_type ObjexxFCL::Fstring::find_last_not_of ( std::string const &  s) const

Find Last Occurrence of Any Character not of a string.

References color_pdb::i.

Fstring::size_type ObjexxFCL::Fstring::find_last_not_of ( c_cstring const  s) const

Find Last Occurrence of Any Character not of a cstring.

References color_pdb::i.

Fstring::size_type ObjexxFCL::Fstring::find_last_not_of ( char const  c) const

Find Last Occurrence not of a Character.

References color_pdb::i.

Fstring::size_type ObjexxFCL::Fstring::find_last_not_of ( Fstring const &  s) const

Find Last Occurrence of Any Character not of an Fstring.

References color_pdb::i.

Referenced by rstrip(), rstrip_whitespace(), rstripped(), rstripped_whitespace(), strip(), strip_whitespace(), stripped(), and stripped_whitespace().

Fstring::size_type ObjexxFCL::Fstring::find_last_of ( c_cstring const  s) const

Find Last Occurrence of Any Character of a cstring.

References color_pdb::i.

Fstring::size_type ObjexxFCL::Fstring::find_last_of ( char const  c) const

Find Last Occurrence of a Character.

References color_pdb::i.

Fstring::size_type ObjexxFCL::Fstring::find_last_of ( Fstring const &  s) const

Find Last Occurrence of Any Character of an Fstring.

References color_pdb::i.

Fstring::size_type ObjexxFCL::Fstring::find_last_of ( std::string const &  s) const

Find Last Occurrence of Any Character of a string.

References color_pdb::i.

Fstring::size_type ObjexxFCL::Fstring::find_last_whitespace ( ) const

Find Last Occurrence of a Whitespace Character.

References color_pdb::i, ObjexxFCL::NULLC(), ObjexxFCL::SPACE(), and ObjexxFCL::TAB().

Fstring::size_type ObjexxFCL::Fstring::find_non_whitespace ( ) const

Find First Occurrence of a Non-Whitespace Character.

References color_pdb::i, ObjexxFCL::NULLC(), ObjexxFCL::SPACE(), and ObjexxFCL::TAB().

Referenced by trimmed_whitespace_range().

Fstring::size_type ObjexxFCL::Fstring::find_whitespace ( ) const

Find First Occurrence of a Whitespace Character.

References color_pdb::i, ObjexxFCL::NULLC(), ObjexxFCL::SPACE(), and ObjexxFCL::TAB().

float ObjexxFCL::Fstring::float_of ( ) const [inline]

float of the Fstring

bool ObjexxFCL::Fstring::has ( c_cstring const  s) const

Has a cstring?

References color_pdb::i.

bool ObjexxFCL::Fstring::has ( char const  c) const

Has a Character?

References color_pdb::i.

bool ObjexxFCL::Fstring::has ( Fstring const &  s) const

Has an Fstring?

References color_pdb::i.

bool ObjexxFCL::Fstring::has ( std::string const &  s) const

Has a string?

References color_pdb::i.

bool ObjexxFCL::Fstring::has_any_of ( Fstring const &  s) const

Has Any Character of an Fstring?

References color_pdb::i.

Referenced by ObjexxFCL::has_any_of().

bool ObjexxFCL::Fstring::has_any_of ( c_cstring const  s) const

Has Any Character of a cstring?

References color_pdb::i.

bool ObjexxFCL::Fstring::has_any_of ( std::string const &  s) const

Has Any Character of a string?

References color_pdb::i.

bool ObjexxFCL::Fstring::has_any_of ( char const  c) const

Has a Character?

References color_pdb::i.

bool ObjexxFCL::Fstring::has_prefix ( Fstring const &  s,
bool const  exact_case = true 
) const

Has a Prefix Case-Optionally?

References lowercased().

bool ObjexxFCL::Fstring::has_prefix ( c_cstring const  s,
bool const  exact_case = true 
) const

Has a Prefix Case-Optionally?

References Fstring(), lowercase(), and lowercased().

Fsubstring const ObjexxFCL::Fstring::head ( ) const

Space-Free Head Constant Substring.

References find(), Fsubstring, and ObjexxFCL::SPACE().

Fsubstring ObjexxFCL::Fstring::head ( )

Space-Free Head Substring.

References find(), Fsubstring, and ObjexxFCL::SPACE().

int ObjexxFCL::Fstring::int_of ( ) const [inline]

int of the Fstring

bool ObjexxFCL::Fstring::is_blank ( ) const [inline]

Blank?

References len_trim().

Referenced by ObjexxFCL::is_blank(), and ObjexxFCL::is_type().

bool ObjexxFCL::Fstring::is_bool ( ) const [inline]

Fstring is Readable as a bool?

bool ObjexxFCL::Fstring::is_char ( ) const [inline]

Fstring is Readable as a char?

References size().

bool ObjexxFCL::Fstring::is_double ( ) const [inline]

Fstring is Readable as a double?

bool ObjexxFCL::Fstring::is_float ( ) const [inline]

Fstring is Readable as a float?

bool ObjexxFCL::Fstring::is_int ( ) const [inline]

Fstring is Readable as an int?

bool ObjexxFCL::Fstring::is_long ( ) const [inline]

Fstring is Readable as a long int?

bool ObjexxFCL::Fstring::is_longdouble ( ) const [inline]

Fstring is Readable as a long double?

bool ObjexxFCL::Fstring::is_short ( ) const [inline]

Fstring is Readable as a short int?

bool ObjexxFCL::Fstring::is_string ( ) const [inline]

Fstring is Readable as a string?

bool ObjexxFCL::Fstring::is_type< char > ( ) const [inline]

Fstring is Readable as a Type Supporting Stream Input?

Fstring is Readable as a char Supporting Stream Input?

References test::T850_SubClassing::b, is_whitespace(), sd::t, basic::T(), and trimmed_whitespace_range().

bool ObjexxFCL::Fstring::is_uint ( ) const [inline]

Fstring is Readable as an unsigned int?

bool ObjexxFCL::Fstring::is_ulong ( ) const [inline]

Fstring is Readable as a unsigned long int?

bool ObjexxFCL::Fstring::is_ushort ( ) const [inline]

Fstring is Readable as a unsigned short int?

bool ObjexxFCL::Fstring::is_whitespace ( ) const [inline]

Whitespace?

References len_trim_whitespace().

Referenced by is_type().

Fstring ObjexxFCL::Fstring::left_justified ( ) const [inline]

Left-Justified Copy.

References Fstring().

Referenced by ObjexxFCL::ljust().

Fstring & ObjexxFCL::Fstring::left_justify ( )

Left Justify.

References color_pdb::i, and ObjexxFCL::SPACE().

Referenced by center().

size_type ObjexxFCL::Fstring::len ( ) const [inline]

Length.

Fstring::size_type ObjexxFCL::Fstring::len_trim ( ) const

Length Space-Trimmed.

References color_pdb::i, and ObjexxFCL::SPACE().

Referenced by center(), is_blank(), ObjexxFCL::len_trim(), not_blank(), tail(), and trimmed().

Fstring::size_type ObjexxFCL::Fstring::len_trim_whitespace ( ) const
size_type ObjexxFCL::Fstring::length ( ) const [inline]
long int ObjexxFCL::Fstring::long_of ( ) const [inline]

long int of the Fstring

long double ObjexxFCL::Fstring::longdouble_of ( ) const [inline]

long double of the Fstring

Fstring & ObjexxFCL::Fstring::lowercase ( )
Fstring ObjexxFCL::Fstring::lowercased ( ) const [inline]
Fstring & ObjexxFCL::Fstring::lstrip ( std::string const &  chars)

Strip Specified Characters from an Fstring's Left Tail.

Strip Specified Characters from the Left Tail.

References clear(), find_first_not_of(), and ObjexxFCL::SPACE().

Fstring & ObjexxFCL::Fstring::lstrip ( )

Strip Space from an Fstring's Left Tail.

Strip Space from the Left Tail.

References clear(), find_first_not_of(), and ObjexxFCL::SPACE().

Fstring & ObjexxFCL::Fstring::lstrip_whitespace ( )

Strip Whitespace from an Fstring's Left Tail.

Strip Whitespace from the Left Tail.

References clear(), find_first_not_of(), ObjexxFCL::SPACE(), and ObjexxFCL::WHITESPACE().

Fstring ObjexxFCL::Fstring::lstripped ( std::string const &  chars) const [inline]

Specified Characters Stripped from Left Tail Copy.

References find_first_not_of(), and Fstring().

Fstring ObjexxFCL::Fstring::lstripped ( ) const [inline]

Space Stripped from Left Tail Copy.

References find_first_not_of(), and Fstring().

Fstring ObjexxFCL::Fstring::lstripped_whitespace ( ) const [inline]

Whitespace Stripped from Left Tail Copy.

References find_first_not_of(), and Fstring().

bool ObjexxFCL::Fstring::not_blank ( ) const [inline]

Not blank?

References len_trim().

Referenced by ObjexxFCL::not_blank().

bool ObjexxFCL::Fstring::not_whitespace ( ) const [inline]

Not whitespace?

References len_trim_whitespace().

ObjexxFCL::Fstring::operator std::string ( ) const [inline]

string Conversion

Fstring const ObjexxFCL::Fstring::operator() ( size_type const  i) const

Constant Tail Substring: s( i )

References Fsubstring.

Fsubstring ObjexxFCL::Fstring::operator() ( size_type const  i)

Tail Substring: s( i )

References Fsubstring.

Fsubstring const ObjexxFCL::Fstring::operator() ( size_type const  i,
size_type const  j 
) const

Constant Substring: s( i, j )

References Fsubstring.

Fsubstring ObjexxFCL::Fstring::operator() ( size_type const  i,
size_type const  j 
)

Substring: s( i, j )

References Fsubstring.

Fstring & ObjexxFCL::Fstring::operator= ( std::string const &  s)

= string

Reimplemented in ObjexxFCL::Fsubstring.

References copy(), and ObjexxFCL::SPACE().

Fstring & ObjexxFCL::Fstring::operator= ( Fstring const &  s)

Copy Assignment.

Reimplemented in ObjexxFCL::Fsubstring.

References ObjexxFCL::SPACE().

Fstring & ObjexxFCL::Fstring::operator= ( char const  c)

= char

Reimplemented in ObjexxFCL::Fsubstring.

References ObjexxFCL::SPACE().

Fstring & ObjexxFCL::Fstring::operator= ( c_cstring const  s)

= cstring

Reimplemented in ObjexxFCL::Fsubstring.

References ObjexxFCL::SPACE().

char ObjexxFCL::Fstring::operator[] ( size_type const  i) const [inline]

Constant char: s[ i ].

char& ObjexxFCL::Fstring::operator[] ( size_type const  i) [inline]

char: s[ i ]

Fstring & ObjexxFCL::Fstring::overlay ( Fstring const &  s,
size_type const  pos = 1 
)
Fstring & ObjexxFCL::Fstring::overlay ( std::string const &  s,
size_type const  pos = 1 
)

Overlay a string.

References ObjexxFCL::min(), and make_symmdef_file_denovo::pos.

Fstring & ObjexxFCL::Fstring::overlay ( c_cstring const  s,
size_type const  pos = 1 
)

Overlay a cstring.

References ObjexxFCL::min(), and make_symmdef_file_denovo::pos.

Fstring ObjexxFCL::Fstring::right_justified ( ) const [inline]

Right-Justified Copy.

References Fstring().

Referenced by ObjexxFCL::rjust().

Fstring & ObjexxFCL::Fstring::right_justify ( )

Right Justify.

References color_pdb::i, and ObjexxFCL::SPACE().

Fstring & ObjexxFCL::Fstring::rstrip ( std::string const &  chars)

Strip Specified Characters from an Fstring's Right Tail.

Strip Specified Characters from the Right Tail.

References clear(), find_last_not_of(), and ObjexxFCL::SPACE().

Fstring & ObjexxFCL::Fstring::rstrip ( )

Strip Space from an Fstring's Right Tail.

Strip Space from the Right Tail.

References clear(), find_last_not_of(), and ObjexxFCL::SPACE().

Fstring & ObjexxFCL::Fstring::rstrip_whitespace ( )

Strip Whitespace from an Fstring's Right Tail.

Strip Whitespace from the Right Tail.

References clear(), find_last_not_of(), ObjexxFCL::SPACE(), and ObjexxFCL::WHITESPACE().

Fstring ObjexxFCL::Fstring::rstripped ( std::string const &  chars) const [inline]

Specified Characters Stripped from Right Tail Copy.

References find_last_not_of(), and Fstring().

Fstring ObjexxFCL::Fstring::rstripped ( ) const [inline]

Space Stripped from Right Tail Copy.

References find_last_not_of(), and Fstring().

Fstring ObjexxFCL::Fstring::rstripped_whitespace ( ) const [inline]

Whitespace Stripped from Right Tail Copy.

References find_last_not_of(), and Fstring().

short int ObjexxFCL::Fstring::short_of ( ) const [inline]

short int of the Fstring

size_type ObjexxFCL::Fstring::size ( ) const [inline]

Size.

Referenced by is_char().

std::string ObjexxFCL::Fstring::string_of ( ) const [inline]

string of the Fstring

Fstring & ObjexxFCL::Fstring::strip ( )

Strip Space from an Fstring's Tails.

Strip Space from the Tails.

References clear(), find_first_not_of(), find_last_not_of(), and ObjexxFCL::SPACE().

Fstring & ObjexxFCL::Fstring::strip ( std::string const &  chars)

Strip Specified Characters from an Fstring's Tails.

Strip Specified Characters from the Tails.

References clear(), find_first_not_of(), find_last_not_of(), and ObjexxFCL::SPACE().

Fstring & ObjexxFCL::Fstring::strip_whitespace ( )

Strip Whitespace from an Fstring's Tails.

Strip Whitespace from the Tails.

References clear(), find_first_not_of(), find_last_not_of(), ObjexxFCL::SPACE(), and ObjexxFCL::WHITESPACE().

Fstring ObjexxFCL::Fstring::stripped ( std::string const &  chars) const [inline]

Specified Characters Stripped from Tails Copy.

References find_first_not_of(), find_last_not_of(), and Fstring().

Fstring ObjexxFCL::Fstring::stripped ( ) const [inline]

Space Stripped from Tails Copy.

References find_first_not_of(), find_last_not_of(), and Fstring().

Fstring ObjexxFCL::Fstring::stripped_whitespace ( ) const [inline]

Whitespace Stripped from Tails Copy.

References find_first_not_of(), find_last_not_of(), and Fstring().

c_cstring ObjexxFCL::Fstring::t_str ( ) const

Whitespace-Trimmed Null-Terminated cstring Copy of the Fstring that is Owned by the Fstring.

Note:
This shares data/pointer with c_str()

References len_trim_whitespace().

Fsubstring ObjexxFCL::Fstring::tail ( )

Space Tail Substring.

References Fsubstring, and len_trim().

Fsubstring const ObjexxFCL::Fstring::tail ( ) const

Space Tail Constant Substring.

References Fsubstring, and len_trim().

Fstring& ObjexxFCL::Fstring::trim ( ) [inline]

Trim Trailing Space.

Note:
No effect for Fstring: Included for interface consistency
Fstring & ObjexxFCL::Fstring::trim_whitespace ( )

Trim Trailing Whitespace Replacing it with Space.

References len_trim_whitespace(), and ObjexxFCL::SPACE().

Fstring ObjexxFCL::Fstring::trimmed ( ) const [inline]

Trailing Space Trimmed Copy.

References Fstring(), and len_trim().

Referenced by ObjexxFCL::trimmed().

Fstring ObjexxFCL::Fstring::trimmed_whitespace ( ) const [inline]

Trailing Whitespace Trimmed Copy.

References Fstring(), and len_trim_whitespace().

Referenced by ObjexxFCL::is_type(), and ObjexxFCL::type_of().

Fstring::size_type ObjexxFCL::Fstring::trimmed_whitespace_range ( size_type b,
size_type e 
) const

Get Range of Whitespace-Trimmed Portion and Return its Length.

References find_non_whitespace(), len_trim_whitespace(), and ObjexxFCL::max().

Referenced by is_type(), and type_of().

char ObjexxFCL::Fstring::type_of< char > ( ) const [inline]

Type of an Fstring for Type Supporting Stream Input.

char of an Fstring

References test::T850_SubClassing::b, sd::t, basic::T(), and trimmed_whitespace_range().

unsigned int ObjexxFCL::Fstring::uint_of ( ) const [inline]

unsigned int of the Fstring

unsigned long int ObjexxFCL::Fstring::ulong_of ( ) const [inline]

unsigned long int of the Fstring

Fstring & ObjexxFCL::Fstring::uppercase ( )
Fstring ObjexxFCL::Fstring::uppercased ( ) const [inline]

Uppercased Copy.

References Fstring().

Referenced by ObjexxFCL::upcase(), and ObjexxFCL::uppercased().

unsigned short int ObjexxFCL::Fstring::ushort_of ( ) const [inline]

unsigned short int of the Fstring


Friends And Related Function Documentation

bool equal ( Fstring const &  s,
Fstring const &  t,
bool const  exact_case = true 
) [friend]

Fstring == Fstring Case-Optionally?

bool equal ( Fstring const &  s,
char const  c,
bool const  exact_case = true 
) [friend]

Fstring == char Case-Optionally?

bool equal ( char const  c,
Fstring const &  s,
bool const  exact_case = true 
) [friend]

char == Fstring Case-Optionally?

bool equali ( std::string const &  s,
Fstring const &  t 
) [friend]

string == Fstring Case-Insensitively?

bool equali ( Fstring const &  s,
char const  c 
) [friend]

Fstring == char Case-Insensitively?

bool equali ( char const  c,
Fstring const &  s 
) [friend]

char == Fstring Case-Insensitively?

bool equali ( Fstring const &  s,
std::string const &  t 
) [friend]

Fstring == string Case-Insensitively?

bool equali ( Fstring const &  s,
Fstring const &  t 
) [friend]

Fstring == Fstring Case-Insensitively?

friend class Fsubstring [friend]

Referenced by head(), operator()(), and tail().

std::istream& get ( std::istream &  stream,
Fstring s 
) [friend]

Get from Stream.

std::istream& getline ( std::istream &  stream,
Fstring s 
) [friend]

Get Line from Stream.

bool operator!= ( Fstring const &  s,
c_cstring const  t 
) [friend]

Fstring != cstring.

bool operator!= ( c_cstring const  t,
Fstring const &  s 
) [friend]

cstring != Fstring

bool operator!= ( Fstring const &  s,
Fstring const &  t 
) [friend]
bool operator!= ( Fstring const &  s,
char const  c 
) [friend]

Fstring != char.

bool operator!= ( char const  c,
Fstring const &  s 
) [friend]

char != Fstring

bool operator!= ( Fstring const &  s,
std::string const &  t 
) [friend]

Fstring != string.

bool operator!= ( std::string const &  t,
Fstring const &  s 
) [friend]

string != Fstring

std::string operator+ ( std::string const &  t,
Fstring const &  s 
) [friend]

string + Fstring

Fstring operator+ ( char const  c,
Fstring const &  s 
) [friend]

char + Fstring

Fstring operator+ ( Fstring const &  s,
Fstring const &  t 
) [friend]
Fstring operator+ ( Fstring const &  s,
c_cstring const  t 
) [friend]

Fstring + cstring.

std::string operator+ ( Fstring const &  s,
std::string const &  t 
) [friend]

Fstring + string.

Fstring operator+ ( c_cstring const  s,
Fstring const &  t 
) [friend]

cstring + Fstring

Fstring operator+ ( Fstring const &  s,
char const  c 
) [friend]

Fstring + char.

bool operator< ( Fstring const &  s,
Fstring const &  t 
) [friend]
bool operator< ( Fstring const &  s,
std::string const &  t 
) [friend]

Fstring < string.

bool operator< ( std::string const &  s,
Fstring const &  t 
) [friend]

string < Fstring

bool operator< ( Fstring const &  s,
c_cstring const  t 
) [friend]

Fstring < cstring.

bool operator< ( c_cstring const  s,
Fstring const &  t 
) [friend]

cstring < Fstring

std::ostream& operator<< ( std::ostream &  stream,
Fstring const &  s 
) [friend]

Stream Output.

bool operator<= ( Fstring const &  s,
std::string const &  t 
) [friend]

Fstring <= string.

bool operator<= ( std::string const &  s,
Fstring const &  t 
) [friend]

string <= Fstring

bool operator<= ( Fstring const &  s,
c_cstring const  t 
) [friend]

Fstring <= cstring.

bool operator<= ( c_cstring const  s,
Fstring const &  t 
) [friend]

cstring <= Fstring

bool operator<= ( Fstring const &  s,
Fstring const &  t 
) [friend]
bool operator== ( c_cstring const  t,
Fstring const &  s 
) [friend]

cstring == Fstring

bool operator== ( Fstring const &  s,
char const  c 
) [friend]

Fstring == char.

bool operator== ( Fstring const &  s,
Fstring const &  t 
) [friend]
bool operator== ( Fstring const &  s,
c_cstring const  t 
) [friend]

Fstring == cstring.

bool operator== ( Fstring const &  s,
std::string const &  t 
) [friend]

Fstring == string.

bool operator== ( std::string const &  t,
Fstring const &  s 
) [friend]

string == Fstring

bool operator== ( char const  c,
Fstring const &  s 
) [friend]

char == Fstring

bool operator> ( std::string const &  s,
Fstring const &  t 
) [friend]

string > Fstring

bool operator> ( c_cstring const  s,
Fstring const &  t 
) [friend]

cstring > Fstring

bool operator> ( Fstring const &  s,
std::string const &  t 
) [friend]

Fstring > string.

bool operator> ( Fstring const &  s,
c_cstring const  t 
) [friend]

Fstring > cstring.

bool operator> ( Fstring const &  s,
Fstring const &  t 
) [friend]
bool operator>= ( Fstring const &  s,
std::string const &  t 
) [friend]

Fstring >= string.

bool operator>= ( Fstring const &  s,
c_cstring const  t 
) [friend]

Fstring >= cstring.

bool operator>= ( Fstring const &  s,
Fstring const &  t 
) [friend]
bool operator>= ( std::string const &  s,
Fstring const &  t 
) [friend]

string >= Fstring

bool operator>= ( c_cstring const  s,
Fstring const &  t 
) [friend]

cstring >= Fstring

std::istream& operator>> ( std::istream &  stream,
Fstring s 
) [friend]

Stream Input.

std::istream& read ( std::istream &  stream,
Fstring s 
) [friend]

Read from Stream.

std::istream& readsome ( std::istream &  stream,
Fstring s 
) [friend]

Read Available Characters from Stream.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines