-------------------------------------------------------------------------------- Description: Remove a subpart from a string --------------------------------------------------------------------------------
| 63 | // Remove a subpart from a string |
| 64 | // -------------------------------------------------------------------------------- |
| 65 | inline bool StringRemove( std::string& baseString, const char* remove ) |
| 66 | { |
| 67 | // find what to remove |
| 68 | size_t removeStart = baseString.find( remove ); |
| 69 | if( removeStart != std::string::npos ) |
| 70 | { |
| 71 | baseString.erase( removeStart, strlen( remove ) ); |
| 72 | return true; |
| 73 | } |
| 74 | return false; |
| 75 | } |
| 76 | |
| 77 | // -------------------------------------------------------------------------------- |
| 78 | // Description: |