Skip to content

Instantly share code, notes, and snippets.

@agirault
Created August 16, 2013 14:44
Show Gist options
  • Save agirault/6250531 to your computer and use it in GitHub Desktop.
Save agirault/6250531 to your computer and use it in GitHub Desktop.
size_t found = m_FilePath.find_last_of("/\\");
m_FileDir = str.substr(0,found);
m_FileName = str.substr(found+1);
@agirault
Copy link
Author

m_FilePath, m_FileDir & m_FileName are std::string

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment