public abstract class UnicodeSupport extends Object
Modifier and Type | Method and Description |
---|---|
static int |
codePointAt(StringBuffer buffer,
int offset)
Obtains the code point at the specified 16-bit character offset
of a string buffer.
|
static void |
setCodePointAt(StringBuffer buffer,
int offset,
int codePoint)
Sets the code point at the specified 16-bit character offset
of a string buffer.
|
static int |
shiftCodePointOffsetBy(String text,
int offset,
int shift)
Obtains the location of the code point shift positions from the
specified 16-bit character offset of a string buffer.
|
static int |
toLowerCase(int codePoint)
Converts a UNICODE code point to lower case.
|
static String |
toLowerCase(String text)
Converts a UNICODE string to lower case.
|
static int |
toUpperCase(int codePoint)
Converts a UNICODE code point to upper case.
|
static String |
toUpperCase(String text)
Converts a UNICODE string to upper case.
|
public static int codePointAt(StringBuffer buffer, int offset)
buffer
- a string bufferoffset
- a 16-bit offset into the string buffer. Must be between
0 (inclusive) and the buffer's length (exclusive)public static void setCodePointAt(StringBuffer buffer, int offset, int codePoint)
buffer
- a string bufferoffset
- a 16-bit offset into the string buffer. Must be between
0 (inclusive) and the buffer's length (exclusive)codePoint
- the new UNICODE code point value to substitute at the
specified offsetpublic static int shiftCodePointOffsetBy(String text, int offset, int shift)
text
- a string of UNICODE textoffset
- a 16-bit offset into the string buffer. Must be between
0 (inclusive) and the buffer's length (exclusive)shift
- a positive or negative index, as a count of code points,
relative to the code point at the 16-bit offsetpublic static int toLowerCase(int codePoint)
codePoint
- a UNICODE code pointpublic static int toUpperCase(int codePoint)
codePoint
- a UNICODE code pointpublic static String toLowerCase(String text)
text
- a UNICODE stringCopyright © 2005, 2018 IBM Corporation and others. All Rights Reserved.