Google OR-Tools v9.11
a fast and portable software suite for combinatorial optimization
Loading...
Searching...
No Matches
file::internal Namespace Reference

Functions

std::string JoinPathImpl (bool honor_abs, std::initializer_list< absl::string_view > paths)
 Not part of the public API.
 
std::pair< absl::string_view, absl::string_view > SplitBasename (absl::string_view path)
 

Function Documentation

◆ JoinPathImpl()

std::string file::internal::JoinPathImpl ( bool honor_abs,
std::initializer_list< absl::string_view > paths )

Not part of the public API.

Given a collection of file paths, append them all together, ensuring that the proper path separators are inserted between them.

This size calculation is worst-case: it assumes one extra "/" for every path other than the first.

Definition at line 41 of file path.cc.

◆ SplitBasename()

std::pair< absl::string_view, absl::string_view > file::internal::SplitBasename ( absl::string_view path)

Return the parts of the basename of path, split on the final ".". If there is no "." in the basename or "." is the final character in the basename, the second value will be empty.

Definition at line 79 of file path.cc.