GENIEGenerator
|
Utilities for string manipulation. More...
Functions | |
string | TrimSpaces (string input) |
string | IntAsString (int i) |
vector< string > | Split (string input, string delim) |
string | RemoveSuccessiveSpaces (string input) |
void | ReplaceStringInPlace (string &subject, const string &search, const string &replace) |
string | FilterString (string filt, string input) |
string | ToUpper (string input) |
string | ToLower (string input) |
template<class T > | |
bool | Convert (const vector< std::string > &input, std::vector< T > &v) |
Utilities for string manipulation.
bool genie::utils::str::Convert | ( | const vector< std::string > & | input, |
std::vector< T > & | v | ||
) |
string genie::utils::str::FilterString | ( | string | filt, |
string | input | ||
) |
Definition at line 79 of file StringUtils.cxx.
Referenced by CalcTotalXSec(), Configure(), genie::BaryonResList::DecodeFromNameList(), GenerateEvent(), genie::Decayer::LoadConfig(), RemoveSuccessiveSpaces(), and SaveGraphsToRootFile().
string genie::utils::str::IntAsString | ( | int | i | ) |
Definition at line 29 of file StringUtils.cxx.
string genie::utils::str::RemoveSuccessiveSpaces | ( | string | input | ) |
Definition at line 52 of file StringUtils.cxx.
References FilterString().
Referenced by TrimSpaces().
void genie::utils::str::ReplaceStringInPlace | ( | string & | subject, |
const string & | search, | ||
const string & | replace | ||
) |
Definition at line 67 of file StringUtils.cxx.
vector< string > genie::utils::str::Split | ( | string | input, |
string | delim | ||
) |
Definition at line 36 of file StringUtils.cxx.
Referenced by genie::AlgConfigPool::AddBasicParameter(), genie::AlgConfigPool::AddParameterMatrix(), genie::AlgConfigPool::AddParameterVector(), genie::AlgConfigPool::AddRootObjParameter(), genie::CmdLnArgParser::ArgAsStringTokens(), CalcTotalXSec(), genie::TuneId::CheckDirectory(), Configure(), CreateFidSelection(), CreateRockBoxSelection(), genie::GVldContext::Decode(), genie::GVldContext::DecodeENERGY(), genie::BaryonResList::DecodeFromNameList(), genie::Algorithm::FindConfig(), genie::utils::xml::FindNode(), GenerateEvent(), genie::utils::system::GenieMajorVrsNum(), genie::utils::system::GenieMinorVrsNum(), genie::utils::system::GenieRevisVrsNum(), GetAlgorithms(), genie::utils::system::GetAllFilesInPath(), GetCommandLineArgs(), genie::utils::xml::GetDoubleArray(), genie::flux::GNuMIFluxXMLHelper::GetDoubleVector(), genie::utils::xml::GetIntArray(), genie::flux::GNuMIFluxXMLHelper::GetIntVector(), GetNeutrinoCodes(), GetPDGCodeListFromString(), GetTargetCodes(), genie::utils::xml::GetXMLFilePath(), genie::NtpMCJobConfig::Load(), genie::flux::GJPARCNuFlux::LoadBeamSimData(), genie::XSecScaleMap::LoadConfig(), genie::CascadeReweight::LoadConfig(), genie::QvalueShifter::LoadConfig(), genie::Decayer::LoadConfig(), main(), genie::utils::app_init::MesgThresholds(), genie::flux::GFlavorMap::ParseFixedfracString(), ParseFluxFileConfig(), ParseFluxHst(), genie::flux::GFlavorMap::ParseMapString(), genie::geometry::GeomVolSelectorBasic::ParseSelection(), and genie::Messenger::SetPrioritiesFromXmlFile().
string genie::utils::str::ToLower | ( | string | input | ) |
Definition at line 98 of file StringUtils.cxx.
Referenced by genie::utils::gsl::Integration1DimTypeFromString(), and genie::utils::gsl::IntegrationNDimTypeFromString().
string genie::utils::str::ToUpper | ( | string | input | ) |
Definition at line 92 of file StringUtils.cxx.
Referenced by genie::GVldContext::Decode(), and genie::Spline::SetType().
string genie::utils::str::TrimSpaces | ( | string | input | ) |
Definition at line 18 of file StringUtils.cxx.
References RemoveSuccessiveSpaces().
Referenced by genie::AlgConfigPool::AddParameterMatrix(), genie::AlgConfigPool::AddParameterVector(), CalcTotalXSec(), genie::flux::GFlavorMap::Config(), Configure(), GenerateEvent(), genie::utils::xml::GetAttribute(), genie::utils::xml::GetDoubleArray(), genie::flux::GNuMIFluxXMLHelper::GetDoubleVector(), genie::utils::xml::GetIntArray(), genie::flux::GNuMIFluxXMLHelper::GetIntVector(), genie::GSimFiles::LoadFromFile(), genie::XSecSplineList::LoadFromXml(), genie::PathLengthList::LoadFromXml(), genie::Spline::LoadFromXmlFile(), genie::AlgConfigPool::LoadMasterConfig(), genie::flux::GNuMIFluxXMLHelper::LoadParamSet(), genie::AlgConfigPool::LoadRegistries(), genie::flux::GNuMIFluxXMLHelper::ParseBeamDir(), genie::flux::GFlavorMap::ParseFixedfracString(), genie::flux::GNuMIFluxXMLHelper::ParseRotSeries(), genie::flux::GNuMIFluxXMLHelper::ParseWindowSeries(), genie::FermiMomentumTablePool::ParseXMLTables(), genie::Messenger::SetPrioritiesFromXmlFile(), and genie::utils::xml::TrimSpaces().