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

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

Replace all subFrom with subTo within src.

Definition at line 207 of file String.h.

Referenced by Impala::CmdOptions::ConfigureLogSystem(), Impala::Core::Stream::RgbDataSrcLavc_old::DetermineInfoName(), Impala::Core::Stream::RgbDataSrcLavc::DetermineInfoName(), Impala::Persistency::FileSystem::DoDeleteDir(), Impala::Util::Database::DoMkDir(), Impala::Persistency::FileSystem::DoMkDir(), 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(), GetTmpPath(), 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().

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


Generated on Thu Jan 13 09:13:56 2011 for ImpalaSrc by  doxygen 1.5.1