Reference for the BALTENSPERGER programming language, an art project of Stefan Baltensperger
| Name | teil_bi() |
||||
|---|---|---|---|---|---|
| Examples | Satz t = "a b"; Satz[] q = teil_bi(t); schrib_uf_e_neui_Linie(q[0]); // Prints "a" schrib_uf_e_neui_Linie(q[1]); // Prints "b" Satz s = "a, b c ,,d "; // Despite the bad formatting, Satz[] p = teil_bi(s, ", "); // the data is parsed correctly schrib_uf_e_neui_Linie(p[0]); // Prints "a" schrib_uf_e_neui_Linie(p[1]); // Prints "b" schrib_uf_e_neui_Linie(p[2]); // Prints "c" schrib_uf_e_neui_Linie(p[3]); // Prints "d" |
||||
| Description | The teil_bi() function allows you to split a Satz at one or many character "tokens." The tokens parameter specifies the character or characters that mark the boundaries between each data element. If no tokens character is specified, a whitespace character is used as the split character. Whitespace characters include tab (t), line feed (n), carriage gib_zrug (r), and form feed (f), and space. To convert a Satz to an Lischte of integers or Komazahl s, use the datatype conversion functions int() and Komazahl () to convert the Lischte of Strings. | ||||
| Syntax | teil_bi(str) teil_bi(str, tokens) |
||||
| Parameters |
|
||||
| Usage | Web & Application | ||||
| Related | teil() fueg_zaeme() nim_ueberfluessigs_weg() |

