#include <string>
Go to the source code of this file.
Classes | |
class | stringUpdate |
Functions | |
int | replace (std::string &input, const std::string &gone, const std::string &it, bool multiple=false) |
int | replaceRange (std::string &input, const std::string &first, const std::string &last, const std::string &it, bool multiple=false) |
void | strip (std::string &input, const std::string &blanks=" \n\t") |
int replace | ( | std::string & | input, |
const std::string & | gone, | ||
const std::string & | it, | ||
bool | multiple = false |
||
) |
replace "gone" with "it" in "input" if multiple=true reconsider the string after each replacement
int replaceRange | ( | std::string & | input, |
const std::string & | first, | ||
const std::string & | last, | ||
const std::string & | it, | ||
bool | multiple = false |
||
) |
replace everything between "first" and "last" with "it" in "input" if multiple=true reconsider the string after each replacement
void strip | ( | std::string & | input, |
const std::string & | blanks = " \n\t" |
||
) |
Definition at line 16 of file stringTools.cc.
References b, and ExpressReco_HICollisions_FallBack::e.
Referenced by CSCCLCTData::add(), Chamber_AutoCorrMat::add(), CSCDigiToRaw::add(), CSCTMBHeader2007::addCLCT0(), CSCTMBHeader2006::addCLCT0(), CSCTMBHeader2007::addCLCT1(), CSCTMBHeader2006::addCLCT1(), PreshowerHitMaker::addHit(), MuonCSCChamberResidual::addResidual(), L1RPCConeBuilder::TCompressedCon::addStrip(), PedestalsAlgorithm::analyse(), PedsOnlyAlgorithm::analyse(), NoiseAlgorithm::analyse(), CalibrationAlgorithm::analyse(), EcalTestPulseAnalyzer::analyze(), CSCComparatorDigiValidation::analyze(), EcalPerEvtLaserAnalyzer::analyze(), EcalLaserAnalyzer::analyze(), EcalABAnalyzer::analyze(), SiStripThresholdBuilder::analyze(), SiStripPedestalsReader::analyze(), HitEff::analyze(), EcalLaserAnalyzer2::analyze(), ESOccupancyTask::analyze(), RPCMonitorDigi::analyze(), SiStripNoisesBuilder::analyze(), SiStripNoisesReader::analyze(), SiStripPedestalsBuilder::analyze(), ESTrendTask::analyze(), EcalPreshowerRecHitsValidation::analyze(), SiStripBaselineAnalyzer::analyze(), CSCDigiToPattern::analyze(), ESPedestalTask::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(), CSCTMBHeader2007_rev0x50c3::CLCTDigis(), CSCTMBHeader2007::CLCTDigis(), CSCTMBHeader2006::CLCTDigis(), OldThreeThresholdAlgorithm::clusterizeDetUnit_(), SiStripMeanCMExtractor::CMExtractorFromPedestals(), CSCCLCTData::comparatorDigis(), CSCTMBHeader2007::CorrelatedLCTDigis(), CSCTMBHeader2006::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(), CSCCathodeLCTProcessor::dumpDigis(), EcalDCCTB07UnpackingModule::EcalDCCTB07UnpackingModule(), TowerBlockFormatter::EndEvent(), SiStripBadAPVAlgorithmFromClusterOccupancy::extractBadAPVs(), SiStripBadAPVandHotStripAlgorithmFromClusterOccupancy::extractBadAPVSandStrips(), SiStripHotStripAlgorithmFromClusterOccupancy::extractBadStrips(), LatencyTask::fill(), FineDelayTask::fill(), sistrip::FEDBufferPayloadCreator::fillClusterData(), RPCOccupancyTest::fillGlobalME(), popcon::SiStripPopConHandlerUnitTestNoise< T >::fillObject(), popcon::SiStripPopConHandlerUnitTest< T >::fillObject(), LaserAlignment::fillPedestalProfiles(), SiStripFedZeroSuppression::fillThresholds_(), CSCHitFromStripOnly::findHitOnStripPosition(), CSCCathodeLCTProcessor::findLCTs(), LASPeakFinder::FindPeakIn(), EndcapPiZeroDiscriminatorAlgo::findPi0Road(), PreshowerClusterAlgo::findRoad(), GlobalTrajectoryBuilderBase::fixTEC(), SiStripAPVRestorer::FlatRestore(), RPCLogCone::getCompressedCone(), EcalElectronicsMapping::getDetId(), EcalElectronicsMapping::getElectronicsId(), CSCCathodeLCTProcessor::getKeyStripData(), popcon::EcalTPGWeightGroupHandler::getNewObjects(), popcon::EcalTPGSlidingWindowHandler::getNewObjects(), SiStripNoises::getNoise(), SiStripPedestals::getPed(), EcalElectronicsMapping::getTriggerElectronicsId(), EcalPreshowerNumberingScheme::getUnitID(), ESTBNumberingScheme::getUnitID(), CSCValidation::getWidth(), Numbers::icEE(), EcalPreshowerTopology::incrementIx(), EcalPreshowerTopology::incrementIy(), EcalPreshowerTopology::incrementIz(), SiTrivialInduceChargeOnStrips::induce(), HcalText2DetIdConverter::init(), CastorText2DetIdConverter::init(), EcalTB07DaqFormatter::interpretRawData(), EcalTBDaqFormatter::interpretRawData(), TrajectoryAtInvalidHit::isDoubleSided(), HitEff::isDoubleSided(), LASProfileJudge::IsNegativePeaksInProfile(), LASProfileJudge::IsOverdrive(), LASProfileJudge::IsPeaksInProfile(), StripCPEgeometric::localParameters(), StripCPE::localParameters(), StripCPEfromTrackAngle::localParameters(), CSCSectorReceiverLUT::localPhi(), SiStripHashedDetIdESModule::make(), PFCandidateStripMerger::mergeCandidates(), SiStripQuality::nBadStripsOnTheRight(), reco::tau::RecoTauPiZeroStripPlugin::operator()(), SiStripNoises::operator/(), operator<<(), CSCCathodeLCTProcessor::preTrigger(), SiStripPedestals::printDebug(), CSCCathodeLCTProcessor::printPatterns(), SiStripHashedDetIdESProducer::produce(), ShallowRechitClustersProducer::produce(), CSCTFUnpacker::produce(), ClusterShapeHitFilterESProducer::produce(), ShallowTrackClustersProducer::produce(), ShallowSimhitClustersProducer::produce(), Strip1DMeasurementTransformator::projectionMatrix(), StripMeasurementTransformator::projectionMatrix(), CSCDigiValidator::relabelCompDigis(), CSCDigiValidator::relabelStripDigis(), EcalElectronicsMapper::resetPointers(), RPCLogCone::RPCLogCone(), CSCStripElectronicsSim::runComparator(), CSCComparatorDigi::setStrip(), SiStripCondObjBuilderFromDb::setValuesCabling(), jptJetAnalysis::StripSignalOverNoiseCalculator::signalOverNoise(), RPCSimTriv::simulateNoise(), RPCSimAverage::simulateNoise(), RPCSimSimple::simulateNoise(), RPCSimParam::simulateNoise(), SiStripZeroSuppression::storeBaseline(), FastLinearCMNSubtractor::subtract_(), MedianCMNSubtractor::subtract_(), PercentileCMNSubtractor::subtract_(), SiStripFedZeroSuppression::suppress(), CSCMotherboard::testLCT(), CSCCathodeLCTProcessor::testPatterns(), TrajectoryAtInvalidHit::TrajectoryAtInvalidHit(), ZeroSuppressFP420::trkFEDclusterizer(), ValidateGeometry::validateRPCGeometry(), ValidateGeometry::validateStripTopology(), ESUnpacker::word2digi(), and Chamber_AutoCorrMat::zero().