forked from jasder/antlr
add comment
This commit is contained in:
parent
37adfd4e30
commit
03470b0083
|
@ -272,6 +272,11 @@ public class IntegerList {
|
||||||
_data = Arrays.copyOf(_data, newLength);
|
_data = Arrays.copyOf(_data, newLength);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/** Convert the list to a UTF-16 encoded char array. If all values are less
|
||||||
|
* than the 0xFFFF 16-bit code point limit then this is just a char array
|
||||||
|
* of 16-bit char as usual. For values in the supplementary range, encode
|
||||||
|
* them as two UTF-16 code units.
|
||||||
|
*/
|
||||||
public final char[] toCharArray() {
|
public final char[] toCharArray() {
|
||||||
// Optimize for the common case (all data values are
|
// Optimize for the common case (all data values are
|
||||||
// < 0xFFFF) to avoid an extra scan
|
// < 0xFFFF) to avoid an extra scan
|
||||||
|
|
Loading…
Reference in New Issue