Computation :: Strings
- number_format(num,places,dec,sep)
- Returns a string representing the given number rounded to a number of decimal places and using the given characters for decimal mark and thousands separator.
- speakable_password(length)
- Returns a random, speakable passowrd of the given length.
- string_add_spaces(str)
- Returns the given string with spaces inserted between each character.
- string_escape(str)
- Returns the given string with all escape sequences parsed.
- string_extract(str,sep,index)
- Returns the element at the given index within a string of elements.
- string_left(str,num)
- Returns a number of characters from the start of a string.
- string_limit(string,length,ext)
- Returns a given string, truncated if it exceeds a certain length.
- string_lpad(str,length,padstr)
- Returns a string padded to a certain length by inserting another string to its left. eg. string_lpad("1234", 7, "0") == "0001234"
- string_ltrim(str)
- Returns the given string with whitespace stripped from its start.
- string_nato(text)
- Returns a given string as expressed by the NATO phonetic alphabet.
- string_parse(str,token,ignore)
- Returns a ds_list containing all substring elements within a given string which are separated by a given token.
- string_parse_number(str,token,ignore)
- Returns the number of substring elements within a given string and separated by a given token.
- string_parse_single(str,token,n,ignore)
- Returns the nth substring from a string of elements separated by a given token, or the separator token if an error occurred.
- string_random(str,length)
- Returns a string of a given length composed of characters randomly selected from a given set.
- string_remove_whitespace(str [, sub])
- Consolidates and removes all whitespace from a string, optionally replacing it with a character or string.
- string_reverse(str)
- Returns a given string with the characters in reverse order.
- string_right(str,num)
- Returns a number of characters from the end of a string.
- string_rpad(str,length,padstr)
- Returns a string padded to a certain length by adding another string to its right.
- string_rpos(substr,str)
- Returns the right-most position of a substring within a string.
- string_rtrim(str)
- Returns the given string with whitespace stripped from its end.
- string_shuffle(str)
- Returns a given string with charactars shuffled.
- string_split(str,num,break)
- Returns a string with break characters inserted at a given interval.
- string_stagger_case(str,spaces,first)
- Returns a string with the letters in staggered case, such as: "hElLo! hOw ArE yOu ToDaY?"
- string_trim(str)
- Returns the given string with whitespace stripped from its start and end.
- string_ucfirst(str)
- Returns a string with the first character capitalized.
- string_ucwords(str)
- Returns a string with each word capitalized.
- string_wordwrap(string,length,break,split)
- Returns a string with break characters inserted between words at a given character interval.