| 367 | } |
| 368 | |
| 369 | path path::stem() const |
| 370 | { |
| 371 | path name(filename()); |
| 372 | if (name == dot_path || name == dot_dot_path) return name; |
| 373 | size_type pos(name.m_pathname.rfind(dot)); |
| 374 | return pos == string_type::npos |
| 375 | ? name |
| 376 | : path(name.m_pathname.c_str(), name.m_pathname.c_str() + pos); |
| 377 | } |
| 378 | |
| 379 | path path::extension() const |
| 380 | { |