Substr.Options

public static class Substr.Options

Optional attributes for Substr

Public Methods

Substr.Options
unit(String unit)

Inherited Methods

Public Methods

public Substr.Options unit (String unit)

Parameters
unit The unit that is used to create the substring. One of: `"BYTE"` (for defining position and length by bytes) or `"UTF8_CHAR"` (for the UTF-8 encoded Unicode code points). The default is `"BYTE"`. Results are undefined if `unit=UTF8_CHAR` and the `input` strings do not contain structurally valid UTF-8.