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

String::size_type Impala::FileNameLastPathSepPos ( CString  filePath  )  [inline]

Position of last path seperator symbol, either '/' or '\' ; npos otherwise.

Definition at line 27 of file FileName.h.

Referenced by Impala::Core::Stream::RgbDataSrcLavc_old::DetermineInfoName(), Impala::Core::Stream::RgbDataSrcLavc::DetermineInfoName(), FileNameBase(), FileNameExt(), FileNamePath(), FileNamePath2(), and FileNameTail().

00028 {
00029     const String::size_type b1 = filePath.rfind('/');
00030     const String::size_type b2 = filePath.rfind('\\');
00031     if (b1 == b2) // both equal npos
00032         return String::npos;
00033     if (b1 == String::npos)
00034         return b2;
00035     if (b2 == String::npos)
00036         return b1;
00037     return (b1 > b2) ? b1 : b2;
00038 }


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