![]() |
Crossfire Server, Trunk
1.75.0
|
#include <Utils.h>
Static Public Member Functions | |
static bool | endsWith (const char *const str, const char *const with) |
Checks if a string ends with another one. More... | |
static void | writeLinkedChar (const linked_char *list, StringBuffer *buf) |
Write a list of strings as ' a,b,c' (leading space). More... | |
static void | writeStringArray (char **items, size_t count, StringBuffer *buf) |
Write a list of strings as ' a,b,c' (leading space). More... | |
|
static |
Checks if a string ends with another one.
str | string to check the end of. |
with | string to check at the end of str. |
Definition at line 16 of file Utils.cpp.
Referenced by TarLoader::willLoad(), ArtifactLoader::willLoad(), FacesetLoader::willLoad(), ArchetypeLoader::willLoad(), MessageLoader::willLoad(), PngLoader::willLoad(), FaceLoader::willLoad(), TreasureLoader::willLoad(), QuestLoader::willLoad(), and WrapperLoader::willLoad().
|
static |
Write a list of strings as ' a,b,c' (leading space).
The items are inserted last-to-first, because loading inverts their order.
list | items to write. |
buf | where to write. |
Definition at line 22 of file Utils.cpp.
References a(), buf, list, and stringbuffer_append_printf().
Referenced by writeRecipe().
|
static |
Write a list of strings as ' a,b,c' (leading space).
items | items to write. |
count | number of items. |
buf | where to write. |
Definition at line 36 of file Utils.cpp.
References buf, and stringbuffer_append_printf().
Referenced by writeRecipe().