FUNCTION::TOKENIZE(3stap)
β¨ NAME β¨
function::tokenize β bestie, this one hands you back the next non-empty token in a string π
okay so real quick before we dive in: this page lives in the 3stap manual, aka the SystemTap tapset reference. you're in the right place, you're doing amazing, let's go π¦
π¦ SYNOPSIS π¦
1) tokenize:string(delim:string)
2) tokenize:string(input:string,delim:string)
two whole forms, two whole vibes, pick your fighter πΈ
π ARGUMENTS π
delimβ the set of characters that delimit the tokens. like, the lil scissors that decide where one token ends and the next one starts βοΈinputβ the string you wanna tokenize. and here's the cute part: if it's empty, it returns the next non-empty token in the string that got passed in the previous call totokenize. it remembers. main character memory, honestly π
π DESCRIPTION π
π 1) the one with just delim
so this version returns the next token in the string that was passed in the previous call to tokenize. if no delimiter is found, the entire remaining input string is * returned. and when there are no more tokens left to give? it returns empty. that's it. that's the whole thing. no cap π
π 2) the one with input AND delim
this version returns the next non-empty token in the given input string, where the tokens are delimited by characters in the delim string. here's the breakdown bestie, stay with me:
- if the
inputstring is non-empty, it returns the first token. - if the
inputstring is empty, it returns the next token in the string passed in the previous call totokenize. (same trick as form 1, she's consistent π ) - if no delimiter is found, the entire remaining input string is returned.
- and it returns empty when no more tokens are available. periodt β¨
π SEE ALSO π
and that's the whole page, bestie!! π«Ά this lil number came straight outta the SystemTap Tapset Reference, dated September 2026, living its best life in the 3stap manual. go tokenize something iconic today, you ate π
πβ¨
π¦ where this page comes from
- centos-stream 10: systemtap-client 5.6-3.el10 Β· GPL-2.0-or-later AND GPL-2.0-only AND BSD-3-Clause AND LGPL-2.1-only AND GFDL-1.2-or-later AND BSD-2-Clause
- centos-stream 9: systemtap-client 5.6-3.el9 Β· GPL-2.0-or-later AND GPL-2.0-only AND BSD-3-Clause AND LGPL-2.1-only AND GFDL-1.2-or-later AND BSD-2-Clause
- fedora 43: systemtap-client 5.6-1.fc43 Β· GPL-2.0-or-later AND GPL-2.0-only AND BSD-3-Clause AND LGPL-2.1-only AND GFDL-1.2-or-later AND BSD-2-Clause
- fedora 44: systemtap-client 5.6-1.fc44 Β· GPL-2.0-or-later AND GPL-2.0-only AND BSD-3-Clause AND LGPL-2.1-only AND GFDL-1.2-or-later AND BSD-2-Clause
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms