feat(token): Add optional suffix to label tokens
This commit is contained in:
parent
70bd235e9e
commit
0cfddf7d72
5 changed files with 43 additions and 42 deletions
include/utils
|
@ -16,12 +16,10 @@ namespace string_util {
|
|||
string upper(const string& s);
|
||||
string lower(const string& s);
|
||||
bool compare(const string& s1, const string& s2);
|
||||
string replace(
|
||||
const string& haystack, const string& needle, const string& reply, size_t start = 0, size_t end = string::npos);
|
||||
string replace_all(
|
||||
const string& haystack, const string& needle, const string& reply, size_t start = 0, size_t end = string::npos);
|
||||
string replace_all_bounded(const string& haystack, string needle, string replacement, size_t min, size_t max,
|
||||
size_t start = 0, size_t end = string::npos);
|
||||
string replace(const string& haystack, const string& needle, const string& replacement, size_t start = 0,
|
||||
size_t end = string::npos);
|
||||
string replace_all(const string& haystack, const string& needle, const string& replacement, size_t start = 0,
|
||||
size_t end = string::npos);
|
||||
string squeeze(const string& haystack, char needle);
|
||||
string strip(const string& haystack, char needle);
|
||||
string strip_trailing_newline(const string& haystack);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue