| 580 | const NativePathString& PlatformFilename::ToNative() const { return impl_->native_; } |
| 581 | |
| 582 | std::string PlatformFilename::ToString() const { |
| 583 | #if _WIN32 |
| 584 | auto result = NativeToString(impl_->generic()); |
| 585 | if (!result.ok()) { |
| 586 | std::stringstream ss; |
| 587 | ss << "<Unrepresentable filename: " << result.status().ToString() << ">"; |
| 588 | return ss.str(); |
| 589 | } |
| 590 | return *std::move(result); |
| 591 | #else |
| 592 | return impl_->generic(); |
| 593 | #endif |
| 594 | } |
| 595 | |
| 596 | PlatformFilename PlatformFilename::Parent() const { |
| 597 | return PlatformFilename(NativeParent(ToNative())); |
no test coverage detected