Home || Architecture || Video Search || Visual Search || Scripts || Applications || Important Messages || OGL || Src

String Impala::StringReplaceAll ( String  src,
CString  subFrom,
CString  subTo,
const bool  recursive = true 
) [inline]

Replace all subFrom with subTo within src.

Definition at line 206 of file String.h.

Referenced by Impala::CmdOptions::ConfigureLogSystem(), Impala::Core::Stream::RgbDataSrcLavc_old::DetermineInfoName(), Impala::Core::Stream::RgbDataSrcLavc::DetermineInfoName(), Impala::Util::Database::DoMkDirPathLocal(), Impala::Persistency::FileSystem::DoMkDirPathLocal(), Impala::Persistency::VideoSetRepositoryInFile::Get(), Impala::Persistency::ImageSetRepositoryInFile::Get(), Impala::Core::Database::RawDataSet::GetAsPath(), Impala::Persistency::RepositoryInFileSystem::GetFS(), Impala::Core::VideoSet::MakeQuidLookup::HandleNewFrame(), Impala::Core::VideoSet::InterestPointProc::HandleNewFrame(), Impala::Util::Database::Init(), Impala::Core::Database::RawDataSet::Init(), Impala::Core::Feature::InterestPointFeature::InterestPointFeature(), Impala::Core::ImageSet::MakeImageSet(), Impala::Core::VideoSet::MakeVideoSet(), Impala::Util::IOBufferFile::Open(), Impala::Core::Stream::RgbDataSrcLavc::RgbDataSrcLavc(), Impala::Core::Stream::RgbDataSrcLavc_old::RgbDataSrcLavc_old(), Impala::Core::VideoSet::Mpeg7Doc::String2Xml(), Impala::Core::VideoJob::Reporter::WriteVideoSet(), and Impala::Core::VideoSet::Mpeg7Doc::Xml2String().

00208 {
00209     String::size_type subFromSize = subFrom.size();
00210     String::size_type subToSize = subTo.size();
00211     String::size_type start = src.find(subFrom);
00212     while (start != String::npos)
00213     {
00214         src = src.replace(start, subFromSize, subTo);
00215         start = src.find(subFrom, recursive ? 0 : start + subToSize);
00216     }
00217     return src;
00218 }


Generated on Fri Mar 19 10:35:31 2010 for ImpalaSrc by  doxygen 1.5.1