Xonotic
|
Go to the source code of this file.
Macros | |
#define | DAYS_UP_TO_EPOCH 719469 |
#define | DEC_TO_HEXDIGIT(d) (substring(HEXDIGITS_MINSET, (d), 1)) |
#define | endsWith(this, suffix) (_endsWith_suffix = suffix, substring(this, -strlen(_endsWith_suffix), -1) == _endsWith_suffix) |
#define | HEXDIGIT_TO_DEC(d) ((HEXDIGIT_TO_DEC_RAW(d) | 0x10) - 0x10) |
#define | HEXDIGIT_TO_DEC_RAW(d) (strstrofs(HEXDIGITS, (d), 0)) |
#define | IS_DIGIT(d) (strstrofs(DIGITS, (d), 0) >= 0) |
#define | IS_HEXDIGIT(d) (strstrofs(HEXDIGITS_MINSET, (d), 0) >= 0) |
#define | mmsst(tm) clockedtime_tostring(tm, false) |
#define | mmssth(tm) clockedtime_tostring(tm, true) |
#define | startsWith(haystack, needle) (strstrofs(haystack, needle, 0) == 0) |
#define | strcpy(this, s) |
#define | strfree(this) |
#define | strhasword(s, w) (strstrofs(strcat(" ", s, " "), strcat(" ", w, " "), 0) >= 0) |
Variables | |
noref string | _endsWith_suffix |
string | _shufflewords_str |
int | ColorTranslateMode |
const string | DIGITS = "0123456789" |
const string | HEXDIGITS = "0123456789ABCDEF0123456789abcdef" |
const string | HEXDIGITS_MINSET = "0123456789ABCDEFabcdef" |
#define DAYS_UP_TO_EPOCH 719469 |
Definition at line 82 of file string.qh.
Referenced by strftime_s().
#define DEC_TO_HEXDIGIT | ( | d | ) | (substring(HEXDIGITS_MINSET, (d), 1)) |
Definition at line 503 of file string.qh.
Referenced by rgb_to_hexcolor().
#define endsWith | ( | this, | |
suffix | |||
) | (_endsWith_suffix = suffix, substring(this, -strlen(_endsWith_suffix), -1) == _endsWith_suffix) |
Definition at line 226 of file string.qh.
Referenced by spawnfunc(), and SUB_CalcAngleMoveEnt().
#define HEXDIGIT_TO_DEC | ( | d | ) | ((HEXDIGIT_TO_DEC_RAW(d) | 0x10) - 0x10) |
Definition at line 502 of file string.qh.
Referenced by InputBox_draw().
Definition at line 507 of file string.qh.
Referenced by bot_cmd_eval(), find_last_color_code(), InputBox_draw(), isValidColorCodeValue(), and XonoticServerList_drawListBoxItem().
#define IS_HEXDIGIT | ( | d | ) | (strstrofs(HEXDIGITS_MINSET, (d), 0) >= 0) |
Definition at line 504 of file string.qh.
Referenced by find_last_color_code(), and isValidColorCodeValue().
#define mmsst | ( | tm | ) | clockedtime_tostring(tm, false) |
#define mmssth | ( | tm | ) | clockedtime_tostring(tm, true) |
#define startsWith | ( | haystack, | |
needle | |||
) | (strstrofs(haystack, needle, 0) == 0) |
Definition at line 217 of file string.qh.
Referenced by _MapInfo_Generate(), spawnfunc(), WarpZoneLib_BadEntity(), and XonoticKeyBinder_drawListBoxItem().
#define strcpy | ( | this, | |
s | |||
) |
Definition at line 49 of file string.qh.
Referenced by Accuracy_LoadLevels(), bd_close_editor(), bd_do_next_match(), bd_move_dozer(), bd_set_next_match(), bd_set_nextlevel(), bot_custom_weapon_priority_setup(), bot_decodecommand(), centerprint_Add(), Cmd_Scoreboard_SetFields(), DamageText::DamageText_update(), GENERIC_COMMAND(), GetCvars_handleString(), GetCvars_handleString_Fixup(), getwelcomemessage(), HUD_Chat(), HUD_Main(), HUD_Panel_FirstInDrawQ(), HUD_Radar(), HUD_Weapons(), Label_draw(), Label_setText(), LoadPlayerSounds(), Local_Notification_sprintf(), LocalCommand_sendcvar(), m_goto(), m_tooltip(), Maplist_Init(), Model::Model ::model_precache(), Monster_Sounds_Load(), MUTATOR_HOOKFUNCTION(), NET_HANDLE(), OnlineBanList_Think(), PlayerPreThink(), ps_move_piece(), queue_to_execute_next_frame(), QuickMenu_Page_Load(), QuickMenu_Page_LoadEntry(), QuickMenu_skip_submenu(), race_checkAndWriteName(), race_deleteTime(), race_SendTime(), race_setTime(), sandbox_ObjectPort_Load(), Scoreboard_Draw(), Sound::Sound ::sound_precache(), spawnfunc(), swapInPriorityList(), UpdatePlayerSounds(), W_Model(), W_Reload(), waypoint_loadall(), waypoint_saveall(), WinningConditionHelper(), XonoticCampaignList_loadCvars(), XonoticCrosshairPreview_draw(), XonoticCvarList_setSelected(), XonoticMapInfoDialog_loadMapInfo(), XonoticMapList_keyDown(), XonoticMapList_refilter(), XonoticPlayerModelSelector_go(), XonoticScreenshotBrowserTab_loadPreviewScreenshot(), XonoticScreenshotImage_load(), XonoticScreenshotViewerDialog_loadScreenshot(), XonoticServerList_draw(), and XonoticServerList_setSelected().
#define strfree | ( | this | ) |
Definition at line 56 of file string.qh.
Referenced by AdditionalServerInfo_OnGet(), bd_close_editor(), bd_editor_place(), bd_setup_pieces(), bd_unfill_recurse(), BGMScript_InitEntity(), bot_clientdisconnect(), c4_move(), CampaignFile_Unload(), centerprint_KillAll(), ClearPlayerSounds(), ClientDisconnect(), Cmd_Scoreboard_SetFields(), cvar_changes_init(), DamageText::DamageText ::~ DamageText(), DelayThink(), DemoList_Filter_Change(), end_minigame(), execute_next_frame(), func_ladder_think(), GameType_ConfigureSliders(), GENERIC_COMMAND(), GetCvars_handleString(), HUD_Crosshair(), HUDSkinList_Filter_Change(), HUDSkinList_SavedName_Change(), InputBox_setText(), ItemRemove(), Local_Notification_WOVA(), LocalCommand_sendcvar(), m_init_delayed(), m_tooltip(), MapList_StringFilterBox_Change(), MapVote_UnzoneStrings(), MUTATOR_HOOKFUNCTION(), MX_Say_(), NET_HANDLE(), nmm_kill_tiles(), pp_move(), pp_next_match(), ps_move(), ps_move_piece(), QuickMenu_Close(), QuickMenu_Page_ClearEntry(), QuickMenu_skip_submenu(), race_CheckName(), race_ClearRecords(), rewrapCampaign(), sandbox_ObjectPort_Load(), sandbox_ObjectRemove(), Scoreboard_Rankings_Draw(), ScreenshotList_Filter_Change(), ServerList_Filter_Change(), setZonedTooltip(), Shutdown(), SL_ProcessCategoryOverrides(), SoundList_Filter_Change(), STATIC_INIT(), trigger_push_findtarget(), ttt_next_match(), url_fclose(), url_multi_ready(), url_single_fopen(), url_URI_Get_Callback(), VoteReset(), XonoticCvarList_setSelected(), XonoticKeyBinder_destroy(), XonoticServerInfoDialog_loadServerInfo(), XonoticServerList_setSortOrder(), and XonoticToS_OnGet().
Definition at line 352 of file string.qh.
Referenced by CvarList_Revert_Click(), GL_CheckExtension(), Map_IsRecent(), W_HitPlotOpen(), XonoticCvarList_drawListBoxItem(), and XonoticCvarList_updateCvarType().
Definition at line 301 of file string.qh.
References _shufflewords_str, ERASEABLE, and swapwords().
Referenced by shufflewords().
Definition at line 436 of file string.qh.
References ERASEABLE, error(), fclose(), FILE_WRITE, fopen(), fputs(), and strcat().
returns first word
Definition at line 240 of file string.qh.
References ERASEABLE, strstrofs, and substring().
Referenced by _MapInfo_Generate(), _MapInfo_Map_ApplyGametype(), _MapInfo_Map_ApplyGametypeEx(), _MapInfo_Parse_Settemp(), GameCommand_adminmsg(), GameCommand_moveplayer(), get_model_parameters(), GlobalSound_sample(), Local_Notification_sprintf(), MapInfo_Get_ByName_NoFallbacks(), matchacl(), PrecacheGlobalSound(), Process_Notif_Args(), STATIC_INIT_LATE(), and W_GetCycleWeapon().
returns all but first word
Definition at line 249 of file string.qh.
References ERASEABLE, string_null, strlen(), strstrofs, and substring().
Referenced by _MapInfo_Generate(), _MapInfo_Map_ApplyGametype(), _MapInfo_Map_ApplyGametypeEx(), _MapInfo_Parse_Settemp(), GameCommand_adminmsg(), GameCommand_moveplayer(), get_model_parameters(), GlobalSound_sample(), Local_Notification_sprintf(), MapInfo_Get_ByName_NoFallbacks(), matchacl(), PrecacheGlobalSound(), Process_Notif_Args(), STATIC_INIT_LATE(), and W_GetCycleWeapon().
Definition at line 540 of file string.qh.
References eX, eY, isCaretEscaped(), isValidColorCodeValue(), LABEL, strlen(), and substring().
Referenced by textLengthUpToLength(), textLengthUpToWidth(), and XonoticColorpicker_mouseDrag().
[in] | tm | integer clocked time in tenths or hundredths, CANNOT be negative |
[in] | hundredths | if true append hundredths too, otherwise only tenths |
Definition at line 144 of file string.qh.
References floor(), ftos(), strcat(), and substring().
Definition at line 177 of file string.qh.
References ColorTranslateMode, and strcat().
Referenced by CSQC_Parse_Print(), and Scoreboard_Rankings_Draw().
Definition at line 257 of file string.qh.
References ERASEABLE, and strcat().
Referenced by _json_parse_pair(), Gametype::Gametype ::gametype_init(), GenericCommand_addtolist(), GenericCommand_maplist(), GenericCommand_removefromlist(), Map_MarkAsRecent(), Say(), spawnfunc(), W_Apply_Weaponreplace(), waypoint_loadall(), and waypoint_saveall().
Definition at line 265 of file string.qh.
References ERASEABLE, and strcat().
Referenced by XonoticMutatorsDialog_toString().
Definition at line 67 of file string.qh.
References floor().
Referenced by strftime_s().
unzone the string, and return it as tempstring.
Safe to be called on string_null
Definition at line 230 of file string.qh.
References ERASEABLE, strcat(), and strunzone().
converts a number to a string with the indicated number of decimals
Definition at line 450 of file string.qh.
References ERASEABLE.
Referenced by DrawDomItem(), HUD_Physics(), HUD_Score(), HUD_StrafeHUD(), MakeRaceString(), MUTATOR_HOOKFUNCTION(), Slider_valueToText(), waypoint_save_links(), and waypoint_saveall().
converts a number to a string with the minimum number of decimals
Definition at line 461 of file string.qh.
References ERASEABLE.
Referenced by XonoticCheckBox_saveCvars(), and XonoticSlider_saveCvars().
Definition at line 511 of file string.qh.
References ERASEABLE, and substring().
Referenced by checkColorCode(), and XonoticColorpicker_mouseDrag().
Definition at line 522 of file string.qh.
References ERASEABLE, IS_DIGIT, IS_HEXDIGIT, and substring().
Referenced by checkColorCode().
[in] | seconds | number of seconds, can be negative too |
Definition at line 123 of file string.qh.
References ERASEABLE, and floor().
Referenced by formatmessage(), and HUD_Timer().
Definition at line 307 of file string.qh.
References _shufflewords_str, _shufflewords_swapfunc(), ERASEABLE, NULL, shuffle(), string_null, and tokenizebyseparator.
Referenced by GenericCommand_maplist(), and ShuffleMaplist().
Definition at line 220 of file string.qh.
References strcasecmp, strlen(), and substring().
Referenced by MapInfo_FindName().
Definition at line 91 of file string.qh.
References days_up_to_date(), DAYS_UP_TO_EPOCH, ERASEABLE, floor(), ftos(), stof(), strcat(), and substring().
Referenced by IntermissionThink(), and spawnfunc().
Definition at line 343 of file string.qh.
References strstrofs, and substring().
Referenced by Map_MarkAsRecent().
Definition at line 273 of file string.qh.
References ERASEABLE, and substring().
Referenced by DamageText::DamageText_update(), and swapwords().
Definition at line 279 of file string.qh.
References argv_end_index, argv_start_index, s1, s2, strcat(), substring_range(), and tokenizebyseparator.
Referenced by _shufflewords_swapfunc().
Definition at line 355 of file string.qh.
References ERASEABLE, and str2chr.
Referenced by InputBox_enterText().
Definition at line 318 of file string.qh.
References ERASEABLE, strcat(), strlen(), strunzone(), strzone(), and substring().
Definition at line 488 of file string.qh.
References strcasecmp, and vercmp_recursive().
Referenced by PlayerPreThink(), and UpdateNotification_URI_Get_Callback().
Definition at line 469 of file string.qh.
References ERASEABLE, s1, s2, stof(), strcasecmp, strstrofs, and substring().
Referenced by vercmp().
string _shufflewords_str |
Definition at line 299 of file string.qh.
Referenced by _shufflewords_swapfunc(), and shufflewords().
int ColorTranslateMode |
Definition at line 174 of file string.qh.
Referenced by ColorTranslateRGB(), and CSQC_UpdateView().
const string HEXDIGITS = "0123456789ABCDEF0123456789abcdef" |