Advertisement
Yurry

Untitled

Dec 21st, 2011
116
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.27 KB | None | 0 0
  1. +static std::string remove_ext( const std::string &filepath )
  2. +{
  3. +    std::string tmp = trim_filename( filepath );        //   ^  ^
  4. +    return filepath.substr( 0, filepath.rfind( '.' ) ); // =('.' )=
  5. +}                                                       // -U--U--
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement