#include <G4String.hh>
Definition at line 61 of file G4String.hh.
◆ caseCompare
◆ stripType
- Deprecated
- Will be removed in future release
| Enumerator |
|---|
| leading | |
| trailing | |
| both | |
Definition at line 74 of file G4String.hh.
◆ G4String() [1/5]
◆ G4String() [2/5]
| G4String::G4String |
( |
const std::string & | | ) |
|
|
inline |
◆ G4String() [3/5]
◆ G4String() [4/5]
| G4String::G4String |
( |
std::string && | | ) |
|
|
inline |
◆ G4String() [5/5]
◆ compareTo()
Override of subscript operator for int to suppress C2666 errors with MSVC.
- Deprecated
- Will be removed at the same time as operator const char* that requires it
This override is required because of G4String's provision of an implicit conversion operator to const char*. Together with the subscript operator and C++'s built-in operator[](const char*, int) operator, use of G4String::operator[] will trigger
[MSVC error C2666](https://docs.microsoft.com/en-us/cpp/error-messages/compiler-errors-2/compiler-error-c2666?view=msvc-170)
This is a known issue with mixing implicit conversion to const char* and subscript
operators. Provision of the override with int` argument is thus a workaround until the conversion operator is removed. */ inline reference operator[](int);
/This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
inline const_reference operator[](int) const;
/** Deprecated function
- Deprecated
- Use std::string::compare or G4StrUtil::icompare instead
◆ contains() [1/2]
| G4bool G4String::contains |
( |
char | | ) |
const |
|
inline |
◆ contains() [2/2]
| G4bool G4String::contains |
( |
const std::string & | | ) |
const |
|
inline |
◆ operator const char *()
| G4String::operator const char * |
( |
| ) |
const |
|
inline |
Implicitly convert to const char*.
- Deprecated
- Will be removed in future releases for std::string compliance If passing G4String to functions requiring const char*, use std::string::c_str to explicitly convert. G4String also implicitly converts to std::string_view to match the std::string interface.
◆ operator=() [1/2]
◆ operator=() [2/2]
◆ readLine()
| std::istream & G4String::readLine |
( |
std::istream & | , |
|
|
G4bool | skipWhite = true ) |
|
inline |
◆ remove()
| G4String & G4String::remove |
( |
size_type | | ) |
|
|
inline |
Deprecated function.
- Deprecated
- Use std::string::erase instead
◆ strip()
◆ toLower()
| void G4String::toLower |
( |
| ) |
|
|
inline |
◆ toUpper()
| void G4String::toUpper |
( |
| ) |
|
|
inline |
The documentation for this class was generated from the following file: