|
Rosetta
|
Cstring: C String Wrapper. More...
#include <Cstring.hh>
Public Types | |
| typedef std::size_t | size_type |
| typedef std::size_t | Size |
Public Member Functions | |
| Cstring () | |
| Default Constructor. More... | |
| Cstring (Cstring const &s) | |
| Copy Constructor. More... | |
| Cstring (c_cstring const s) | |
| C string Constructor: Implicit Conversion. More... | |
| Cstring (std::string const &s) | |
| std::string Constructor More... | |
| Cstring (Cstring const &s, size_type const len) | |
| Cstring + Length Constructor. More... | |
| Cstring (c_cstring const s, size_type const len) | |
| C string + Length Constructor. More... | |
| Cstring (std::string const &s, size_type const len) | |
| std::string + Length Constructor More... | |
| Cstring (char const c) | |
| char Constructor More... | |
| Cstring (size_type const len) | |
| Length Constructor. More... | |
| Cstring (int const len) | |
| Length Constructor. More... | |
| virtual | ~Cstring () |
| Destructor. More... | |
| operator c_cstring () const | |
| C string Conversion: Invalid after str_ is reallocated. More... | |
| operator cstring () | |
| C string Conversion: Invalid after str_ is reallocated. More... | |
| Cstring & | operator= (Cstring const &s) |
| Copy Assignment. More... | |
| Cstring & | operator= (c_cstring const s) |
| cstring Assignment More... | |
| Cstring & | operator= (std::string const &s) |
| std::string Assignment More... | |
| Cstring & | operator= (char const c) |
| char Assignment More... | |
| Cstring & | operator+= (Cstring const &s) |
| Cstring Append. More... | |
| Cstring & | operator+= (c_cstring const s) |
| cstring Append More... | |
| Cstring & | operator+= (std::string const &s) |
| std::string Append More... | |
| Cstring & | operator+= (char const c) |
| char Append More... | |
| bool | empty () const |
| Empty? More... | |
| bool | is_blank () const |
| Blank? More... | |
| bool | not_blank () const |
| Not blank? More... | |
| bool | has_any_of (Cstring const &s) const |
| Has Any Character of a Cstring? More... | |
| bool | has_any_of (c_cstring const &s) const |
| Has Any Character of a cstring? More... | |
| bool | has_any_of (std::string const &s) const |
| Has Any Character of a std::string? More... | |
| bool | has_any_of (char const c) const |
| Has a Character? More... | |
| bool | has (char const c) const |
| Has a Character? More... | |
| size_type | length () const |
| Length. More... | |
| size_type | len () const |
| Length. More... | |
| size_type | size () const |
| Size. More... | |
| size_type | len_trim () const |
| Length Space-Trimmed. More... | |
| size_type | len_trim_whitespace () const |
| Length Whitespace-Trimmed. More... | |
| size_type | find (char const c) const |
| Find First Occurrence of a Character. More... | |
| size_type | find_last (char const c) const |
| Find Last Occurrence of a Character. More... | |
| Cstring & | lowercase () |
| Lowercase. More... | |
| Cstring & | uppercase () |
| Uppercase. More... | |
| Cstring & | left_justify () |
| Left Justify. More... | |
| Cstring & | right_justify () |
| Right Justify. More... | |
| Cstring & | trim () |
| Trim Trailing Space. More... | |
| Cstring & | trim_whitespace () |
| Trim Trailing Whitespace. More... | |
| Cstring & | center () |
| Center. More... | |
| Cstring & | compress () |
| Compress Out Whitespace. More... | |
| void | swap (Cstring &s) |
| swap( Cstring ) More... | |
| char | operator[] (size_type const i) const |
| Cstring[ i ] const. More... | |
| char & | operator[] (size_type const i) |
| Cstring[ i ]. More... | |
| char | operator[] (int const i) const |
| Cstring[ i ] const. More... | |
| char & | operator[] (int const i) |
| Cstring[ i ]. More... | |
| Cstring | lowercased () const |
| Lowercased Copy. More... | |
| Cstring | uppercased () const |
| Uppercased Copy. More... | |
| Cstring | left_justified () const |
| Left-Justified Copy. More... | |
| Cstring | right_justified () const |
| Right-Justified Copy. More... | |
| Cstring | trimmed () const |
| Space-Trimmed Copy. More... | |
| Cstring | trimmed_whitespace () const |
| Whitespace-Trimmed Copy. More... | |
| Cstring | centered () const |
| Centered Copy. More... | |
| Cstring | compressed () const |
| Compressed Copy. More... | |
Static Public Attributes | |
| static size_type const | npos = static_cast< size_type >( -1 ) |
Private Attributes | |
| char * | str_ |
| String. More... | |
Friends | |
| void | swap (Cstring &s, Cstring &t) |
| swap( Cstring, Cstring ) More... | |
| Cstring | operator+ (Cstring const &s, Cstring const &t) |
| Cstring + Cstring. More... | |
| Cstring | operator+ (Cstring const &s, c_cstring const t) |
| Cstring + cstring. More... | |
| Cstring | operator+ (c_cstring const s, Cstring const &t) |
| cstring + Cstring More... | |
| Cstring | operator+ (Cstring const &s, std::string const &t) |
| Cstring + std::string. More... | |
| Cstring | operator+ (Cstring const &s, char const c) |
| Cstring + char. More... | |
| Cstring | operator+ (char const c, Cstring const &t) |
| char + Cstring More... | |
| bool | operator== (Cstring const &s, Cstring const &t) |
| Cstring == Cstring. More... | |
| bool | operator!= (Cstring const &s, Cstring const &t) |
| Cstring != Cstring. More... | |
| bool | operator== (Cstring const &s, c_cstring const t) |
| Cstring == cstring. More... | |
| bool | operator== (c_cstring const t, Cstring const &s) |
| cstring == Cstring More... | |
| bool | operator!= (Cstring const &s, c_cstring const t) |
| Cstring != cstring. More... | |
| bool | operator!= (c_cstring const t, Cstring const &s) |
| cstring != Cstring More... | |
| bool | operator== (Cstring const &s, std::string const &t) |
| Cstring == std::string. More... | |
| bool | operator== (std::string const &t, Cstring const &s) |
| std::string == Cstring More... | |
| bool | operator!= (Cstring const &s, std::string const &t) |
| Cstring != std::string. More... | |
| bool | operator!= (std::string const &t, Cstring const &s) |
| std::string != Cstring More... | |
| bool | operator== (Cstring const &s, char const c) |
| Cstring == char. More... | |
| bool | operator== (char const c, Cstring const &s) |
| char == Cstring More... | |
| bool | operator!= (Cstring const &s, char const c) |
| Cstring != char. More... | |
| bool | operator!= (char const c, Cstring const &s) |
| char != Cstring More... | |
| bool | equali (Cstring const &s, Cstring const &t) |
| Cstring == Cstring Case-Insensitively? More... | |
| bool | equali (Cstring const &s, c_cstring const t) |
| Cstring == cstring Case-Insensitively? More... | |
| bool | equali (c_cstring const s, Cstring const &t) |
| cstring == Cstring Case-Insensitively? More... | |
| bool | equali (Cstring const &s, std::string const &t) |
| Cstring == std::string Case-Insensitively? More... | |
| bool | equali (std::string const &s, Cstring const &t) |
| std::string == Cstring Case-Insensitively? More... | |
| bool | equali (Cstring const &s, char const c) |
| Cstring == char Case-Insensitively? More... | |
| bool | equali (char const c, Cstring const &s) |
| char == Cstring Case-Insensitively? More... | |
| std::ostream & | operator<< (std::ostream &stream, Cstring const &s) |
| Output to Stream. More... | |
| std::istream & | operator>> (std::istream &stream, Cstring &s) |
| Input from Stream. More... | |
Cstring: C String Wrapper.
| typedef std::size_t ObjexxFCL::Cstring::Size |
| typedef std::size_t ObjexxFCL::Cstring::size_type |
|
inline |
Default Constructor.
References str_.
Referenced by centered(), compressed(), left_justified(), lowercased(), operator+=(), right_justified(), trimmed(), trimmed_whitespace(), and uppercased().
|
inline |
Copy Constructor.
References docking::s, and str_.
|
inline |
C string Constructor: Implicit Conversion.
References docking::s, and str_.
|
inlineexplicit |
std::string Constructor
References len(), docking::s, and str_.
Cstring + Length Constructor.
References len(), docking::s, and str_.
C string + Length Constructor.
References len(), docking::s, and str_.
|
inline |
std::string + Length Constructor
References len(), docking::s, and str_.
|
inlineexplicit |
char Constructor
References kmeans_adaptive_kernel_density_bb_dependent_rotlib::c, and str_.
|
inlineexplicit |
|
inlineexplicit |
|
inlinevirtual |
Destructor.
References str_.
| Cstring & ObjexxFCL::Cstring::center | ( | ) |
Center.
References left_justify(), len_trim(), length(), ObjexxFCL::pad(), ObjexxFCL::SPACE(), and str_.
| Cstring & ObjexxFCL::Cstring::compress | ( | ) |
Compress Out Whitespace.
References kmeans_adaptive_kernel_density_bb_dependent_rotlib::c, create_a3b_hbs::i, create_a3b_hbs::j, len(), ObjexxFCL::NULLC(), ObjexxFCL::SPACE(), str_, and ObjexxFCL::TAB().
Referenced by pyrosetta.toolbox.py_jobdistributor.PyJobDistributor::output_decoy(), and pyrosetta.toolbox.py_jobdistributor.PyJobDistributor::start_decoy().
|
inline |
Compressed Copy.
References Cstring().
Referenced by pyrosetta.distributed.cluster.io.IO::_save_results().
|
inline |
Empty?
References str_.
| Cstring::size_type ObjexxFCL::Cstring::find | ( | char const | c | ) | const |
Find First Occurrence of a Character.
References kmeans_adaptive_kernel_density_bb_dependent_rotlib::c, create_a3b_hbs::i, npos, and str_.
| Cstring::size_type ObjexxFCL::Cstring::find_last | ( | char const | c | ) | const |
Find Last Occurrence of a Character.
References kmeans_adaptive_kernel_density_bb_dependent_rotlib::c, create_a3b_hbs::i, npos, and str_.
| bool ObjexxFCL::Cstring::has | ( | char const | c | ) | const |
Has a Character?
References kmeans_adaptive_kernel_density_bb_dependent_rotlib::c, create_a3b_hbs::i, and str_.
| bool ObjexxFCL::Cstring::has_any_of | ( | c_cstring const & | s | ) | const |
Has Any Character of a cstring?
References create_a3b_hbs::i, create_a3b_hbs::j, docking::s, and str_.
| bool ObjexxFCL::Cstring::has_any_of | ( | char const | c | ) | const |
Has a Character?
References kmeans_adaptive_kernel_density_bb_dependent_rotlib::c, create_a3b_hbs::i, and str_.
| bool ObjexxFCL::Cstring::has_any_of | ( | Cstring const & | s | ) | const |
Has Any Character of a Cstring?
References create_a3b_hbs::i, create_a3b_hbs::j, docking::s, and str_.
| bool ObjexxFCL::Cstring::has_any_of | ( | std::string const & | s | ) | const |
Has Any Character of a std::string?
References create_a3b_hbs::i, create_a3b_hbs::j, docking::s, and str_.
|
inline |
Blank?
References len_trim().
|
inline |
Left-Justified Copy.
References Cstring().
| Cstring & ObjexxFCL::Cstring::left_justify | ( | ) |
Left Justify.
References create_a3b_hbs::i, len(), ObjexxFCL::SPACE(), and str_.
Referenced by center().
|
inline |
Length.
References str_.
Referenced by compress(), Cstring(), left_justify(), operator=(), and right_justify().
| Cstring::size_type ObjexxFCL::Cstring::len_trim | ( | ) | const |
Length Space-Trimmed.
References create_a3b_hbs::i, ObjexxFCL::SPACE(), and str_.
Referenced by center(), is_blank(), not_blank(), trim(), and trimmed().
| Cstring::size_type ObjexxFCL::Cstring::len_trim_whitespace | ( | ) | const |
Length Whitespace-Trimmed.
References kmeans_adaptive_kernel_density_bb_dependent_rotlib::c, create_a3b_hbs::i, ObjexxFCL::NULLC(), ObjexxFCL::SPACE(), str_, and ObjexxFCL::TAB().
Referenced by trim_whitespace(), and trimmed_whitespace().
|
inline |
Length.
References str_.
Referenced by enumerate_junctions.Design::attach_valid(), center(), enumerate_junctions.Design::output_string(), enumerate_junctions.Design::output_valid(), enumerate_junctions.DHR::print(), enumerate_junctions.Junction::print(), enumerate_junctions.Junction::to_component(), enumerate_junctions.DHR::write_to_file(), and enumerate_junctions.Junction::write_to_file().
| Cstring & ObjexxFCL::Cstring::lowercase | ( | ) |
Lowercase.
References create_a3b_hbs::i, and str_.
|
inline |
Not blank?
References len_trim().
|
inline |
C string Conversion: Invalid after str_ is reallocated.
References str_.
|
inline |
C string Conversion: Invalid after str_ is reallocated.
References str_.
cstring Append
References Cstring(), and docking::s.
|
inline |
char Append
References kmeans_adaptive_kernel_density_bb_dependent_rotlib::c, and Cstring().
Cstring Append.
References Cstring(), and docking::s.
|
inline |
std::string Append
References Cstring(), and docking::s.
cstring Assignment
References len(), docking::s, and str_.
|
inline |
char Assignment
References kmeans_adaptive_kernel_density_bb_dependent_rotlib::c, and str_.
Copy Assignment.
References len(), docking::s, and str_.
|
inline |
std::string Assignment
References len(), docking::s, and str_.
|
inline |
Cstring[ i ].
References create_a3b_hbs::i, and str_.
|
inline |
Cstring[ i ] const.
References create_a3b_hbs::i, and str_.
|
inline |
Cstring[ i ].
References create_a3b_hbs::i, and str_.
|
inline |
Cstring[ i ] const.
References create_a3b_hbs::i, and str_.
|
inline |
Right-Justified Copy.
References Cstring().
| Cstring & ObjexxFCL::Cstring::right_justify | ( | ) |
Right Justify.
References create_a3b_hbs::i, len(), ObjexxFCL::SPACE(), and str_.
|
inline |
swap( Cstring )
References docking::s, str_, and ObjexxFCL::swap().
|
inline |
Trim Trailing Space.
References len_trim(), and str_.
|
inline |
Trim Trailing Whitespace.
References len_trim_whitespace(), and str_.
|
inline |
Space-Trimmed Copy.
References Cstring(), and len_trim().
|
inline |
Whitespace-Trimmed Copy.
References Cstring(), and len_trim_whitespace().
| Cstring & ObjexxFCL::Cstring::uppercase | ( | ) |
Uppercase.
References create_a3b_hbs::i, and str_.
|
friend |
Cstring == std::string Case-Insensitively?
|
friend |
std::string == Cstring Case-Insensitively?
|
friend |
Output to Stream.
|
friend |
Input from Stream.
|
static |
Referenced by find(), and find_last().
|
private |
String.
Referenced by center(), compress(), Cstring(), empty(), find(), find_last(), has(), has_any_of(), left_justify(), len(), len_trim(), len_trim_whitespace(), length(), lowercase(), operator c_cstring(), operator cstring(), operator=(), operator[](), right_justify(), size(), swap(), trim(), trim_whitespace(), uppercase(), and ~Cstring().