| Index | math | Lists | strings | complex | matrix | poly |
| hexa/bin | date/time | progs | conversion | files | apn |
| function | usage | example |
| len | it returns the number of char that are in the string (=byte) | "aaa" len gives 3 |
| ->str | build a string | { 1 2 } ->str gives "{ 1 2 }" |
| str-> | try to understood a string to build object | "{ 1 2 }" str-> gives { 1 2 } |
| add | concatenate any objet to a string (exept lists) note you can use +, that's the same. |
"aaa" 1 add gives "aaa1" |
| get | extract a substring (see also : lists and matrix) |
|
| repl | replace a substring | |
| fill | Fill a string with a patern | "*" 5 fill gives "*****"with a different patern : "AB" 5 fill gives "ABABA"
|
| chr | convert an ascii code into a string. see list for converting a list of ascii code into a string |
65 chr gives "A"{ 65 66 } chr gives "AB" |
| asc | returns the ascii code for a char/string in case of string, it return it into a list. note : it gives them in hexa! (see conversion) |
"A" asc gives 0x41"ABC" asc gives {0x41 0x42 0x43} |
| head | get the first char of a string (see also lists) |
"abc" head gives "a"
|
| ->B64 | Convert the string in Base64 | |
| B64-> | reversal of ->B64. usefull to read some email attachements safely.. |
|
| Convert | Convert a string with a format format : "u" : upercase "l" : lowercase "t" : trim right and left spaces "z" : remove all spaces "x" : dos to linux "d" : linux to dos "a" : alpha only [0-9][a-z][A-Z] "\" : add backslash to CRLF and backslashes "/" : stripslashes (reverse of "\") """ : add baskslash to " "#" : strpslashes for " (reverse of """) "'" : change all " into ' |
"aaBBcc" "u" Convert gives "AABBCC""a$*B{#c+1" "a" Convert gives "aBc1""\\srv\share" "\" Convert gives "\\\\srv\\share""it's \"cool\"" "#" Convert gives "it's "cool""
|
| str->hexa | Read a string as beeing hexa digits (like a md5 for example) This is very specific, please here for more informations |
"FE" 1 str->hexa gives { 0xFE } |
| STrans | Transform a string see here for details |