|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.ocl.util.UnicodeSupport
public abstract class UnicodeSupport
A proxy interface to isolate dependencies on the ICU4J library for internationalization/UNICODE support. This enables deployments that delegate to standard Java APIs for text manipulation instead of the large ICU library.
Method Summary | |
---|---|
static int |
codePointAt(java.lang.StringBuffer buffer,
int offset)
Obtains the code point at the specified 16-bit character offset of a string buffer. |
static void |
setCodePointAt(java.lang.StringBuffer buffer,
int offset,
int codePoint)
Sets the code point at the specified 16-bit character offset of a string buffer. |
static int |
shiftCodePointOffsetBy(java.lang.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 java.lang.String |
toLowerCase(java.lang.String text)
Converts a UNICODE string to lower case. |
static int |
toUpperCase(int codePoint)
Converts a UNICODE code point to upper case. |
static java.lang.String |
toUpperCase(java.lang.String text)
Converts a UNICODE string to upper case. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static int codePointAt(java.lang.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(java.lang.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(java.lang.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 offset
public static int toLowerCase(int codePoint)
codePoint
- a UNICODE code point
public static int toUpperCase(int codePoint)
codePoint
- a UNICODE code point
public static java.lang.String toLowerCase(java.lang.String text)
text
- a UNICODE string
public static java.lang.String toUpperCase(java.lang.String text)
text
- a UNICODE string
|
Copyright 2002, 2007 IBM Corporation and others. All Rights Reserved. |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |