Processing of the string is done by breaking it down into segments that are specified by a set of user provided delimiters. Directional punctuation characters are injected into the string in order to ensure the string retains its semantic meaning and conforms with the Unicode Bidi algorithm within each segment.
| Method Summary | |
|---|---|
| String |
Return the string containing all the default delimiter characters to be used to segment a given string. |
| String |
Process the given text and return a string with the appropriate substitution based on the locale. |
| String |
Process a string that has a particular semantic meaning to render on Bidi locales in way that maintains the semantic meaning of the text, but differs from the Unicode Bidi algoritm. |
| Methods inherited from java.langObject |
|---|
process(String, String) with the default set
of delimiters. For example a file path such as d:\myFolder\FOLDER\MYFILE.java (where capital letters indicate RTL text) should render as d:\myFolder\REDLOF\ELIFYM.java when using the Unicode Bidi algorithm and segmenting the string according to the specified delimiter set.
The following algorithm is used:
NOTE: this method will change the shape of the original string passed in by inserting punctuation characters into the text in order to make it render to correctly reflect the semantic meaning of the text. Methods like String.equals(String) and String.length() called on the resulting string will not return the same values as would be returned for the original string.