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 }
|