==================== idStr::ExtractFilePath ==================== */
| 947 | ==================== |
| 948 | */ |
| 949 | void idStr::ExtractFilePath( idStr &dest ) const { |
| 950 | int pos; |
| 951 | |
| 952 | // |
| 953 | // back up until a \ or the start |
| 954 | // |
| 955 | pos = Length(); |
| 956 | while( ( pos > 0 ) && !isDirSeparator( ( *this )[ pos - 1 ] ) ) { |
| 957 | pos--; |
| 958 | } |
| 959 | |
| 960 | Left( pos, dest ); |
| 961 | } |
| 962 | |
| 963 | /* |
| 964 | ==================== |
no test coverage detected