Utility functions for character strings. More...
Functions | |
| Real | toReal (const char *str, bool *is_ok=0) |
| Converts the string str to a real number. If is_ok is not null, it is set to true if the conversion is correct, false otherwise. | |
| Integer | toInteger (const char *str, bool *is_ok=0) |
| Converts the string str to an unsigned integer. If is_ok is not null, it is set to true if the conversion is correct, false otherwise. | |
| int | toInt (const char *str, bool *is_ok=0) |
| Converts the string str to an integer If is_ok is not null, it is set to true if the conversion is correct, false otherwise. | |
| bool | isEqual (const char *s1, const char *s2) |
| Returns true if s1 and s2 are identical, false otherwise. | |
| bool | isLess (const char *s1, const char *s2) |
| Returns true if s1 is less than (alphabetical order) s2 , false otherwise. | |
| Integer | len (const char *s) |
| Returns the length of the string s. | |
| char * | copyn (char *to, const char *from, Integer n) |
| Copies the first n characters of from into to. | |
| char * | copy (char *to, const char *from) |
| Copies from into to. | |
| Int64 | largeLength (const char *s) |
| Returns the length of the string s. | |
| char * | copyn (char *to, const char *from, Int64 n) |
Utility functions for character strings.
Utility functions for strings.
| char * Arcane::CStringUtils::copy | ( | char * | to, |
| const char * | from ) |
Copies from into to.
Definition at line 107 of file arcane/src/arcane/utils/CStringUtils.cc.
| char * Arcane::CStringUtils::copyn | ( | char * | to, |
| const char * | from, | ||
| Int64 | n ) |
Definition at line 77 of file arccore/src/base/arccore/base/CStringUtils.cc.
| char * Arcane::CStringUtils::copyn | ( | char * | to, |
| const char * | from, | ||
| Integer | n ) |
Copies the first n characters of from into to.
| to |
Definition at line 101 of file arcane/src/arcane/utils/CStringUtils.cc.
| bool Arcane::CStringUtils::isEqual | ( | const char * | s1, |
| const char * | s2 ) |
Returns true if s1 and s2 are identical, false otherwise.
Returns true if s1 and s2 are identical, false otherwise.
Definition at line 61 of file arcane/src/arcane/utils/CStringUtils.cc.
Referenced by Arcane::String::operator==.
| bool Arcane::CStringUtils::isLess | ( | const char * | s1, |
| const char * | s2 ) |
Returns true if s1 is less than (alphabetical order) s2 , false otherwise.
Returns true if s1 is less than (alphabetical order) s2, false otherwise.
Returns true if s1 is lexicographically less than s2, false otherwise.
Definition at line 78 of file arcane/src/arcane/utils/CStringUtils.cc.
Referenced by Arcane::mesh::ItemFamily::_cmpIVariablePtr().
| Int64 Arcane::CStringUtils::largeLength | ( | const char * | s | ) |
Returns the length of the string s.
Returns the length of the string s.
Definition at line 69 of file arccore/src/base/arccore/base/CStringUtils.cc.
| Integer Arcane::CStringUtils::len | ( | const char * | s | ) |
Returns the length of the string s.
Returns the length of the string s.
Returns the length of the string s (in 32 bits).
Definition at line 89 of file arcane/src/arcane/utils/CStringUtils.cc.
References len().
Referenced by len().
| int Arcane::CStringUtils::toInt | ( | const char * | str, |
| bool * | is_ok = 0 ) |
Converts the string str to an integer If is_ok is not null, it is set to true if the conversion is correct, false otherwise.
Definition at line 50 of file arcane/src/arcane/utils/CStringUtils.cc.
| Integer Arcane::CStringUtils::toInteger | ( | const char * | str, |
| bool * | is_ok = 0 ) |
Converts the string str to an unsigned integer. If is_ok is not null, it is set to true if the conversion is correct, false otherwise.
Definition at line 40 of file arcane/src/arcane/utils/CStringUtils.cc.
| Real Arcane::CStringUtils::toReal | ( | const char * | str, |
| bool * | is_ok = 0 ) |
Converts the string str to a real number. If is_ok is not null, it is set to true if the conversion is correct, false otherwise.
Definition at line 30 of file arcane/src/arcane/utils/CStringUtils.cc.