diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2018-07-30 11:15:58 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2018-07-30 11:15:58 +0200 |
commit | 6f120d5f670694a0d1bd8d9dd2a972c295e5daeb (patch) | |
tree | dcab1f48fcca53fc42c22e5c8548b065ad0a7c9e /libbutl/project-name.mxx | |
parent | a31945f682fc69340692680f2736aa74c186ef69 (diff) |
Extend project_name::base() to optionally restrict extension
Diffstat (limited to 'libbutl/project-name.mxx')
-rw-r--r-- | libbutl/project-name.mxx | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/libbutl/project-name.mxx b/libbutl/project-name.mxx index 6b5afc7..943ec8c 100644 --- a/libbutl/project-name.mxx +++ b/libbutl/project-name.mxx @@ -79,8 +79,12 @@ LIBBUTL_MODEXPORT namespace butl // extension, then the base name is the same as the full name and the // returned extension is empty. // + // If the ext argument is not NULL, then only remove the specified + // extension. Note that the extension should not include the dot and the + // comparison is always case-insensitive. + // std::string - base () const; + base (const char* ext = nullptr) const; std::string extension () const; |