1Strings.fields(3kaya)        Kaya module reference       Strings.fields(3kaya)
2
3
4

NAME

6       Strings::fields - Split a string into fields
7

SYNOPSIS

9       [String] fields( String input, [Char] delimiters, [Char] escape )
10

ARGUMENTS

12       input The input string
13
14       delimiters A list of characters that are treated as delimiters
15
16       escape  Characters that escape the string - i.e. delimiters between two
17       escape characters are treated as literal characters.
18

DESCRIPTION

20       This function splits a string into fields. For example, to split a  CSV
21       file, you could use fields(input,[',','\n'],['"']);
22        This will treat commas and newlines as field separators, except within
23       quoted strings.
24

AUTHORS

26       Kaya  standard  library  by  Edwin  Brady,  Chris  Morris  and   others
27       (kaya@kayalang.org). For further information see http://kayalang.org/
28

LICENSE

30       The  Kaya  standard  library  is free software; you can redistribute it
31       and/or modify it under the terms  of  the  GNU  Lesser  General  Public
32       License  (version  2.1  or  any later version) as published by the Free
33       Software Foundation.
34
36       Regex.split (3kaya)
37
38
39
40Kaya                             December 2010           Strings.fields(3kaya)
Impressum