Convert text into a set of lines, where each line is identified by a \n or \r\n combination. The line terminator is stripped from each resultant array
Chop the given source by stripping the provided match from the left hand side. Returns a slice of the original content
Chop the given source by stripping the provided match from the right hand side. Returns a slice of the original content
Combine a series of text segments together, each prefixed and/or postfixed with optional strings. An optional output buffer can be provided to avoid heap activity - which should be large enough to contain the entire output, otherwise the heap will be used instead.
Returns whether or not the provided array contains an instance of the given match
Returns whether or not the provided array contains an instance of the given match
Count all instances of match within source
Split the provided array wherever a delimiter-set instance is found, and return the resultant segments. The delimiters are excluded from each of the segments. Note that delimiters are matched as a set of alternates rather than as a pattern.
Iterator to isolate text elements.
Split the provided array on the first pattern instance, and return the resultant head and tail. The pattern is excluded from the two segments.
Return the index of the next instance of 'match' starting at position 'start', or source.length where there is no match.
Returns the index of the first match in str, failing once length is reached. Note that we return 'length' for failure and a 0-based index on success
Is the argument a whitespace character?
jhash() -- hash a variable-length key into a 32-bit value
Combine a series of text segments together, each appended with a postfix pattern. An optional output buffer can be provided to avoid heap activity - it should be large enough to contain the entire output, otherwise the heap will be used instead.
Arranges text strings in order, using indices to specify where each particular argument should be positioned within the text. This is handy for collating I18N components, or as a simplistic and lightweight formatter. Indices range from zero through nine.
Return the indexed line, where each line is identified by a \n or \r\n combination. The line terminator is stripped from the resultant line
Iterator to isolate lines.
Return the index of the next instance of 'match' starting at position 'start', or source.length where there is no match.
Return the index of the next instance of 'match' starting at position 'start', or source.length where there is no match.
Return the index of the prior instance of 'match' starting just before 'start', or source.length where there is no match.
Return the index of the prior instance of 'match' starting just before 'start', or source.length where there is no match.
Return whether or not the two arrays have matching content
Returns the index of a mismatch between s1 & s2, failing when length is reached. Note that we return 'length' upon failure (array content matches) and a 0-based index upon success.
Iterator to isolate text elements.
Combine a series of text segments together, each appended with an optional postfix pattern. An optional output buffer can be provided to avoid heap activity - it should be large enough to contain the entire output, otherwise the heap will be used instead.
Combine a series of text segments together, each prepended with a prefix pattern. An optional output buffer can be provided to avoid heap activity - it should be large enough to contain the entire output, otherwise the heap will be used instead.
Iterator to isolate optionally quoted text elements.
Repeat an array for a specific number of times. An optional output buffer can be provided to avoid heap activity - it should be large enough to contain the entire output, otherwise the heap will be used instead.
Replace all instances of one element with another (in place)
Return the index of the prior instance of 'match' starting just before 'start', or source.length where there is no match.
Split the provided array wherever a pattern instance is found, and return the resultant segments. The pattern is excluded from each of the segments.
Trim the given array by stripping the provided match from both ends. Returns a slice of the original content
Trim the given array by stripping the provided match from the left hand side. Returns a slice of the original content
Trim the given array by stripping the provided match from the right hand side. Returns a slice of the original content
Substitute all instances of match from source. Set replacement to null in order to remove instead of replace
Split the provided array on the last pattern instance, and return the resultant head and tail. The pattern is excluded from the two segments.
Trim the provided array by stripping whitespace from both ends. Returns a slice of the original content
Trim the provided array by stripping whitespace from the left. Returns a slice of the original content
Trim the provided array by stripping whitespace from the right. Returns a slice of the original content
Convert 'escaped' chars to normal ones: \t => ^t for example. Supports \" \' \\ \a \b \f \n \r \t \v