parse
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
The first character
The source buffer, from which one more character will be consumed if c is a high surrogate
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
The first character
The input array, from which one more character will be consumed if c is a high surrogate
The input index
The input limit