public class IlvUnicodeUtil extends Object
IlvUnicodeUtil
class consists of static methods that
are of general use when working with Unicode text strings.
This class is a singleton and instances of this class cannot be created.Modifier and Type | Method and Description |
---|---|
static String |
escape(String str)
Converts the specified Unicode string to the escaped format
that is used in Java source code.
|
static String |
escape(String str,
boolean escapeSpace)
Converts the specified Unicode string to the escaped format
that is used in Java source code.
|
public static String escape(String str, boolean escapeSpace)
\uxxxx
format. In addition,
the characters \t
, \r
,
\n
, \f
, "
,
'
, and \
are escaped.str
- The string to escape.escapeSpace
- If true
, indicates that space
characters should also be escaped.public static String escape(String str)
\uxxxx
format. In addition,
the characters \t
, \r
,
\n
, \f
, "
,
'
, and \
are escaped.str
- The string to escape.© Copyright 2024 Rogue Wave Software, Inc., a Perforce company.. All Rights Reserved.