SStrTokenize
function · storm · primitive
- Address
0x64ae50· 320 bytes, up to0x64af8f- Signature
void __stdcall (const char **cursor, char *out, uint32_t size, const char *delims, int32_t *quoted)- Meaning
- Copies the next token of a string cursor into a buffer, split at delimiters and quotes, and advances the cursor
- Confidence
- verified, proof two
- Name from
- the community database (idb)
- Finding
- storm/strings#tokenizer
- Test
storm::sstrtokenize_whole
Finding: Tokenizer in storm: string conversions
SStrTokenize(&cursor, out, size, delims, quoted) (0x64ae50) copies the next token of the string
*cursor into out and advances *cursor. It skips leading delimiters, then takes bytes to the
first delimiter, which it consumes (a " aside; below), or to the end of the string. A byte is
stored while the stored count plus 1 is below size: a token is cut at size − 1 bytes, the rest
skipped, and a NUL follows if size is above 0. *quoted, when given, is 1 if a " opened or
closed a quote in the call, else 0. A null cursor, *cursor or delimiters, or a null out with a
nonzero size, sets error 0x57 and writes nothing. eax is no result.
The derivation is in the doc.
Callers 31
- SetErrorFilter client
- PortCommand unassigned
- CCommand_WorldTeleport unassigned
- SetRawPosCommand unassigned
- RunPrepatchList glue
- LayoutCacheRead ui
- LoadFlatSavedVariables ui
- LoadChatSettings ui
- 0x4b60b0 ui
- ParseBindingSet ui
- Script::GetPlayerBuff ui
- MACRONODE::DeriveBoundSpell ui
- LoadMacroFiles ui
- SaveMacroFiles ui
- RunMacro ui
- CCamera::LoadSettings uicamera
- RegisterAddOn ui
- ReadStockInterfaceNumber ui
- LoadCharacterAddOnState ui
- AddressList::Load net
- ParseGxOverrides console
- SetCommandHandler cvar
- CvarResetCommandHandler cvar
- CvarDefaultCommandHandler cvar
- CVarLoadFile cvar
- 0x64f3c0 storm
- 0x64f5d0 storm
- LoadMd5Catalog minimap
- LoadTocFile ui
- 0x6f1490 unassigned
- LoadMovieSubtitles ui
Callees 2
- SStrChr storm
- SErrSetLastError storm
Calls and jumps by a bare address, from tables/calls.tsv.