Package EDU.purdue.jtb.common
Class UnicodeConverter
java.lang.Object
EDU.purdue.jtb.common.UnicodeConverter
Class
UnicodeConverter
contains some static methods to convert unicode chars into their escape
sequence form (provided by James Huang from the JavaCC mailing list).
Class is thread-safe.
TESTCASE some to add-
Method Summary
Modifier and TypeMethodDescriptionstatic String
addUnicodeEscapes
(String str) Converts a string by replacing non ASCII characters with their Unicode representation.
ASCII characters are between 0x20 and 0x7e included, or tab, new line, carriage return? form feed and backspace.
Should be the same as (the commented)invalid reference
#convertString(String)
-
Method Details
-
addUnicodeEscapes
Converts a string by replacing non ASCII characters with their Unicode representation.
ASCII characters are between 0x20 and 0x7e included, or tab, new line, carriage return? form feed and backspace.
Should be the same as (the commented)invalid reference
#convertString(String)
- Parameters:
str
- - a string- Returns:
- the converted string
-