| 242 | } |
| 243 | |
| 244 | size_t FindSlash( const std::string& path, size_t offset ) |
| 245 | { |
| 246 | auto pos1 = path.find( '/', offset ); |
| 247 | auto pos2 = path.find( '\\', offset ); |
| 248 | if( pos1 != std::string::npos ) |
| 249 | { |
| 250 | if( pos2 != std::string::npos ) |
| 251 | { |
| 252 | return std::min( pos1, pos2 ); |
| 253 | } |
| 254 | return pos1; |
| 255 | } |
| 256 | return pos2; |
| 257 | } |
| 258 | |
| 259 | #ifdef _MSC_VER |
| 260 | #define mkdir( path ) _mkdir( path ) |