mirror of
https://github.com/boostorg/filesystem.git
synced 2026-02-01 20:42:08 +00:00
Merge filesystem, range, doc from trunk.
* Inline deprecated methods in filesystem. * Fix some links in range. * Clean up test document a bit. [SVN r64315]
This commit is contained in:
@@ -25,17 +25,17 @@ namespace boost
|
||||
|
||||
# ifndef BOOST_FILESYSTEM_NO_DEPRECATED
|
||||
|
||||
std::string extension(const path & p)
|
||||
inline std::string extension(const path & p)
|
||||
{
|
||||
return p.extension().string();
|
||||
}
|
||||
|
||||
std::string basename(const path & p)
|
||||
inline std::string basename(const path & p)
|
||||
{
|
||||
return p.stem().string();
|
||||
}
|
||||
|
||||
path change_extension( const path & p, const path & new_extension )
|
||||
inline path change_extension( const path & p, const path & new_extension )
|
||||
{
|
||||
path new_p( p );
|
||||
new_p.replace_extension( new_extension );
|
||||
|
||||
Reference in New Issue
Block a user