Crossfire Server, Trunk
|
#include <Utils.h>
Static Public Member Functions | |
static bool | endsWith (const char *const str, const char *const with) |
static void | writeLinkedChar (const linked_char *list, StringBuffer *buf) |
static void | writeStringArray (char **items, size_t count, StringBuffer *buf) |
|
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.
References make_face_from_files::str.
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 disinfect::a, buf, guildoracle::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, disinfect::count, and stringbuffer_append_printf().
Referenced by writeRecipe().