mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-29 21:05:12 +00:00
add FileName::extension() method.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26494 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
8c4ffb42da
commit
c0aeb567ce
@ -302,6 +302,12 @@ string FileName::onlyFileNameWithoutExt() const
|
||||
}
|
||||
|
||||
|
||||
string FileName::extension() const
|
||||
{
|
||||
return fromqstr(d->fi.suffix());
|
||||
}
|
||||
|
||||
|
||||
FileName FileName::onlyPath() const
|
||||
{
|
||||
FileName path;
|
||||
|
@ -170,8 +170,10 @@ public:
|
||||
|
||||
/// filename without path
|
||||
std::string onlyFileName() const;
|
||||
/// filename without path and without extension
|
||||
std::string onlyFileNameWithoutExt() const;
|
||||
/// filename without path and without extension
|
||||
std::string onlyFileNameWithoutExt() const;
|
||||
/// only extension after the last dot.
|
||||
std::string extension() const;
|
||||
/// path without file name
|
||||
FileName onlyPath() const;
|
||||
/// used for display in the Gui
|
||||
|
Loading…
Reference in New Issue
Block a user