Strings
16 functions. Also as Markdown for agents.
- BIS_fnc_alignTabsAlign two columns divided by tabs. A tab counts for 8 characters.
- BIS_fnc_filterStringRemoves characters from a string based on the list of allowed characters.
- BIS_fnc_inStringFind a string within a string.
- BIS_fnc_isLocalizedChecks if string is localized. Obsolete variant before isLocalized command was introduced.
- BIS_fnc_localizeChecks if passed string is localization key and if so, return the localized text. Else, returns the passed string itself.
- BIS_fnc_numberDigitsBreak number into array of digits.
- BIS_fnc_numberTextConvert a number into string (avoiding scientific notation).
- BIS_fnc_ordinalNumberReturn number as ordinal number (e.g. 1 become "1st")
- BIS_fnc_parseNumberReturn number from expression
- BIS_fnc_phoneticalWordConvert number to NATO phonetical alphabet word (e.g. 2 becomes "Bravo") or letter of alphabet.
- BIS_fnc_romanNumeralConvert integer to roman numerals (e.g. 42 becomes "XLII").
- BIS_fnc_secondsToStringConvert seconds to formatted string.
- BIS_fnc_sortAlphabeticallyAlphabetically sort an array of strings without modifying the original. See also sort.
- BIS_fnc_splitStringSplits given string according to given separator(s).
- BIS_fnc_timeToStringThis function returns a 24-hour time as a string (or array) from a decimal.
- BIS_fnc_trimStringGet a substring out of the string.