Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Etienne Schmitt
CGoGN
Commits
928f2127
Commit
928f2127
authored
Feb 20, 2014
by
Sylvain Thery
Browse files
with comment
parent
6e76de84
Changes
1
Hide whitespace changes
Inline
Side-by-side
include/Utils/filename.h
View file @
928f2127
...
@@ -31,7 +31,12 @@ namespace CGoGN
...
@@ -31,7 +31,12 @@ namespace CGoGN
{
{
namespace
Utils
namespace
Utils
{
{
/**
* @brief checkFileNameExtension
* @param filename
* @param extension (with . example ".svg")
* @return the modified (or not) filename
*/
inline
std
::
string
checkFileNameExtension
(
const
std
::
string
&
filename
,
const
std
::
string
extension
)
inline
std
::
string
checkFileNameExtension
(
const
std
::
string
&
filename
,
const
std
::
string
extension
)
{
{
std
::
size_t
found
=
filename
.
rfind
(
extension
);
std
::
size_t
found
=
filename
.
rfind
(
extension
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment