![]() |
![]() |
#include "Utilities/General/interface/stringTools.h"
Go to the source code of this file.
Functions | |
int | replace (string &input, const string &gone, const string &it, bool multiple) |
int | replaceRange (string &input, const string &first, const string &last, const string &it, bool multiple) |
void | strip (std::string &input, const std::string &blanks) |
int replace | ( | string & | input, |
const string & | gone, | ||
const string & | it, | ||
bool | multiple | ||
) |
Definition at line 5 of file stringTools.cc.
int replaceRange | ( | string & | input, |
const string & | first, | ||
const string & | last, | ||
const string & | it, | ||
bool | multiple | ||
) |
Definition at line 23 of file stringTools.cc.
References ExpressReco_HICollisions_FallBack::e, i, and n.
void strip | ( | std::string & | input, |
const std::string & | blanks | ||
) |
Definition at line 16 of file stringTools.cc.
References b, and ExpressReco_HICollisions_FallBack::e.
Referenced by argparse.HelpFormatter::_fill_text(), python.Vispa.Plugins.ConfigEditor.ToolDataAccessor.ToolDataAccessor::_property(), extend_argparse.HelpFormatterRespectNewlines::_split_lines(), argparse.HelpFormatter::_split_lines(), CSCCLCTData::add(), CSCDigiToRaw::add(), Chamber_AutoCorrMat::add(), argparse.ArgumentParser::add_subparsers(), CSCTMBHeader2006::addCLCT0(), CSCTMBHeader2007::addCLCT0(), CSCTMBHeader2006::addCLCT1(), CSCTMBHeader2007::addCLCT1(), PreshowerHitMaker::addHit(), MuonCSCChamberResidual::addResidual(), L1RPCConeBuilder::TCompressedCon::addStrip(), CalibrationAlgorithm::analyse(), NoiseAlgorithm::analyse(), PedestalsAlgorithm::analyse(), PedsOnlyAlgorithm::analyse(), CSCComparatorDigiValidation::analyze(), CSCDigiToPattern::analyze(), ESPedestalTask::analyze(), ESOccupancyTask::analyze(), SiStripNoisesBuilder::analyze(), SiStripPedestalsBuilder::analyze(), SiStripThresholdBuilder::analyze(), ESTrendTask::analyze(), RPCMonitorDigi::analyze(), SiStripNoisesReader::analyze(), SiStripPedestalsReader::analyze(), EcalABAnalyzer::analyze(), EcalPerEvtLaserAnalyzer::analyze(), EcalTestPulseAnalyzer::analyze(), EcalPreshowerRecHitsValidation::analyze(), EcalLaserAnalyzer2::analyze(), HitEff::analyze(), EcalLaserAnalyzer::analyze(), SiStripBaselineAnalyzer::analyze(), SiStripBadAPVandHotStripAlgorithmFromClusterOccupancy::AnalyzeOccupancy(), ThreeThresholdAlgorithm::applyGains(), Chamber_AutoCorrMat::autocorrmat(), SiStripAPVRestorer::BaselineAndSaturationInspect(), SiStripAPVRestorer::BaselineFollowerInspect(), FWRPCDigiProxyBuilder::build(), HPSPFRecoTauAlgorithm::buildOneProngStrip(), AlignableTracker::buildTRK(), CSCSectorReceiverLUT::calcGlobalPhiME(), CSCSectorReceiverMiniLUT::calcGlobalPhiMEMini(), CSCSectorReceiverMiniLUT::calcLocalPhiMini(), CSCPairResidualsConstraint::calculatePhi(), CalibrationScanTask::CalibrationScanTask(), CalibrationTask::CalibrationTask(), CSCChannelTranslator::channelFromStrip(), EcalElectronicsId::channelId(), HitEff::checkLayer(), CSCTMBHeader2006::CLCTDigis(), CSCTMBHeader2007::CLCTDigis(), CSCTMBHeader2007_rev0x50c3::CLCTDigis(), OldThreeThresholdAlgorithm::clusterizeDetUnit_(), SiStripMeanCMExtractor::CMExtractorFromPedestals(), CSCCLCTData::comparatorDigis(), CSCTMBHeader2006::CorrelatedLCTDigis(), CSCTMBHeader2007::CorrelatedLCTDigis(), CSCTMBHeader2007_rev0x50c3::CorrelatedLCTDigis(), sistrip::DigiToRaw::createFedBuffers_(), SiStripThresholdGenerator::createObject(), EcalTBDaqFormatter::DecodeMEM(), EcalTB07DaqFormatter::DecodeMEM(), EcalPreshowerTopology::decrementIx(), EcalPreshowerTopology::decrementIy(), EcalPreshowerTopology::decrementIz(), EcalElectronicsMapper::deletePointers(), RPCReadOutMapping::detUnitFrame(), CSCCFEBData::digis(), SiStripCorrelateNoise::DoAnalysis(), CSCValidation::doCompTiming(), python.Vispa.Main.Application.Application::doubleClickOnFile(), CSCCathodeLCTProcessor::dumpDigis(), python.Vispa.Plugins.ConfigEditor.ConfigEditorTabController.ConfigEditorTabController::dumpPython(), EcalDCCTB07UnpackingModule::EcalDCCTB07UnpackingModule(), python.XML2Python.TreeBuilder::endElement(), XML2Python.TreeBuilder::endElement(), TowerBlockFormatter::EndEvent(), python.Vispa.Plugins.ConfigEditor.ConfigEditorTabController.ConfigEditorTabController::exportDot(), python.Vispa.Share.ImageExporter.ImageExporter::exportImage(), SiStripBadAPVAlgorithmFromClusterOccupancy::extractBadAPVs(), SiStripBadAPVandHotStripAlgorithmFromClusterOccupancy::extractBadAPVSandStrips(), SiStripHotStripAlgorithmFromClusterOccupancy::extractBadStrips(), parserTimingReport::extractRSS_VSIZE(), LatencyTask::fill(), FineDelayTask::fill(), sistrip::FEDBufferPayloadCreator::fillClusterData(), RPCOccupancyTest::fillGlobalME(), popcon::SiStripPopConHandlerUnitTest< T >::fillObject(), popcon::SiStripPopConHandlerUnitTestNoise< T >::fillObject(), LaserAlignment::fillPedestalProfiles(), SiStripFedZeroSuppression::fillThresholds_(), CSCHitFromStripOnly::findHitOnStripPosition(), CSCCathodeLCTProcessor::findLCTs(), LASPeakFinder::FindPeakIn(), EndcapPiZeroDiscriminatorAlgo::findPi0Road(), PreshowerClusterAlgo::findRoad(), GlobalTrajectoryBuilderBase::fixTEC(), SiStripAPVRestorer::FlatRestore(), cmsPerfPublish::getcmd(), cmsPerfPublish::getcmdBasic(), RPCLogCone::getCompressedCone(), EcalElectronicsMapping::getDetId(), EcalElectronicsMapping::getElectronicsId(), CSCCathodeLCTProcessor::getKeyStripData(), parserPerfsuiteMetadata.parserPerfsuiteMetadata::getMachineInfo(), python.namespaceDict::getNamespaceDict(), popcon::EcalTPGWeightGroupHandler::getNewObjects(), popcon::EcalTPGSlidingWindowHandler::getNewObjects(), SiStripNoises::getNoise(), python.Vispa.Plugins.EdmBrowser.EdmDataAccessor.EdmDataAccessor::getObjectLabel(), SiStripPedestals::getPed(), python.Vispa.Plugins.EdmBrowser.EdmDataAccessor.EdmDataAccessor::getShortLabel(), python.Vispa.Plugins.EdmBrowser.EdmDataAccessor.EdmDataAccessor::getShortType(), EcalElectronicsMapping::getTriggerElectronicsId(), ESTBNumberingScheme::getUnitID(), EcalPreshowerNumberingScheme::getUnitID(), CSCValidation::getWidth(), Numbers::icEE(), EcalPreshowerTopology::incrementIx(), EcalPreshowerTopology::incrementIy(), EcalPreshowerTopology::incrementIz(), SiTrivialInduceChargeOnStrips::induce(), CastorText2DetIdConverter::init(), HcalText2DetIdConverter::init(), EcalTB07DaqFormatter::interpretRawData(), EcalTBDaqFormatter::interpretRawData(), TrajectoryAtInvalidHit::isDoubleSided(), HitEff::isDoubleSided(), LASProfileJudge::IsNegativePeaksInProfile(), LASProfileJudge::IsOverdrive(), LASProfileJudge::IsPeaksInProfile(), StripCPEfromTrackAngle::localParameters(), StripCPEgeometric::localParameters(), StripCPE::localParameters(), CSCSectorReceiverLUT::localPhi(), buildHistoTypes::main(), runall::main(), lumiValidate::main(), SiStripHashedDetIdESModule::make(), PFCandidateStripMerger::mergeCandidates(), SiStripQuality::nBadStripsOnTheRight(), python.Vispa.Plugins.Browser.BrowserPlugin.BrowserPlugin::openFile(), python.Vispa.Main.Application.Application::openFile(), reco::tau::RecoTauPiZeroStripPlugin::operator()(), SiStripNoises::operator/(), operator<<(), CSCCathodeLCTProcessor::preTrigger(), SiStripPedestals::printDebug(), CSCCathodeLCTProcessor::printPatterns(), ShallowRechitClustersProducer::produce(), ShallowTrackClustersProducer::produce(), ShallowSimhitClustersProducer::produce(), SiStripHashedDetIdESProducer::produce(), CSCTFUnpacker::produce(), ClusterShapeHitFilterESProducer::produce(), Strip1DMeasurementTransformator::projectionMatrix(), StripMeasurementTransformator::projectionMatrix(), FileNamesHelper::read_ConfigurationFromSimulationCandles(), runTheMatrix.MatrixReader::readMatrix(), python.Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor::recursePSetProperties(), CSCDigiValidator::relabelCompDigis(), CSCDigiValidator::relabelStripDigis(), EcalElectronicsMapper::resetPointers(), RPCLogCone::RPCLogCone(), runTheMatrix.WorkFlowRunner::run(), CSCStripElectronicsSim::runComparator(), EdgesToViz::runme(), python.Vispa.Main.Application.Application::saveFileAsDialog(), CSCComparatorDigi::setStrip(), SiStripCondObjBuilderFromDb::setValuesCabling(), jptJetAnalysis::StripSignalOverNoiseCalculator::signalOverNoise(), RPCSimTriv::simulateNoise(), RPCSimSimple::simulateNoise(), RPCSimParam::simulateNoise(), RPCSimAverage::simulateNoise(), SiStripZeroSuppression::storeBaseline(), FastLinearCMNSubtractor::subtract_(), MedianCMNSubtractor::subtract_(), PercentileCMNSubtractor::subtract_(), SiStripFedZeroSuppression::suppress(), CSCMotherboard::testLCT(), CSCCathodeLCTProcessor::testPatterns(), TrajectoryAtInvalidHit::TrajectoryAtInvalidHit(), ZeroSuppressFP420::trkFEDclusterizer(), python.Vispa.Main.TabController.TabController::updateLabel(), ValidateGeometry::validateRPCGeometry(), ValidateGeometry::validateStripTopology(), python.Vispa.Main.Application.Application::windowTitle(), ESUnpacker::word2digi(), and Chamber_AutoCorrMat::zero().