Lines Matching defs:text
1400 /** Replace first occurance of <token> with <text> in <string> starting at <search_posistion>
1403 * @param search_position Position at which find will start, it is updated to position at which replaced text ends
1404 * @param text String that will be used as replacement for <token>
1407 void Utils::replaceToken(const glw::GLchar* token, size_t& search_position, const glw::GLchar* text,
1410 const size_t text_length = strlen(text);
1414 string.replace(token_position, token_length, text, text_length);
1419 /** Replace all occurances of <token> with <text> in <string>
1422 * @param text String that will be used as replacement for <token>
1425 void Utils::replaceAllTokens(const glw::GLchar* token, const glw::GLchar* text, std::string& string)
1427 const size_t text_length = strlen(text);
1443 string.replace(token_position, token_length, text, text_length);