1234567891011121314151617181920212223242526 |
- #ifndef _SP_UTILITY_RESTFUL_HELPER_
- #define _SP_UTILITY_RESTFUL_HELPER_
- #include <iostream>
- #include <string>
- using namespace std;
- namespace Restful
- {
- namespace Utility
- {
- static void SplitFilePath(const std::string& absoluteFilePath, std::string& fileName, std::string& fileSuffix)
- {
- //TODO:
- string::size_type pos = absoluteFilePath.find_last_of("/\\") + 1;
- fileName = path.substr(pos, absoluteFilePath.length() - pos);
- fileSuffix = absoluteFilePath.substr(absoluteFilePath.find_last_of('.') + 1);
- }
- }
- #endif //_SP_UTILITY_RESTFUL_HELPER_
|