diff --git a/libraries/LIBRARIES b/libraries/LIBRARIES index fda2b4b4..e4a55a50 100644 --- a/libraries/LIBRARIES +++ b/libraries/LIBRARIES @@ -22,3 +22,4 @@ frequency_distribution_module.xml Frequency Distribution Analysis [EXPERIMENTAL] make-variables.xml create variables in program declare global or sprite-local variables in a script json.xml Deal with JSON data Turn JSON strings into lists with the listify block, then retrieve data out of them by using the value at key block. parallel_module.xml Parallelization Run several scripts in parallel and wait until all are done. +strings.xml String processing Extract substrings of a string in various ways diff --git a/libraries/strings.xml b/libraries/strings.xml new file mode 100644 index 00000000..1cc2e0d7 --- /dev/null +++ b/libraries/strings.xml @@ -0,0 +1 @@ +Reports the part of the first string up to the first instance of the second string inside it. If the second string isn't found, reports the entire first string.
Reports the portion of the first input string starting after the first occurrence of the second string. If the second string isn't found in the first string, reports an empty string.
Reports the character position (starting from 1) of the beginning of the first input string inside the second input string. If it's not found, reports 0.
If input is TRUE, comparisons made by functions in the string library will be case-independent (so "FOO" = "foo"). This is the default. If input is FALSE, comparisons will be exact.
Reports the portion of the first input (string) starting at the position given by the second input (counting from 1, like LETTER n OF) and ending at the position given by the third input (also counting from 1). If the third input is empty, reports the portion from the first position to the end of the string. If a position number is negative, counts from the end backward, so -1 is the last character, -2 is the next to last, etc.
\ No newline at end of file