Debian Codegraph @

docs/manual/Create_Strings_from_tokens___.html

raw
1 <html><head><meta name="robots" content="index,follow"><meta http-equiv="Content-Type" content="text/html; charset=utf-8">
2 <title>Create Strings from tokens...</title>
3 <style>
4 td { padding-left: 5pt; padding-right: 5pt; }
5 th { padding-left: 5pt; padding-right: 5pt; }
6 code { white-space: pre-wrap; }
7 dd { white-space: pre-wrap; }
8 </style>
9 </head><body bgcolor="#FFFFFF">
10
11 <table border=0 cellpadding=0 cellspacing=0><tr><td bgcolor="#CCCC00"><table border=4 cellpadding=9><tr><td align=middle bgcolor="#000000"><font face="Palatino,Times" size=6 color="#999900"><b>
12 Create Strings from tokens...
13 </b></font></table></table>
14 <p>Create a new <a href="Strings.html">Strings</a> object as a list of tokens.</p>
15 <h2>Settings</h2>
16 <dl>
17 <dt><b>Name</b>
18 <dd>the name of the new Strings object.</dd>
19 <dt><b>Text</b>
20 <dd>the text to be tokenized.</dd>
21 <dt><b>Separators</b>
22 <dd>determines the separator characters. If left empty, a space will be used as a separator.</dd>
23 </dl>
24 <h2>Behaviour</h2>
25 <p>Multiple consecutive separators in the text will be treated as one.</p>
26 <h2>Examples</h2>
27 <dl>
28 <dt>Example 1 Create Strings from tokens:} "test", "a b c", " "
29 <dd>will produce a Strings object with 3 strings in it: "a", "b" and "c".</dd>
30 <dt>Example 2 Create Strings from tokens:} "test", "a b c ", " "
31 <dd>will also produce a Strings object with 3 strings in it: "a", "b" and "c".</dd>
32 <dt>Example 3 Create Strings from tokens:} "test", "a,b,c", ","
33 <dd>will produce a Strings object with 3 strings in it: "a", "b" and "c".</dd>
34 <dt>Example 4 Create Strings from tokens:} "test", "a, b, c", ","
35 <dd>will produce a Strings object with 3 strings in it: "a", " b" and " c" (note the spaces).</dd>
36 <dt>Example 5 Create Strings from tokens:} "test", "a, b, c", " ,"
37 <dd>will produce a Strings object with 3 strings in it: "a", "b" and "c".</dd>
38 <dt>Example 6 Create Strings from tokens:} "test", "a,,b,c", " ,"
39 <dd>will also produce a Strings object with 3 strings in it: "a", "b" and "c".</dd>
40 <dt>Example 7 Create Strings from tokens:} "test", "a, ,b,c", ","
41 <dd>will produce a Strings with 4 strings in it: "a", " ", "b" and "c".</dd>
42 <dt>Example 8 Create Strings from tokens:} "test", "a,b,c,", ","
43 <dd>will produce a Strings object with 3 strings in it: "a", "b" and "c".</dd>
44 <dt>Example 9 Create Strings from tokens:} "test", "a,b,c, ", ","
45 <dd>will produce a Strings object with 4 strings in it: "a", "b", "c" and " ".</dd>
46 <dt>Example 10 Create Strings from tokens:} "test", "A string" + tab<code><font size=+1></font></code> + "of ..tokens" + newline<code><font size=+1></font></code> + "and some more tokens", " .," + tab<code><font size=+1></font></code> + newline<code><font size=+1></font></code>
47 <dd>will produce a Strings object with 8 strings in it: "A", "string", "of", "tokens", "and", "some", "more" and "tokens".</dd>
48 </dl>
49 <h3>Links to this page</h3>
50 <ul>
51 <li><a href="New_menu.html">New menu</a>
52 </ul>
53 <hr>
54 <address>
55 <p>© David Weenink 2017, Paul Boersma 2023</p>
56 </address>
57 </body>
58 </html>