benilla-re systems structs docs

SStrTokenize

function · storm · primitive

Address
0x64ae50 · 320 bytes, up to 0x64af8f
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

Callees 2

Calls and jumps by a bare address, from tables/calls.tsv.