User Tools

Site Tools


jvs:cigal:manual:chapter3:parse

CIGAL Reference Manual, Chapter 3 (Functions): PARSE

PARSE -- Parse a text string into separate words

usage: tablevarb = parse(str,seps)

PARSE divides a text string, STR, into separate “words” based on the presence of separator characters. The separators are specified in SEPS. If omitted, SEPS is “ \t,=”.

The result of PARSE is a 3 column integer matrix, with a row for each word found in STR. The format of this parse table is:

  • column 1 - character offset in STR
  • column 2 - number of characters in word
  • column 3 - word type (0=null, 1=text, 2=number)

See Also:
CIGAL Home, CIGAL Manual, Functions List, Manual Help

jvs/cigal/manual/chapter3/parse.txt · Last modified: 2023/02/23 18:43 (external edit)