|
TV-Browser 3.3.3 API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object util.i18n.WritingConversion
public class WritingConversion
Constructor Summary | |
---|---|
WritingConversion()
|
Method Summary | |
---|---|
static java.lang.String |
reduceToASCIILetters(java.lang.String string,
boolean replaceUnsupportedChars)
Reduces String to ASCII letters by removing punctuation and redundant whitespaces and replacing non-ASCII letters with similar ASCII letters if available. |
static java.lang.String |
removeDiacriticalMarks(java.lang.String string)
Remove any diacritical marks (accents like ç, ñ, é, etc) from the given string. |
static java.lang.String |
removeRedundantWhitespaces(java.lang.String string)
Replace whitespaces with a single space |
static java.lang.String |
replaceLatinDerivedLetters(java.lang.String string)
Replaces non-ASCII latin derived letters with similar ASCII letters if available. |
static java.lang.String |
replacePunctuation(java.lang.String string,
java.lang.String replaceString)
Replace punctuation (!" |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public WritingConversion()
Method Detail |
---|
public static java.lang.String removeDiacriticalMarks(java.lang.String string)
string
- The string to remove diacritical marks from.
public static java.lang.String replaceLatinDerivedLetters(java.lang.String string)
string
- The string to replace non-ASCII letters.
public static java.lang.String replacePunctuation(java.lang.String string, java.lang.String replaceString)
string
- The string to replace punctuation from.replaceString
- The string to replace the punctuation with
public static java.lang.String removeRedundantWhitespaces(java.lang.String string)
string
- The string to replace whitespaces from.
public static java.lang.String reduceToASCIILetters(java.lang.String string, boolean replaceUnsupportedChars)
string
- The string to reduce.replaceUnsupportedChars
- If true, all characters that can't be replaced with
ASCII letters will be replaced with an underscore.
|
TV-Browser 3.3.3 API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |