==================== idStr::ExtractFileName ==================== */
| 966 | ==================== |
| 967 | */ |
| 968 | void idStr::ExtractFileName( idStr &dest ) const { |
| 969 | int pos; |
| 970 | |
| 971 | // |
| 972 | // back up until a \ or the start |
| 973 | // |
| 974 | pos = Length() - 1; |
| 975 | while( ( pos > 0 ) && !isDirSeparator( ( *this )[ pos - 1 ] ) ) { |
| 976 | pos--; |
| 977 | } |
| 978 | |
| 979 | Right( Length() - pos, dest ); |
| 980 | } |
| 981 | |
| 982 | /* |
| 983 | ==================== |
no test coverage detected