|
Develop Biology
The language of life
|
Classes | |
| struct | Echelon |
Typedefs | |
| typedef std::vector< Echelon > | Echelons |
Functions | |
| void | CloneInto (const char *source, const char *&target) |
| template<typename T > | |
| std::string | From (const T &value) |
| std::string | FromVectorOfStrings (const CharStrings &v, char delimiter=',', bool trimLeadingSpaces=true) |
| std::string | FromVectorOfStrings (const StdStrings &v, char delimiter=',', bool trimLeadingSpaces=true) |
| StdStrings | Parse (const std::string &s, char delimiter=',', bool trimLeadingSpaces=true) |
| bool | ToBool (const char *s, bool *returned) |
| CharStrings | ToCharStrings (const StdStrings &strings) |
| bool | ToFloat (const char *s, float *returned) |
| bool | ToInt (const char *s, int32_t *returned) |
| StdStrings | ToStdStrings (const CharStrings &strings) |
| bool | ToUInt (const char *s, uint32_t *returned) |
| typedef std::vector< Echelon > bio::string::Echelons |
| void bio::string::CloneInto | ( | const char * | source, |
| const char *& | target | ||
| ) |
Copies the contents of source into a new const char* and sets target to point to the new value.
| source | |
| target |
Definition at line 236 of file String.cpp.
Referenced by bio::physical::Identifiable< DIMENSION >::CloneIntoName(), bio::physical::Perspective< DIMENSION >::GetIdFromName(), and bio::genetic::Localization::SetNameOfSite().
| std::string bio::string::From | ( | const T & | value | ) |
| std::string bio::string::FromVectorOfStrings | ( | const CharStrings & | v, |
| char | delimiter = ',', |
||
| bool | trimLeadingSpaces = true |
||
| ) |
Take a vector of char*s and outputs a single string with delimiter separating the strings.
| v | |
| delimiter | |
| trimLeadingSpaces |
Definition at line 169 of file String.cpp.
| std::string bio::string::FromVectorOfStrings | ( | const StdStrings & | v, |
| char | delimiter = ',', |
||
| bool | trimLeadingSpaces = true |
||
| ) |
Take a vector of strings and output as a single string with delimiter separating the strings.
| v | vector of . |
| delimiter | item separator (e.g. ','). |
| trimLeadingSpaces | if true, removes leading spaces from substrings. |
Definition at line 131 of file String.cpp.
| StdStrings bio::string::Parse | ( | const std::string & | s, |
| char | delimiter = ',', |
||
| bool | trimLeadingSpaces = true |
||
| ) |
Convert a string containing substrings separated by delimiter to vector of substrings Example: s is "1,abc,3000" Results will be vector of 3 strings: "1" "abc" "3000"
| s | the string with substrings separated by delimiter. |
| delimiter | item separator (e.g. ','). |
| trimLeadingSpaces | if true, removes leading spaces from substrings. |
Definition at line 97 of file String.cpp.
| bool bio::string::ToBool | ( | const char * | s, |
| bool * | returned | ||
| ) |
Convert "true" or "false" to bool Case sensitive. TODO: make insensitive.
| s | |
| returned |
Definition at line 28 of file String.cpp.
| CharStrings bio::string::ToCharStrings | ( | const StdStrings & | strings | ) |
Takes a vector of std::strings and converts it to a vector of const char*.
| strings |
Definition at line 207 of file String.cpp.
| bool bio::string::ToFloat | ( | const char * | s, |
| float * | returned | ||
| ) |
convert string s to a float and return result in value.
| s | |
| returned |
Definition at line 79 of file String.cpp.
| bool bio::string::ToInt | ( | const char * | s, |
| int32_t * | returned | ||
| ) |
convert string s to an integer and return result in value
| s | |
| returned |
Definition at line 41 of file String.cpp.
| StdStrings bio::string::ToStdStrings | ( | const CharStrings & | strings | ) |
Takes a vector of const char*s and converts it to a vector of std::strings.
| strings |
Definition at line 221 of file String.cpp.
| bool bio::string::ToUInt | ( | const char * | s, |
| uint32_t * | returned | ||
| ) |
convert string s to an unsigned integer and return result in value
| s | |
| returned |
Definition at line 60 of file String.cpp.