Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- +static std::string remove_ext( const std::string &filepath )
- +{
- + std::string tmp = trim_filename( filepath ); // ^ ^
- + return filepath.substr( 0, filepath.rfind( '.' ) ); // =('.' )=
- +} // -U--U--
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement