parse

fun parse(c: Char, in: CharBuffer): Int

Parses a UCS-4 character from the given source buffer, handling surrogates.

Return

Either a parsed UCS-4 character, in which case the isPair() and increment() methods will return meaningful values, or -1, in which case error() will return a descriptive result object

Parameters

c

The first character

in

The source buffer, from which one more character will be consumed if c is a high surrogate


fun parse(c: Char, ia: CharArray, ip: Int, il: Int): Int

Parses a UCS-4 character from the given source buffer, handling surrogates.

Return

Either a parsed UCS-4 character, in which case the isPair() and increment() methods will return meaningful values, or -1, in which case error() will return a descriptive result object

Parameters

c

The first character

ia

The input array, from which one more character will be consumed if c is a high surrogate

ip

The input index

il

The input limit