klyn.regex.RegExMatcher.resetBuffer
method
public native resetBuffer(notnull chars as Char[], length as Long) as Void
Description

Reuses this matcher with a prefix of a Unicode scalar buffer. No String instance is created for the input; subsequent buffer edits are independent.

Parameters
ParameterDescription
charsSource scalar buffer.
lengthNumber of source characters to use.
Throws
  • IndexException if length is outside the buffer.
Example

matcher.resetBuffer(chars, used)