#include "shared/shared.h"
#include "common/utils.h"
Go to the source code of this file.
Functions | |
static qboolean | match_raw (int c1, int c2, qboolean ignorecase) |
static qboolean | match_char (int c1, int c2, qboolean ignorecase) |
static qboolean | match_part (const char *filter, const char *string, size_t len, qboolean ignorecase) |
static const char * | match_filter (const char *filter, const char *string, size_t len, qboolean ignorecase) |
qboolean | Com_WildCmpEx (const char *filter, const char *string, int term, qboolean ignorecase) |
color_index_t | Com_ParseColor (const char *s, color_index_t last) |
void | Com_PlayerToEntityState (const player_state_t *ps, entity_state_t *es) |
unsigned | Com_HashString (const char *s, unsigned size) |
unsigned | Com_HashStringLen (const char *s, size_t len, unsigned size) |
void | Com_PageInMemory (void *buffer, size_t size) |
size_t | Com_FormatTime (char *buffer, size_t size, time_t t) |
size_t | Com_FormatTimeLong (char *buffer, size_t size, time_t t) |
size_t | Com_TimeDiff (char *buffer, size_t size, time_t *p, time_t now) |
size_t | Com_TimeDiffLong (char *buffer, size_t size, time_t *p, time_t now) |
size_t | Com_FormatSize (char *dest, size_t destsize, off_t bytes) |
size_t | Com_FormatSizeLong (char *dest, size_t destsize, off_t bytes) |
Variables | |
const char *const | colorNames [10] |
int | paged_total |
size_t Com_FormatSize | ( | char * | dest, |
size_t | destsize, | ||
off_t | bytes | ||
) |
size_t Com_FormatSizeLong | ( | char * | dest, |
size_t | destsize, | ||
off_t | bytes | ||
) |
Definition at line 482 of file utils.c.
Referenced by BuildList(), finish_download(), and format_demo_size().
size_t Com_FormatTime | ( | char * | buffer, |
size_t | size, | ||
time_t | t | ||
) |
size_t Com_FormatTimeLong | ( | char * | buffer, |
size_t | size, | ||
time_t | t | ||
) |
Definition at line 408 of file utils.c.
Referenced by AC_Retry(), Com_TimeDiffLong(), and gtv_drop().
unsigned Com_HashString | ( | const char * | s, |
unsigned | size | ||
) |
Definition at line 339 of file utils.c.
Referenced by Cmd_AddMacro(), Cmd_AliasFind(), Cmd_AliasSet(), Cmd_Complete_f(), Cmd_Find(), Cmd_FindMacro(), Cmd_RegCommand(), Cvar_FindVar(), and Cvar_Get().
unsigned Com_HashStringLen | ( | const char * | s, |
size_t | len, | ||
unsigned | size | ||
) |
Definition at line 383 of file utils.c.
Referenced by BSP_Load(), IMG_FreeUnused(), MOD_FreeUnused(), and S_EndRegistration().
color_index_t Com_ParseColor | ( | const char * | s, |
color_index_t | last | ||
) |
void Com_PlayerToEntityState | ( | const player_state_t * | ps, |
entity_state_t * | es | ||
) |
Definition at line 269 of file utils.c.
Referenced by CL_DeltaFrame(), entity_update(), and MVD_PlayerToEntityStates().
size_t Com_TimeDiff | ( | char * | buffer, |
size_t | size, | ||
time_t * | p, | ||
time_t | now | ||
) |
Definition at line 443 of file utils.c.
Referenced by Com_Uptime_m(), dump_time(), and SV_PrintMiscInfo().
size_t Com_TimeDiffLong | ( | char * | buffer, |
size_t | size, | ||
time_t * | p, | ||
time_t | now | ||
) |
qboolean Com_WildCmpEx | ( | const char * | filter, |
const char * | string, | ||
int | term, | ||
qboolean | ignorecase | ||
) |
|
static |
|
static |
Definition at line 30 of file utils.c.
Referenced by Com_WildCmpEx(), match_char(), and match_part().
const char* const colorNames[10] |
Definition at line 190 of file utils.c.
Referenced by Com_ParseColor(), and SCR_Color_g().
int paged_total |
Definition at line 381 of file utils.c.
Referenced by Com_PageInMemory().