llama : better replace_all (cont) (#8926)
* llama : better replace_all (cont) ggml-ci * code : deduplicate replace_all ggml-ci
This commit is contained in:
parent
3071c0a5f2
commit
45a55b91aa
7 changed files with 35 additions and 49 deletions
|
@ -286,6 +286,8 @@ std::vector<std::string> string_split(std::string input, char separator);
|
|||
std::string string_strip(const std::string & str);
|
||||
std::string string_get_sortable_timestamp();
|
||||
|
||||
void string_replace_all(std::string & s, const std::string & search, const std::string & replace);
|
||||
|
||||
template<class T>
|
||||
static std::vector<T> string_split(const std::string & str, char delim) {
|
||||
std::vector<T> values;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue