Constructor
Constructor
Constructor
Sets the delimiter string. delim_ may or may not be NUL-terminated; however, only the last character may be NUL.
Locates the first occurrence of the current delimiter string in str, starting from strstart.
Skips the delimiter which str starts with. Note that the result is correct only if str really starts with a delimiter.
Contains the delimiter as match string and manages a table of indices to improve the search algorithm efficiency. May be modified at any time using its methods.
Set to true to collapse consecutive delimiter occurrences to a single one to prevent producing empty segments.
Set to true to do a 'foreach' cycle with the remaining content after the last delimiter occurrence or when no delimiter is found.
Union of the supported 'foreach' iteration delegate types
Sets the content string to split on next iteration.
'foreach' iteration over string slices between the current and the next delimiter. n() returns the number of 'foreach' loop cycles so far, remaining() the slice after the next delimiter to the content end. If no delimiter was found, n() is 0 after 'foreach' has finished and remaining() returns the content.
'foreach' iteration over string slices between the current and the next delimiter. n() returns the number of 'foreach' loop cycles so far, remaining() the slice after the next delimiter to the content end. If no delimiter was found, n() is 0 after 'foreach' has finished and remaining() returns the content.
Locates the first delimiter occurrence in str starting from strstart.
Locates the first delimiter occurrence in the current content string starting from contentstart.
Skips initial consecutive occurrences of the current delimiter in the currently remaining content.
Searches the next delimiter.
'foreach' iteration over string slices between the current and the next delimiter.
Skips the delimiter which str starts with. The return value is at most str.length. It is assured that str starts with a delimiter so a subclass may return an undefined result otherwise. Additionally, a subclass is encouraged to use an 'in' contract to ensure str starts with a delimiter and/or is long enought to skip a leading delimiter.
Trims white space from str.
Splits a string by occurrences of a delimiter string.
Memory friendly, suitable for stack-allocated scope instances.