Find the position of 'search' substring starting from the end. It returns std::string::npos if not found.
| 245 | // Find the position of 'search' substring starting from the end. |
| 246 | // It returns std::string::npos if not found. |
| 247 | inline std::string::size_type ReverseFind(const std::string & subject, const std::string & search) |
| 248 | { |
| 249 | return subject.rfind(search); |
| 250 | } |
| 251 | |
| 252 | // In place replace the 'search' substring by the 'replace' string in 'str'. |
| 253 | inline bool ReplaceInPlace(std::string & subject, const std::string & search, const std::string & replace) |
no outgoing calls