| java.lang.Object com.ibm.icu.impl.UCharacterUtility
UCharacterUtility | final public class UCharacterUtility (Code) | | Internal character utility class for simple data type conversion and String
parsing functions. Does not have an analog in the JDK.
author: Syn Wee Quek since: sep2900 |
Method Summary | |
static int | compareNullTermByteSubString(String str, byte[] array, int strindex, int aindex) Compares a null terminated substring from an array of bytes.
Substring is a set of non-zero bytes starting from argument start to the
next zero byte. | static int | getNullTermByteSubString(StringBuffer str, byte[] array, int index) Retrieves a null terminated substring from an array of bytes.
Substring is a set of non-zero bytes starting from argument start to the
next zero byte. | public static boolean | isNonCharacter(int ch) | static int | skipByteSubString(byte[] array, int index, int length, byte skipend) skip substrings from an array of characters, where each character is a set
of 2 bytes. | static int | skipNullTermByteSubString(byte[] array, int index, int skipcount) Skip null terminated substrings from an array of bytes.
Substring is a set of non-zero bytes starting from argument start to the
next zero byte. | static int | toInt(char msc, char lsc) |
compareNullTermByteSubString | static int compareNullTermByteSubString(String str, byte[] array, int strindex, int aindex)(Code) | | Compares a null terminated substring from an array of bytes.
Substring is a set of non-zero bytes starting from argument start to the
next zero byte. if the first byte is a zero, the next byte will be taken as
the first byte.
Parameters: str - string to compare Parameters: array - byte array Parameters: strindex - index within str to start comparing Parameters: aindex - array index to start in byte count the end position of the substring within str if matches otherwise a -1 |
getNullTermByteSubString | static int getNullTermByteSubString(StringBuffer str, byte[] array, int index)(Code) | | Retrieves a null terminated substring from an array of bytes.
Substring is a set of non-zero bytes starting from argument start to the
next zero byte. If the first byte is a zero, the next byte will be taken as
the first byte.
Parameters: str - stringbuffer to store data in, data will be store with eachbyte as a char Parameters: array - byte array Parameters: index - to start substring in byte count the end position of the substring within the character array |
isNonCharacter | public static boolean isNonCharacter(int ch)(Code) | | Determines if codepoint is a non character
Parameters: ch - codepoint true if codepoint is a non character false otherwise |
skipByteSubString | static int skipByteSubString(byte[] array, int index, int length, byte skipend)(Code) | | skip substrings from an array of characters, where each character is a set
of 2 bytes. substring is a set of non-zero bytes starting from argument
start to the byte of the argument value. skips up to a max number of
characters
Parameters: array - byte array to parse Parameters: index - to start substrings in byte count Parameters: length - the max number of bytes to skip Parameters: skipend - value of byte to skip to the number of bytes skipped |
skipNullTermByteSubString | static int skipNullTermByteSubString(byte[] array, int index, int skipcount)(Code) | | Skip null terminated substrings from an array of bytes.
Substring is a set of non-zero bytes starting from argument start to the
next zero byte. If the first byte is a zero, the next byte will be taken as
the first byte.
Parameters: array - byte array Parameters: index - to start substrings in byte count Parameters: skipcount - number of null terminated substrings to skip the end position of the substrings within the character array |
toInt | static int toInt(char msc, char lsc)(Code) | | joining 2 chars to form an int
Parameters: msc - most significant char Parameters: lsc - least significant char int form |
|
|