Debian Codegraph @

doc/SystemTap_Tapset_Reference/man3/function::tokenize.3stap

raw
1 '\" t
2 .\" Title: function::tokenize
3 .\" Author:
4 .\" Generator: DocBook XSL Stylesheets vsnapshot <http://docbook.sf.net/>
5 .\" Date: October 2025
6 .\" Manual: A collection of standard string functions
7 .\" Source: SystemTap Tapset Reference
8 .\" Language: English
9 .\"
10 .TH "FUNCTION::TOKENIZE" "3stap" "October 2025" "SystemTap Tapset Reference" "A collection of standard strin"
11 .\" -----------------------------------------------------------------
12 .\" * Define some portability stuff
13 .\" -----------------------------------------------------------------
14 .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
15 .\" http://bugs.debian.org/507673
16 .\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html
17 .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
18 .ie \n(.g .ds Aq \(aq
19 .el .ds Aq '
20 .\" -----------------------------------------------------------------
21 .\" * set default formatting
22 .\" -----------------------------------------------------------------
23 .\" disable hyphenation
24 .nh
25 .\" disable justification (adjust text to left margin only)
26 .ad l
27 .\" -----------------------------------------------------------------
28 .\" * MAIN CONTENT STARTS HERE *
29 .\" -----------------------------------------------------------------
30 .SH "NAME"
31 function::tokenize \- Return the next non\-empty token in a string
32 .SH "SYNOPSIS"
33 .sp
34 .nf
35 1) tokenize:string(delim:string)
36 .fi
37 .sp
38 .nf
39 2) tokenize:string(input:string,delim:string)
40 .fi
41 .SH "ARGUMENTS"
42 .PP
43 \fIdelim\fR
44 .RS 4
45 set of characters that delimit the tokens
46 .RE
47 .PP
48 \fIinput\fR
49 .RS 4
50 string to tokenize\&. If empty, returns the next non\-empty token in the string passed in the previous call to
51 \fBtokenize\fR\&.
52 .RE
53 .SH "DESCRIPTION"
54 .PP
55 1) This function returns the next token in the string passed in the previous call to tokenize\&. If no delimiter is found, the entire remaining input string is * returned\&. It returns empty when no more tokens are available\&.
56 .PP
57 2) This function returns the next non\-empty token in the given input string, where the tokens are delimited by characters in the delim string\&. If the input string is non\-empty, it returns the first token\&. If the input string is empty, it returns the next token in the string passed in the previous call to tokenize\&. If no delimiter is found, the entire remaining input string is returned\&. It returns empty when no more tokens are available\&.
58 .SH SEE ALSO\n
59 .IR tapset::tokenize (3stap)