mirror of
https://github.com/OpenCMT/uLib.git
synced 2025-12-06 07:21:31 +01:00
[uLib Geometry]
non working version! + adds ProgrammableAccessor + renaming of some Image structures ...
This commit is contained in:
19
tmp/CodeLoop/ManageFilename.cpp
Normal file
19
tmp/CodeLoop/ManageFilename.cpp
Normal file
@@ -0,0 +1,19 @@
|
||||
|
||||
#include "ManageFilename.h"
|
||||
|
||||
|
||||
|
||||
std::string ManageFilename::GetFileExtension(const std::string& FileName)
|
||||
{
|
||||
if(FileName.find_last_of(".") != std::string::npos)
|
||||
return FileName.substr(FileName.find_last_of(".")+1);
|
||||
return "";
|
||||
}
|
||||
|
||||
std::string ManageFilename::GetFileName(const std::string& FileName)
|
||||
{
|
||||
if(FileName.find_last_of(".") != std::string::npos)
|
||||
return FileName.substr(0,FileName.find_last_of("."));
|
||||
return "";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user