|
Biorbd
|
Wrapper around the std::string class with augmented functionality. More...
#include <String.h>
Public Member Functions | |
| String () | |
| Construct string. | |
| String (const char *text) | |
| Construct string. More... | |
| String (const biorbd::utils::String &text) | |
| Construct string. More... | |
| String (const std::basic_string< char > &text) | |
| Construct string. More... | |
| String & | operator= (const biorbd::utils::String &other) |
| Allow to use operator=. More... | |
| String | operator+ (unsigned int val) |
| Append an unsigned int to the string. More... | |
| String | operator+ (int val) |
| Append an int to the string. More... | |
| String | operator+ (double val) |
| Append a double to the string. More... | |
| String | operator+ (const char *text) |
| Append a char to the string. More... | |
| String | operator() (unsigned int idx) const |
| Get a specific character in the string. More... | |
| String | operator() (unsigned int startIdx, unsigned int lastIdx) const |
| Extract a portion of the string. More... | |
| virtual | ~String () |
| Destroy class properly. | |
| biorbd::utils::String | tolower () const |
| Return a lower case string. More... | |
| biorbd::utils::String | toupper () const |
| Return an upper case string. More... | |
Static Public Member Functions | |
| static biorbd::utils::String | tolower (const biorbd::utils::String &str) |
| Convert a string to a lower case string. More... | |
| static biorbd::utils::String | toupper (const biorbd::utils::String &str) |
| Convert a string to a upper case string. More... | |
| static biorbd::utils::String | to_string (double val) |
| Overload of the to_string C++11 function to allow for X-digits precision. More... | |
| static biorbd::utils::String | to_string (float val) |
| Overload of the to_string C++11 function to allow for X-digits precision. More... | |
| static biorbd::utils::String | removeTrailing (const biorbd::utils::String &origin, const biorbd::utils::String &trailTag) |
| The trailing tags of a string. More... | |
Wrapper around the std::string class with augmented functionality.
| biorbd::utils::String::String | ( | const char * | text | ) |
Construct string.
| text | The string in char format |
Definition at line 16 of file String.cpp.
| biorbd::utils::String::String | ( | const biorbd::utils::String & | text | ) |
Construct string.
| text | The string in string format |
Definition at line 23 of file String.cpp.
| biorbd::utils::String::String | ( | const std::basic_string< char > & | text | ) |
Construct string.
| text | The string in vector char format |
Definition at line 30 of file String.cpp.
| biorbd::utils::String biorbd::utils::String::operator() | ( | unsigned int | idx | ) | const |
Get a specific character in the string.
| idx | The index of the character |
Definition at line 69 of file String.cpp.
| biorbd::utils::String biorbd::utils::String::operator() | ( | unsigned int | startIdx, |
| unsigned int | lastIdx | ||
| ) | const |
Extract a portion of the string.
| startIdx | The index of the first character |
| lastIdx | The index of the last character |
Definition at line 78 of file String.cpp.
| biorbd::utils::String biorbd::utils::String::operator+ | ( | const char * | text | ) |
Append a char to the string.
| text | The char to add |
Definition at line 47 of file String.cpp.
| biorbd::utils::String biorbd::utils::String::operator+ | ( | double | val | ) |
Append a double to the string.
| val | The double to add |
Definition at line 54 of file String.cpp.
| biorbd::utils::String biorbd::utils::String::operator+ | ( | int | val | ) |
| biorbd::utils::String biorbd::utils::String::operator+ | ( | unsigned int | val | ) |
Append an unsigned int to the string.
| val | The unsinged int to add |
Definition at line 59 of file String.cpp.
| biorbd::utils::String & biorbd::utils::String::operator= | ( | const biorbd::utils::String & | other | ) |
|
static |
The trailing tags of a string.
| origin | The string to remove the trailing tags from |
| trailTag | The tag to remove |
Example : The string "2.82823000" will return "2.82823" for the tag "0"
Definition at line 135 of file String.cpp.
|
static |
Overload of the to_string C++11 function to allow for X-digits precision.
| val | The double to convert |
Definition at line 117 of file String.cpp.
|
static |
Overload of the to_string C++11 function to allow for X-digits precision.
| val | The float to convert |
Definition at line 126 of file String.cpp.
| biorbd::utils::String biorbd::utils::String::tolower | ( | ) | const |
|
static |
Convert a string to a lower case string.
| str | The string to convert |
Definition at line 97 of file String.cpp.
| biorbd::utils::String biorbd::utils::String::toupper | ( | ) | const |
Return an upper case string.
Definition at line 113 of file String.cpp.
|
static |
Convert a string to a upper case string.
| str | The string to convert |
Definition at line 107 of file String.cpp.
1.8.18