Lines Matching defs:text
1574 /** Replace first occurance of <token> with <text> in <string> starting at <search_posistion>
1577 * @param search_position Position at which find will start, it is updated to position at which replaced text ends
1578 * @param text String that will be used as replacement for <token>
1581 void replaceToken(const GLchar* token, size_t& search_position, const GLchar* text, std::string& string)
1583 const size_t text_length = strlen(text);
1597 string.replace(token_position, token_length, text, text_length);
1602 /** Replace all occurances of <token> with <text> in <string>
1605 * @param text String that will be used as replacement for <token>
1608 void replaceAllTokens(const GLchar* token, const GLchar* text, std::string& string)
1610 const size_t text_length = strlen(text);
1626 string.replace(token_position, token_length, text, text_length);