Changeset View
Changeset View
Standalone View
Standalone View
intern/cycles/util/util_string.h
| Show First 20 Lines • Show All 46 Lines • ▼ Show 20 Lines | |||||
| string string_printf(const char *format, ...) PRINTF_ATTRIBUTE; | string string_printf(const char *format, ...) PRINTF_ATTRIBUTE; | ||||
| bool string_iequals(const string &a, const string &b); | bool string_iequals(const string &a, const string &b); | ||||
| void string_split(vector<string> &tokens, | void string_split(vector<string> &tokens, | ||||
| const string &str, | const string &str, | ||||
| const string &separators = "\t ", | const string &separators = "\t ", | ||||
| bool skip_empty_tokens = true); | bool skip_empty_tokens = true); | ||||
| void string_replace(string &haystack, const string &needle, const string &other); | void string_replace(string &haystack, const string &needle, const string &other); | ||||
| bool string_startswith(const string &s, const char *start); | bool string_startswith(string_view s, string_view start); | ||||
| bool string_endswith(const string &s, const string &end); | bool string_endswith(string_view s, string_view end); | ||||
leesonw: proto differs from the implementation in the cpp file. | |||||
| string string_strip(const string &s); | string string_strip(const string &s); | ||||
| string string_remove_trademark(const string &s); | string string_remove_trademark(const string &s); | ||||
| string string_from_bool(const bool var); | string string_from_bool(const bool var); | ||||
| string to_string(const char *str); | string to_string(const char *str); | ||||
| string string_to_lower(const string &s); | string string_to_lower(const string &s); | ||||
| /* Wide char strings are only used on Windows to deal with non-ASCII | /* Wide char strings are only used on Windows to deal with non-ASCII | ||||
| * characters in file names and such. No reason to use such strings | * characters in file names and such. No reason to use such strings | ||||
| Show All 20 Lines | |||||
proto differs from the implementation in the cpp file.