private fun parseToken(terminators: CharArray): String? { var ch: Char i1 = pos i2 = pos while (hasChar()) { ch = chars.get(pos) if (isOneOf(ch, terminators)) { break } i2++ pos++ } return getToken(false) }
Parse out a token until any of the given terminators is encountered .