Constants in string_const.inc

@global Unless otherwise noted, all string functions which take in a writable buffer and maximum length should NOT have the null terminator INCLUDED in the length. This means that this is valid: copy(string, charsmax(string), ...)
Buffer size used by fmt().
Below are the trim flags for strtok2 You can specify how the left and right buffers will be trimmed by strtok2. LTRIM trims spaces from the left side. RTRIM trims from the right side. The defines TRIM_INNER, TRIM_OUTER and TRIM_FULL are shorthands for commonly used flag combinations. When the initial string is trimmed, using TRIM_INNER for all subsequent strtok2 calls will ensure that left and right are always trimmed from both sides. Examples: str1[] = " This is * some text " strtok2(str1, left, 24, right, 24, '*', TRIM_FULL) left will be "This is", right will be "some text" str2[] = " Here is | an | example " trim(str2) strtok2(str2, left, 24, right, 24, '|', TRIM_INNER) left will be "Here is", right will be "an | example" strtok2(right, left, 24, right, 24, '|', TRIM_INNER) left will be "an", right will be "example" str3[] = " One - more " strtok2(str3, left, 24, right, 24, '-', TRIM_OUTER) left will be "One ", right will be " more" str4[] = " Final . example " strtok2(str4, left, 24, right, 24, '.', LTRIM_LEFT|LTRIM_RIGHT) left will be "Final ", right will be "example "
Category flags to be used with is_string_category(), to check whether code points in a string are part of that category.