com.ibm.icu.text
public final class Normalizer extends Object implements Cloneable
normalize
transforms Unicode text into an equivalent composed or
decomposed form, allowing for easier sorting and searching of text.
normalize
supports the standard normalization forms described in
Unicode Standard Annex #15 — Unicode Normalization Forms.
Characters with accents or other adornments can be encoded in
several different ways in Unicode. For example, take the character A-acute.
In Unicode, this can be encoded as a single character (the
"composed" form):
00C1 LATIN CAPITAL LETTER A WITH ACUTE
or as two separate characters (the "decomposed" form):0041 LATIN CAPITAL LETTER A 0301 COMBINING ACUTE ACCENT
To a user of your program, however, both of these sequences should be treated as the same "user-level" character "A with acute accent". When you are searching or comparing text, you must ensure that these two sequences are treated equivalently. In addition, you must handle characters with more than one accent. Sometimes the order of a character's combining accents is significant, while in other cases accent sequences in different orders are really equivalent. Similarly, the string "ffi" can be encoded as three separate letters:0066 LATIN SMALL LETTER F 0066 LATIN SMALL LETTER F 0069 LATIN SMALL LETTER I <\p> or as the single character
FB03 LATIN SMALL LIGATURE FFI
<\p>
The ffi ligature is not a distinct semantic character, and strictly speaking
it shouldn't be in Unicode at all, but it was included for compatibility
with existing character sets that already provided it. The Unicode standard
identifies such characters by giving them "compatibility" decompositions
into the corresponding semantic characters. When sorting and searching, you
will often want to use these mappings.
normalize
helps solve these problems by transforming text into
the canonical composed and decomposed forms as shown in the first example
above. In addition, you can have it perform compatibility decompositions so
that you can treat compatibility characters the same as their equivalents.
Finally, normalize
rearranges accents into the proper canonical
order, so that you do not have to worry about accent rearrangement on your
own.
Form FCD, "Fast C or D", is also designed for collation.
It allows to work on strings that are not necessarily normalized
with an algorithm (like in collation) that works under "canonical closure",
i.e., it treats precomposed characters and their decomposed equivalents the
same.
It is not a normalization form because it does not provide for uniqueness of
representation. Multiple strings may be canonically equivalent (their NFDs
are identical) and may all conform to FCD without being identical themselves.
The form is defined such that the "raw decomposition", the recursive
canonical decomposition of each character, results in a string that is
canonically ordered. This means that precomposed characters are allowed for
as long as their decompositions do not need canonical reordering.
Its advantage for a process like collation is that all NFD and most NFC texts
- and many unnormalized texts - already conform to FCD and do not need to be
normalized (NFD) for such a process. The FCD quick check will return YES for
most strings in practice.
normalize(FCD) may be implemented with NFD.
For more details on FCD see the collation design document:
http://dev.icu-project.org/cgi-bin/viewcvs.cgi/~checkout~/icuhtml/design/collation/ICU_collation_design.htm
ICU collation performs either NFD or FCD normalization automatically if
normalization is turned on for the collator object. Beyond collation and
string search, normalized strings may be useful for string equivalence
comparisons, transliteration/transcription, unique representations, etc.
The W3C generally recommends to exchange texts in NFC.
Note also that most legacy character encodings use only precomposed forms and
often do not encode any combining marks by themselves. For conversion to such
character encodings the Unicode text needs to be normalized to NFC.
For more usage examples, see the Unicode Standard Annex.
UNKNOWN: ICU 2.8
Nested Class Summary | |
---|---|
static class | Normalizer.Mode
Constants for normalization modes. |
static class | Normalizer.QuickCheckResult
Result values for quickCheck().
|
Field Summary | |
---|---|
static int | COMPARE_CODE_POINT_ORDER
Option bit for compare:
Compare strings in code point order instead of code unit order. |
static int | COMPARE_IGNORE_CASE
Option bit for compare:
Perform case-insensitive comparison. |
static int | COMPARE_NORM_OPTIONS_SHIFT
Lowest-order bit number of compare() options bits corresponding to
normalization options bits.
|
static Normalizer.Mode | COMPOSE
Canonical decomposition followed by canonical composition. |
static Normalizer.Mode | COMPOSE_COMPAT
Compatibility decomposition followed by canonical composition.
|
static Normalizer.Mode | DECOMP
Canonical decomposition. |
static Normalizer.Mode | DECOMP_COMPAT
Compatibility decomposition. |
static Normalizer.Mode | DEFAULT
Default normalization. |
static int | DONE
Constant indicating that the end of the iteration has been reached.
|
static Normalizer.Mode | FCD
"Fast C or D" form. |
static int | FOLD_CASE_DEFAULT
Option bit for compare:
Case sensitively compare the strings |
static int | FOLD_CASE_EXCLUDE_SPECIAL_I
Option value for case folding: exclude the mappings for dotted I
and dotless i marked with 'I' in CaseFolding.txt. |
static int | IGNORE_HANGUL
Option to disable Hangul/Jamo composition and decomposition.
|
static int | INPUT_IS_FCD
Option bit for compare:
Both input strings are assumed to fulfill FCD conditions. |
static Normalizer.QuickCheckResult | MAYBE
Indicates it cannot be determined if string is in the normalized
format without further thorough checks. |
static Normalizer.Mode | NFC
Canonical decomposition followed by canonical composition. |
static Normalizer.Mode | NFD
Canonical decomposition. |
static Normalizer.Mode | NFKC
Compatibility decomposition followed by canonical composition. |
static Normalizer.Mode | NFKD
Compatibility decomposition. |
static Normalizer.QuickCheckResult | NO
Indicates that string is not in the normalized format |
static Normalizer.Mode | NONE
No decomposition/composition. |
static Normalizer.Mode | NO_OP
Null operation for use with the {@link #Normalizer constructors}
and the static {@link #normalize normalize} method. |
static int | UNICODE_3_2
Options bit set value to select Unicode 3.2 normalization
(except NormalizationCorrections).
|
static Normalizer.QuickCheckResult | YES
Indicates that string is in the normalized format |
Constructor Summary | |
---|---|
Normalizer(String str, Normalizer.Mode mode, int opt)
Creates a new Normalizer object for iterating over the
normalized form of a given string.
| |
Normalizer(CharacterIterator iter, Normalizer.Mode mode, int opt)
Creates a new Normalizer object for iterating over the
normalized form of the given text.
| |
Normalizer(UCharacterIterator iter, Normalizer.Mode mode, int options)
Creates a new Normalizer object for iterating over the
normalized form of the given text.
|
Method Summary | |
---|---|
Object | clone()
Clones this Normalizer object. |
static int | compare(char[] s1, int s1Start, int s1Limit, char[] s2, int s2Start, int s2Limit, int options)
Compare two strings for canonical equivalence.
|
static int | compare(String s1, String s2, int options)
Compare two strings for canonical equivalence.
|
static int | compare(char[] s1, char[] s2, int options)
Compare two strings for canonical equivalence.
|
static int | compare(int char32a, int char32b, int options)
Convenience method that can have faster implementation
by not allocating buffers. |
static int | compare(int char32a, String str2, int options)
Convenience method that can have faster implementation
by not allocating buffers. |
static String | compose(String str, boolean compat)
Compose a string.
|
static String | compose(String str, boolean compat, int options)
Compose a string.
|
static int | compose(char[] source, char[] target, boolean compat, int options)
Compose a string.
|
static int | compose(char[] src, int srcStart, int srcLimit, char[] dest, int destStart, int destLimit, boolean compat, int options)
Compose a string.
|
static int | concatenate(char[] left, int leftStart, int leftLimit, char[] right, int rightStart, int rightLimit, char[] dest, int destStart, int destLimit, Normalizer.Mode mode, int options)
Concatenate normalized strings, making sure that the result is normalized
as well.
|
static String | concatenate(char[] left, char[] right, Normalizer.Mode mode, int options)
Concatenate normalized strings, making sure that the result is normalized
as well.
|
static String | concatenate(String left, String right, Normalizer.Mode mode, int options)
Concatenate normalized strings, making sure that the result is normalized
as well.
|
int | current()
Return the current character in the normalized text-> |
static String | decompose(String str, boolean compat)
Decompose a string.
|
static String | decompose(String str, boolean compat, int options)
Decompose a string.
|
static int | decompose(char[] source, char[] target, boolean compat, int options)
Decompose a string.
|
static int | decompose(char[] src, int srcStart, int srcLimit, char[] dest, int destStart, int destLimit, boolean compat, int options)
Decompose a string.
|
int | endIndex()
Retrieve the index of the end of the input text-> This is the end index
of the CharacterIterator or the length of the String
over which this Normalizer is iterating |
int | first()
Return the first character in the normalized text-> This resets
the Normalizer's position to the beginning of the text-> |
int | getBeginIndex()
Retrieve the index of the start of the input text. |
int | getEndIndex()
Retrieve the index of the end of the input text. |
static int | getFC_NFKC_Closure(int c, char[] dest)
Gets the FC_NFKC closure set from the normalization data |
static String | getFC_NFKC_Closure(int c)
Gets the FC_NFKC closure set from the normalization data |
int | getIndex()
Retrieve the current iteration position in the input text that is
being normalized. |
int | getLength()
Gets the length of underlying text storage |
Normalizer.Mode | getMode()
Return the basic operation performed by this Normalizer
|
int | getOption(int option)
Determine whether an option is turned on or off.
|
int | getText(char[] fillIn)
Gets the underlying text storage |
String | getText()
Returns the text under iteration as a string |
static boolean | isNFSkippable(int c, Normalizer.Mode mode)
Internal API |
static boolean | isNormalized(char[] src, int start, int limit, Normalizer.Mode mode, int options)
Test if a string is in a given normalization form.
|
static boolean | isNormalized(String str, Normalizer.Mode mode, int options)
Convenience Method |
static boolean | isNormalized(int char32, Normalizer.Mode mode, int options)
Convenience Method |
int | last()
Return the last character in the normalized text-> This resets
the Normalizer's position to be just before the
the input text corresponding to that normalized character. |
int | next()
Return the next character in the normalized text and advance
the iteration position by one. |
static String | normalize(String str, Normalizer.Mode mode, int options)
Normalizes a String using the given normalization operation.
|
static String | normalize(String src, Normalizer.Mode mode)
Normalize a string.
|
static int | normalize(char[] source, char[] target, Normalizer.Mode mode, int options)
Normalize a string.
|
static int | normalize(char[] src, int srcStart, int srcLimit, char[] dest, int destStart, int destLimit, Normalizer.Mode mode, int options)
Normalize a string.
|
static String | normalize(int char32, Normalizer.Mode mode, int options)
Normalize a codepoint accoding to the given mode |
static String | normalize(int char32, Normalizer.Mode mode)
Conveinience method to normalize a codepoint accoding to the given mode |
int | previous()
Return the previous character in the normalized text and decrement
the iteration position by one. |
static Normalizer.QuickCheckResult | quickCheck(String source, Normalizer.Mode mode)
Convenience method.
|
static Normalizer.QuickCheckResult | quickCheck(String source, Normalizer.Mode mode, int options)
Convenience method.
|
static Normalizer.QuickCheckResult | quickCheck(char[] source, Normalizer.Mode mode, int options)
Convenience method.
|
static Normalizer.QuickCheckResult | quickCheck(char[] source, int start, int limit, Normalizer.Mode mode, int options)
Performing quick check on a string, to quickly determine if the string is
in a particular normalization format.
|
void | reset()
Reset the index to the beginning of the text.
|
int | setIndex(int index)
Set the iteration position in the input text that is being normalized
and return the first normalized character at that position.
|
void | setIndexOnly(int index)
Set the iteration position in the input text that is being normalized,
without any immediate normalization.
|
void | setMode(Normalizer.Mode newMode)
Set the normalization mode for this object.
|
void | setOption(int option, boolean value)
Set options that affect this Normalizer's operation.
|
void | setText(StringBuffer newText)
Set the input text over which this Normalizer will iterate.
|
void | setText(char[] newText)
Set the input text over which this Normalizer will iterate.
|
void | setText(String newText)
Set the input text over which this Normalizer will iterate.
|
void | setText(CharacterIterator newText)
Set the input text over which this Normalizer will iterate.
|
void | setText(UCharacterIterator newText)
Set the input text over which this Normalizer will iterate.
|
int | startIndex()
Retrieve the index of the start of the input text. |
UNKNOWN: ICU 2.8
UNKNOWN: ICU 2.8
See Also: Normalizer
UNKNOWN: ICU 2.6
Deprecated: ICU 2.8. Use Normalier.NFC
Canonical decomposition followed by canonical composition. Used with the {@link #Normalizer constructors} and the static {@link #normalize normalize} method to determine the operation to be performed.If all optional features (e.g. {@link #IGNORE_HANGUL}) are turned off, this operation produces output that is in Unicode Canonical Form C.
See Also: Normalizer NFC
Deprecated: ICU 2.8. Use Normalizer.NFKC
Compatibility decomposition followed by canonical composition. Used with the {@link #Normalizer constructors} and the static {@link #normalize normalize} method to determine the operation to be performed.If all optional features (e.g. {@link #IGNORE_HANGUL}) are turned off, this operation produces output that is in Unicode Canonical Form KC.
See Also: Normalizer NFKC
Deprecated: ICU 2.8. Use Normalizer.NFD
Canonical decomposition. This value is passed to the {@link #Normalizer constructors} and the static {@link #normalize normalize} method to determine the operation to be performed.If all optional features (e.g. {@link #IGNORE_HANGUL}) are turned off, this operation produces output that is in Unicode Canonical Form D.
See Also: Normalizer NFD
Deprecated: ICU 2.8. Use Normalizer.NFKD
Compatibility decomposition. This value is passed to the {@link #Normalizer constructors} and the static {@link #normalize normalize} method to determine the operation to be performed.If all optional features (e.g. {@link #IGNORE_HANGUL}) are turned off, this operation produces output that is in Unicode Canonical Form KD.
See Also: Normalizer NFKD
UNKNOWN: ICU 2.8
UNKNOWN: ICU 2.8
UNKNOWN: ICU 2.8
UNKNOWN: ICU 2.8
UNKNOWN: ICU 2.8
Deprecated: ICU 2.8. This option is no longer supported. TODO: check with Ram
Option to disable Hangul/Jamo composition and decomposition. This option applies to Korean text, which can be represented either in the Jamo alphabet or in Hangul characters, which are really just two or three Jamo combined into one visual glyph. Since Jamo takes up more storage space than Hangul, applications that process only Hangul text may wish to turn this option on when decomposing text.The Unicode standard treates Hangul to Jamo conversion as a canonical decomposition, so this option must be turned off if you wish to transform strings into one of the standard Unicode Normalization Forms.
See Also: Normalizer
UNKNOWN: ICU 2.8
UNKNOWN: ICU 2.8
UNKNOWN: ICU 2.8
UNKNOWN: ICU 2.8
UNKNOWN: ICU 2.8
UNKNOWN: ICU 2.8
UNKNOWN: ICU 2.8
UNKNOWN: ICU 2.8
Deprecated: ICU 2.8. Use Nomalizer.NONE
Null operation for use with the {@link #Normalizer constructors} and the static {@link #normalize normalize} method. This value tells the Normalizer to do nothing but return unprocessed characters from the underlying String or CharacterIterator. If you have code which requires raw text at some times and normalized text at others, you can use NO_OP for the cases where you want raw text, rather than having a separate code path that bypasses Normalizer altogether.See Also: Normalizer NONE
UNKNOWN: ICU 2.6
UNKNOWN: ICU 2.8
The options parameter specifies which optional Normalizer features are to be enabled for this object.
Parameters: str The string to be normalized. The normalization will start at the beginning of the string. mode The normalization mode. opt Any optional features to be enabled. Currently the only available option is {@link #UNICODE_3_2}. If you want the default behavior corresponding to one of the standard Unicode Normalization Forms, use 0 for this argument.
UNKNOWN: ICU 2.6
Parameters: iter The input text to be normalized. The normalization will start at the beginning of the string. mode The normalization mode. opt Any optional features to be enabled. Currently the only available option is {@link #UNICODE_3_2}. If you want the default behavior corresponding to one of the standard Unicode Normalization Forms, use 0 for this argument.
UNKNOWN: ICU 2.6
Parameters: iter The input text to be normalized. The normalization will start at the beginning of the string. mode The normalization mode. options The normalization options, ORed together (0 for no options).
UNKNOWN: ICU 2.6
UNKNOWN: ICU 2.8
Parameters: s1 First source character array. s1Start start index of source s1Limit limit of the source s2 Second source character array. s2Start start index of the source s2Limit limit of the source options A bit set of options: - FOLD_CASE_DEFAULT or 0 is used for default options: Case-sensitive comparison in code unit order, and the input strings are quick-checked for FCD. - INPUT_IS_FCD Set if the caller knows that both s1 and s2 fulfill the FCD conditions.If not set, the function will quickCheck for FCD and normalize if necessary. - COMPARE_CODE_POINT_ORDER Set to choose code point order instead of code unit order - COMPARE_IGNORE_CASE Set to compare strings case-insensitively using case folding, instead of case-sensitively. If set, then the following case folding options are used.
Returns: <0 or 0 or >0 as usual for string comparisons
See Also: Normalizer FCD
UNKNOWN: ICU 2.8
Parameters: s1 First source string. s2 Second source string. options A bit set of options: - FOLD_CASE_DEFAULT or 0 is used for default options: Case-sensitive comparison in code unit order, and the input strings are quick-checked for FCD. - INPUT_IS_FCD Set if the caller knows that both s1 and s2 fulfill the FCD conditions. If not set, the function will quickCheck for FCD and normalize if necessary. - COMPARE_CODE_POINT_ORDER Set to choose code point order instead of code unit order - COMPARE_IGNORE_CASE Set to compare strings case-insensitively using case folding, instead of case-sensitively. If set, then the following case folding options are used.
Returns: <0 or 0 or >0 as usual for string comparisons
See Also: Normalizer FCD
UNKNOWN: ICU 2.8
Parameters: s1 First source string. s2 Second source string. options A bit set of options: - FOLD_CASE_DEFAULT or 0 is used for default options: Case-sensitive comparison in code unit order, and the input strings are quick-checked for FCD. - INPUT_IS_FCD Set if the caller knows that both s1 and s2 fulfill the FCD conditions. If not set, the function will quickCheck for FCD and normalize if necessary. - COMPARE_CODE_POINT_ORDER Set to choose code point order instead of code unit order - COMPARE_IGNORE_CASE Set to compare strings case-insensitively using case folding, instead of case-sensitively. If set, then the following case folding options are used.
Returns: <0 or 0 or >0 as usual for string comparisons
See Also: Normalizer FCD
UNKNOWN: ICU 2.8
Parameters: char32a the first code point to be checked against the char32b the second code point options A bit set of options
UNKNOWN: ICU 2.8
Parameters: char32a the first code point to be checked against str2 the second string options A bit set of options
UNKNOWN: ICU 2.8
Parameters: str The string to compose. compat If true the string will be composed accoding to NFKC rules and if false will be composed according to NFC rules.
Returns: String The composed string
UNKNOWN: ICU 2.8
Parameters: str The string to compose. compat If true the string will be composed accoding to NFKC rules and if false will be composed according to NFC rules. options The only recognized option is UNICODE_3_2
Returns: String The composed string
UNKNOWN: ICU 2.6
Parameters: source The char array to compose. target A char buffer to receive the normalized text. compat If true the char array will be composed accoding to NFKC rules and if false will be composed according to NFC rules. options The normalization options, ORed together (0 for no options).
Returns: int The total buffer size needed;if greater than length of result, the output was truncated.
Throws: IndexOutOfBoundsException if target.length is less than the required length
UNKNOWN: ICU 2.6
Parameters: src The char array to compose. srcStart Start index of the source srcLimit Limit index of the source dest The char buffer to fill in destStart Start index of the destination buffer destLimit End index of the destination buffer compat If true the char array will be composed accoding to NFKC rules and if false will be composed according to NFC rules. options The normalization options, ORed together (0 for no options).
Returns: int The total buffer size needed;if greater than length of result, the output was truncated.
Throws: IndexOutOfBoundsException if target.length is less than the required length
UNKNOWN: ICU 2.6
dest=normalize(left+right, mode)
With the input strings already being normalized,
this function will use next() and previous()
to find the adjacent end pieces of the input strings.
Only the concatenation of these end pieces will be normalized and
then concatenated with the remaining parts of the input strings.
It is allowed to have dest==left to avoid copying the entire left string.
Parameters: left Left source array, may be same as dest. leftStart start in the left array. leftLimit limit in the left array (==length) right Right source array. rightStart start in the right array. rightLimit limit in the right array (==length) dest The output buffer; can be null if destStart==destLimit==0 for pure preflighting. destStart start in the destination array destLimit limit in the destination array (==length) mode The normalization mode. options The normalization options, ORed together (0 for no options).
Returns: Length of output (number of chars) when successful or IndexOutOfBoundsException
Throws: IndexOutOfBoundsException whose message has the string representation of destination capacity required. IndexOutOfBoundsException if target capacity is less than the required length
See Also: Normalizer Normalizer Normalizer
UNKNOWN: ICU 2.8
dest=normalize(left+right, mode)
For details see concatenate
Parameters: left Left source string. right Right source string. mode The normalization mode. options The normalization options, ORed together (0 for no options).
Returns: result
See Also: Normalizer Normalizer Normalizer Normalizer Normalizer
UNKNOWN: ICU 2.8
dest=normalize(left+right, mode)
For details see concatenate
Parameters: left Left source string. right Right source string. mode The normalization mode. options The normalization options, ORed together (0 for no options).
Returns: result
See Also: Normalizer Normalizer Normalizer Normalizer Normalizer
UNKNOWN: ICU 2.8
Returns: The codepoint as an int
UNKNOWN: ICU 2.8
Parameters: str The string to decompose. compat If true the string will be decomposed accoding to NFKD rules and if false will be decomposed according to NFD rules.
Returns: String The decomposed string
UNKNOWN: ICU 2.8
Parameters: str The string to decompose. compat If true the string will be decomposed accoding to NFKD rules and if false will be decomposed according to NFD rules. options The normalization options, ORed together (0 for no options).
Returns: String The decomposed string
UNKNOWN: ICU 2.6
Parameters: source The char array to decompose. target A char buffer to receive the normalized text. compat If true the char array will be decomposed accoding to NFKD rules and if false will be decomposed according to NFD rules. options The normalization options, ORed together (0 for no options).
Returns: int The total buffer size needed;if greater than length of result,the output was truncated.
Throws: IndexOutOfBoundsException if the target capacity is less than the required length
UNKNOWN: ICU 2.6
Parameters: src The char array to compose. srcStart Start index of the source srcLimit Limit index of the source dest The char buffer to fill in destStart Start index of the destination buffer destLimit End index of the destination buffer compat If true the char array will be decomposed accoding to NFKD rules and if false will be decomposed according to NFD rules. options The normalization options, ORed together (0 for no options).
Returns: int The total buffer size needed;if greater than length of result,the output was truncated.
Throws: IndexOutOfBoundsException if the target capacity is less than the required length
UNKNOWN: ICU 2.6
Returns: The current iteration position
UNKNOWN: ICU 2.8
Returns: The codepoint as an int
UNKNOWN: ICU 2.8
Deprecated: ICU 2.2. Use startIndex() instead.
Retrieve the index of the start of the input text. This is the begin index of the CharacterIterator or the start (i.e. 0) of the String over which this Normalizer is iteratingReturns: The codepoint as an int
See Also: Normalizer
Deprecated: ICU 2.2. Use endIndex() instead.
Retrieve the index of the end of the input text. This is the end index of the CharacterIterator or the length of the String over which this Normalizer is iteratingReturns: The codepoint as an int
See Also: Normalizer
Parameters: c The code point whose closure set is to be retrieved dest The char array to recive the closure set
UNKNOWN: ICU 2.4
Parameters: c The the code point whose closure set is to be retrieved
Returns: String representation of the closure set
UNKNOWN: ICU 2.4
Note: This method sets the position in the input, while {@link #next} and {@link #previous} iterate through characters in the output. This means that there is not necessarily a one-to-one correspondence between characters returned by next and previous and the indices passed to and returned from setIndex and {@link #getIndex}.
Returns: The current iteration position
UNKNOWN: ICU 2.8
Returns: the length
UNKNOWN: ICU 2.8
See Also: Normalizer
UNKNOWN: ICU 2.8
See Also: Normalizer
UNKNOWN: ICU 2.6
Parameters: fillIn the char buffer to fill the UTF-16 units. The length of the buffer should be equal to the length of the underlying text storage
Throws: IndexOutOfBoundsException
See Also: Normalizer
UNKNOWN: ICU 2.8
Returns: a copy of the text under iteration.
UNKNOWN: ICU 2.8
UNKNOWN:
Parameters: src The input array of characters to be checked to see if it is normalized start The strart index in the source limit The limit index in the source mode the normalization mode options Options for use with exclusion set an tailored Normalization The only option that is currently recognized is UNICODE_3_2
Returns: Boolean value indicating whether the source string is in the "mode" normalization form
UNKNOWN: ICU 2.6
Parameters: str the input string to be checked to see if it is normalized mode the normalization mode options Options for use with exclusion set an tailored Normalization The only option that is currently recognized is UNICODE_3_2
See Also: Normalizer
UNKNOWN: ICU 2.6
Parameters: char32 the input code point to be checked to see if it is normalized mode the normalization mode options Options for use with exclusion set an tailored Normalization The only option that is currently recognized is UNICODE_3_2
See Also: Normalizer
UNKNOWN: ICU 2.6
Returns: The codepoint as an int
UNKNOWN: ICU 2.8
Returns: The codepoint as an int
UNKNOWN: ICU 2.8
The options parameter specifies which optional Normalizer features are to be enabled for this operation. Currently the only available option is {@link #UNICODE_3_2}. If you want the default behavior corresponding to one of the standard Unicode Normalization Forms, use 0 for this argument.
Parameters: str the input string to be normalized. mode the normalization mode options the optional features to be enabled.
Returns: String the normalized string
UNKNOWN: ICU 2.6
Parameters: src The string to normalize. mode The normalization mode; one of Normalizer.NONE, Normalizer.NFD, Normalizer.NFC, Normalizer.NFKC, Normalizer.NFKD, Normalizer.DEFAULT
Returns: the normalized string
UNKNOWN: ICU 2.8
Parameters: source The char array to normalize. target A char buffer to receive the normalized text. mode The normalization mode; one of Normalizer.NONE, Normalizer.NFD, Normalizer.NFC, Normalizer.NFKC, Normalizer.NFKD, Normalizer.DEFAULT options The normalization options, ORed together (0 for no options).
Returns: int The total buffer size needed;if greater than length of result, the output was truncated.
Throws: IndexOutOfBoundsException if the target capacity is less than the required length
UNKNOWN: ICU 2.6
Parameters: src The char array to compose. srcStart Start index of the source srcLimit Limit index of the source dest The char buffer to fill in destStart Start index of the destination buffer destLimit End index of the destination buffer mode The normalization mode; one of Normalizer.NONE, Normalizer.NFD, Normalizer.NFC, Normalizer.NFKC, Normalizer.NFKD, Normalizer.DEFAULT options The normalization options, ORed together (0 for no options).
Returns: int The total buffer size needed;if greater than length of result, the output was truncated.
Throws: IndexOutOfBoundsException if the target capacity is less than the required length
UNKNOWN: ICU 2.6
Parameters: char32 The input string to be normalized. mode The normalization mode options Options for use with exclusion set an tailored Normalization The only option that is currently recognized is UNICODE_3_2
Returns: String The normalized string
See Also: UNICODE_3_2
UNKNOWN: ICU 2.6
Parameters: char32 The input string to be normalized. mode The normalization mode
Returns: String The normalized string
See Also: UNICODE_3_2
UNKNOWN: ICU 2.6
Returns: The codepoint as an int
UNKNOWN: ICU 2.8
Parameters: source string for determining if it is in a normalized format mode normalization format (Normalizer.NFC,Normalizer.NFD, Normalizer.NFKC,Normalizer.NFKD)
Returns: Return code to specify if the text is normalized or not (Normalizer.YES, Normalizer.NO or Normalizer.MAYBE)
UNKNOWN: ICU 2.8
Parameters: source string for determining if it is in a normalized format mode normalization format (Normalizer.NFC,Normalizer.NFD, Normalizer.NFKC,Normalizer.NFKD) options Options for use with exclusion set an tailored Normalization The only option that is currently recognized is UNICODE_3_2
Returns: Return code to specify if the text is normalized or not (Normalizer.YES, Normalizer.NO or Normalizer.MAYBE)
UNKNOWN: ICU 2.6
Parameters: source Array of characters for determining if it is in a normalized format mode normalization format (Normalizer.NFC,Normalizer.NFD, Normalizer.NFKC,Normalizer.NFKD) options Options for use with exclusion set an tailored Normalization The only option that is currently recognized is UNICODE_3_2
Returns: Return code to specify if the text is normalized or not (Normalizer.YES, Normalizer.NO or Normalizer.MAYBE)
UNKNOWN: ICU 2.6
Parameters: source string for determining if it is in a normalized format start the start index of the source limit the limit index of the source it is equal to the length mode normalization format (Normalizer.NFC,Normalizer.NFD, Normalizer.NFKC,Normalizer.NFKD) options Options for use with exclusion set an tailored Normalization The only option that is currently recognized is UNICODE_3_2
Returns: Return code to specify if the text is normalized or not (Normalizer.YES, Normalizer.NO or Normalizer.MAYBE)
UNKNOWN: ICU 2.6
UNKNOWN: ICU 2.8
Deprecated: ICU 3.2
Set the iteration position in the input text that is being normalized and return the first normalized character at that position.Note: This method sets the position in the input text, while {@link #next} and {@link #previous} iterate through characters in the normalized output. This means that there is not necessarily a one-to-one correspondence between characters returned by next and previous and the indices passed to and returned from setIndex and {@link #getIndex}.
Parameters: index the desired index in the input text->
Returns: the first normalized character that is the result of iterating forward starting at the given index. The codepoint as an int
Throws: IllegalArgumentException if the given index is less than {@link #getBeginIndex} or greater than {@link #getEndIndex}.
UNKNOWN: ICU 3.2
Parameters: index the desired index in the input text.
UNKNOWN: ICU 2.8
Note:If the normalization mode is changed while iterating over a string, calls to {@link #next} and {@link #previous} may return previously buffers characters in the old normalization mode until the iteration is able to re-sync at the next base character. It is safest to call {@link #setText setText()}, {@link #first}, {@link #last}, etc. after calling setMode.
Parameters: newMode the new mode for this Normalizer.
The supported modes are:
See Also: Normalizer
UNKNOWN: ICU 2.8
Parameters: option the option whose value is to be set. value the new setting for the option. Use true to turn the option on and false to turn it off.
See Also: Normalizer
UNKNOWN: ICU 2.6
Parameters: newText The new string to be normalized.
UNKNOWN: ICU 2.8
Parameters: newText The new string to be normalized.
UNKNOWN: ICU 2.8
Parameters: newText The new string to be normalized.
UNKNOWN: ICU 2.8
Parameters: newText The new string to be normalized.
UNKNOWN: ICU 2.8
Parameters: newText The new string to be normalized.
UNKNOWN: ICU 2.8
Returns: The current iteration position
UNKNOWN: ICU 2.8