-
Notifications
You must be signed in to change notification settings - Fork 28
/
Copy pathlk_sys.tex
63 lines (39 loc) · 1.74 KB
/
lk_sys.tex
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
\subsection{Standard System Functions}
\texttt{{\large\textbf{to\_int}}}\textsf{(any):integer}\\
Converts the argument to an integer value.
\hrulefill
\texttt{{\large\textbf{to\_real}}}\textsf{(any):real}\\
Converts the argument to a real number (double precision).
\hrulefill
\texttt{{\large\textbf{to\_bool}}}\textsf{(any):boolean}\\
Converts the argument to a boolean value (1=true, 0=false).
\hrulefill
\texttt{{\large\textbf{to\_string}}}\textsf{([any]):string}\\
Converts the argument[s] to a text string.
\hrulefill
\texttt{{\large\textbf{alloc}}}\textsf{(integer, \{integer\}):array}\\
Allocates an array of one or two dimensions.
\hrulefill
\texttt{{\large\textbf{path\_only}}}\textsf{(string):string}\\
Returns the path portion of a complete file path.
\hrulefill
\texttt{{\large\textbf{file\_only}}}\textsf{(string):string}\\
Returns the file name portion of a complete file path, including extension.
\hrulefill
\texttt{{\large\textbf{ext\_only}}}\textsf{(string):string}\\
Returns the extension of a file name.
\hrulefill
\texttt{{\large\textbf{extensions}}}\textsf{(none):table}\\
Returns information about currently loaded extensions
\hrulefill
\texttt{{\large\textbf{ostype}}}\textsf{(none):string}\\
Returns identifying information about the operating system type. ('osx', 'win32', 'linux', etc).
\hrulefill
\texttt{{\large\textbf{stable\_sort}}}\textsf{(array, [integer:sort column index]):none}\\
Sort an array of numbers or strings in place while preserving relative ordering of elements.
\hrulefill
\texttt{{\large\textbf{json\_write}}}\textsf{(variant):string}\\
Convert a variable to a JSON string representation.
\hrulefill
\texttt{{\large\textbf{json\_read}}}\textsf{(string):variant}\\
Convert a JSON string to a variable.