Package org.proforma.variability.util
Class JavascriptString
java.lang.Object
org.proforma.variability.util.JavascriptString
Utility class for JavaScript compatible UTF-8 encoding and decoding.
- See Also:
-
Method Summary
-
Method Details
-
decodeURIComponent
Decodes the passed UTF-8 String using an algorithm that's compatible with JavaScript'sdecodeURIComponent
function. Returnsnull
if the String isnull
.- Parameters:
s
- The UTF-8 encoded String to be decoded- Returns:
- the decoded String
-
encodeURIComponent
Encodes the passed String as UTF-8 using an algorithm that's compatible with JavaScript'sencodeURIComponent
function. Returnsnull
if the String isnull
.- Parameters:
s
- The String to be encoded- Returns:
- the encoded String
-