|
Geant4 11.3.0
Toolkit for the simulation of the passage of particles through matter
|
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. Will be removed at the same time as operator const char* that requires it
Use std::string::compare or G4StrUtil::icompare instead [[deprecated("Use std::string::compare, or G4StrUtil::icompare for case-insensitive comparison")]] inline G4int compareTo(std::string_view, caseCompare mode = exact) const;
Use std::getline plus G4StrUtil::lstrip instead [[deprecated("Use std::getline instead, plus G4StrUtil::lstrip if required")]] inline std::istream& readLine(std::istream&, G4bool skipWhite = true);
Use std::string::erase instead [[deprecated("Use std::string::erase instead")]] inline G4String& remove(size_type);
Use G4StrUtil::contains instead [[deprecated("Use G4StrUtil::contains instead")]] inline G4bool contains(const std::string&) const;
Use G4StrUtil::contains instead [[deprecated("Use G4StrUtil::contains instead")]] inline G4bool contains(char) const;
Use G4StrUtil functions instead [[deprecated("Use G4StrUtil::{lstrip,rstrip,strip}_copy instead")]] [[nodiscard]] inline G4String strip(stripType strip_Type = trailing, char ch = ' ');
Use G4StrUtil functions instead [[deprecated("Use G4StrUtil::to_lower/to_lower_copy instead")]] inline void toLower();
Use G4StrUtil functions instead [[deprecated("Use G4StrUtil::to_upper/to_upper_copy instead")]] inline void toUpper(); };
It is strongly recommended to use std::string::erase if the / start index is already checked, or otherwise known, to be in range. Otherwise, / implement the index-size comparison instead of using this function. / /
It is strongly recommended to use std::getline instead of this / function, plus G4StrUtil::lstrip if leading whitespace removal is required. / /