18 strlen(str) >= strlen(with) &&
19 strcmp(&str[strlen(str) - strlen(with)], with) == 0;
23 std::vector<std::string> items;
25 items.push_back(list->
name);
30 for (
auto a = items.rbegin(); a != items.rend(); a++) {
38 for (
size_t item = 0; item < count; item++) {
static bool endsWith(const char *const str, const char *const with)
Checks if a string ends with another one.
void stringbuffer_append_printf(StringBuffer *sb, const char *format,...)
Append a formatted string to a string buffer instance.
struct linked_char * next
static void writeStringArray(char **items, size_t count, StringBuffer *buf)
Write a list of strings as ' a,b,c' (leading space).
A buffer that will be expanded as content is added to it.
static void writeLinkedChar(const linked_char *list, StringBuffer *buf)
Write a list of strings as ' a,b,c' (leading space).