#include <G4String.hh>
Definition at line 61 of file G4String.hh.
◆ caseCompare
◆ stripType
◆ 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()
◆ 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]
◆ operator[]() [1/2]
reference G4String::operator[] |
( |
int |
| ) |
|
|
inline |
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 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.
◆ operator[]() [2/2]
const_reference G4String::operator[] |
( |
int |
| ) |
const |
|
inline |
◆ 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: