#ifndef _SP_UTILITY_RESTFUL_HELPER_ #define _SP_UTILITY_RESTFUL_HELPER_ #include #include 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_