81 using std::string::string;
82 using std::string::operator=;
97 inline operator const char*()
const;
109 inline reference operator[](
int);
112 inline const_reference operator[](
int)
const;
116 [[deprecated(
"Use std::string::compare, or G4StrUtil::icompare for case-insensitive comparison")]]
121 [[deprecated(
"Use std::getline instead, plus G4StrUtil::lstrip if required")]]
122 inline std::istream& readLine(std::istream&,
G4bool skipWhite =
true);
126 [[deprecated(
"Use std::string::erase instead")]]
131 [[deprecated(
"Use G4StrUtil::contains instead")]]
132 inline G4bool contains(
const std::string&)
const;
136 [[deprecated(
"Use G4StrUtil::contains instead")]]
137 inline G4bool contains(
char)
const;
141 [[deprecated(
"Use G4StrUtil::{lstrip,rstrip,strip}_copy instead")]]
146 [[deprecated(
"Use G4StrUtil::to_lower/to_lower_copy instead")]]
147 inline void toLower();
151 [[deprecated(
"Use G4StrUtil::to_upper/to_upper_copy instead")]]
152 inline void toUpper();
165 inline void to_lower(
G4String& str);
174 inline void to_upper(
G4String& str);
185 void lstrip(
G4String& str,
char ch =
' ');
191 void rstrip(
G4String& str,
char ch =
' ');
197 void strip(
G4String& str,
char ch =
' ');
248 inline G4int icompare(std::string_view lhs, std::string_view rhs);
255 inline bool starts_with(
const G4String& str, std::string_view ss);
258 inline bool starts_with(
const G4String& str, G4String::value_type ss);
261 inline bool starts_with(
const G4String& str,
const char* ss);
276 inline bool ends_with(
const G4String& str, std::string_view ss);
279 inline bool ends_with(
const G4String& str, G4String::value_type ss);
282 inline bool ends_with(
const G4String& str,
const char* ss);
301 inline void safe_erase(
G4String& str, G4String::size_type index = 0,
302 G4String::size_type count = G4String::npos);
std::istream & readline(std::istream &is, G4String &str, G4bool skipWhite=true)
Override of subscript operator for int to suppress C2666 errors with MSVC.