public final class PrepareString extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
PrepareString.StringType
The type of String we have to normalize
|
| Modifier and Type | Method and Description |
|---|---|
static StringBuilder |
bidi(char[] array)
Remove all bidirectionnal chars.
|
static String |
bidi(String str)
Remove all bidirectionnal chars.
|
static String |
normalize(String str,
PrepareString.StringType type)
We have to go through 6 steps :
1) Transcode
2) Map
3) Normalize
4) Prohibit
5) Bidi
6) Insignifiant Character Handling
The first step is already done, the step (3) is not done.
|
public static String normalize(String str, PrepareString.StringType type) throws IOException
str - The String to normalizetype - The string typeIOExceptionpublic static String bidi(String str)
str - The string where bidi chars are to be removedpublic static StringBuilder bidi(char[] array)
array - The char array where bidi chars are to be removedCopyright © 2003–2016 The Apache Software Foundation. All rights reserved.