|
| void | G4StrUtil::to_lower (G4String &str) |
| | Convert string to lowercase.
|
| G4String | G4StrUtil::to_lower_copy (G4String str) |
| | Return lowercased copy of string.
|
| void | G4StrUtil::to_upper (G4String &str) |
| | Convert string to uppercase.
|
| G4String | G4StrUtil::to_upper_copy (G4String str) |
| | Return uppercase copy of string.
|
| void | G4StrUtil::lstrip (G4String &str, char ch=' ') |
| | Remove leading characters from string.
|
| void | G4StrUtil::rstrip (G4String &str, char ch=' ') |
| | Remove trailing characters from string.
|
| void | G4StrUtil::strip (G4String &str, char ch=' ') |
| | Remove leading and trailing characters from string.
|
| G4String | G4StrUtil::lstrip_copy (G4String str, char ch=' ') |
| | Return copy of string with leading characters removed.
|
| G4String | G4StrUtil::rstrip_copy (G4String str, char ch=' ') |
| | Return copy of string with trailing characters removed.
|
| G4String | G4StrUtil::strip_copy (G4String str, char ch=' ') |
| | Return copy of string with leading and trailing characters removed.
|
| G4bool | G4StrUtil::contains (const G4String &str, std::string_view ss) |
| | Check if a string contains a given substring.
|
| G4bool | G4StrUtil::contains (const G4String &str, char ss) |
| | This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
|
| G4bool | G4StrUtil::contains (const G4String &str, const char *ss) |
| | This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
|
| G4bool | G4StrUtil::contains (const G4String &str, const G4String &ss) |
| G4int | G4StrUtil::icompare (std::string_view lhs, std::string_view rhs) |
| | Case insensitive comparison of two strings.
|
| bool | G4StrUtil::starts_with (const G4String &str, std::string_view ss) |
| | Return true if a string starts with a given prefix.
|
| bool | G4StrUtil::starts_with (const G4String &str, G4String::value_type ss) |
| | This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
|
| bool | G4StrUtil::starts_with (const G4String &str, const char *ss) |
| | This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
|
| bool | G4StrUtil::starts_with (const G4String &str, const G4String &ss) |
| bool | G4StrUtil::ends_with (const G4String &str, std::string_view ss) |
| | Return true if a string ends with a given suffix.
|
| bool | G4StrUtil::ends_with (const G4String &str, G4String::value_type ss) |
| | This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
|
| bool | G4StrUtil::ends_with (const G4String &str, const char *ss) |
| | This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
|
| bool | G4StrUtil::ends_with (const G4String &str, const G4String &ss) |
| | This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
|
| void | G4StrUtil::safe_erase (G4String &str, G4String::size_type index=0, G4String::size_type count=G4String::npos) |
| | Remove specified in-range characters from string.
|
| std::istream & | G4StrUtil::readline (std::istream &is, G4String &str, G4bool skipWhite=true) |
| | Read characters into a G4String from an input stream until end-of-line.
|