Options
All
  • Public
  • Public/Protected
  • All
Menu

Enumeration LimitMode

When using String.split() the limit argument make processing stop after extracting n tokens, where n = limit. Other languages store, in the nth token, the remainder of the string. The latter mode may be often useful so this library let you choose which behaviour the limit argument will provide.

Index

Enumeration members

Enumeration members

REMAINDER_AS_LAST

REMAINDER_AS_LAST: = "REMAINDER_AS_LAST"

The tokenization will stop after hitting the limit result count and the last element will hold the unprocessed part of the input string.

STOP_AT

STOP_AT: = "STOP_AT"

The tokenization will stop after hitting the limit result count.

Generated using TypeDoc