public final class StringUtil extends Object
For internal use only. May be renamed or removed in a future release.
| Constructor and Description |
|---|
StringUtil() |
| Modifier and Type | Method and Description |
|---|---|
static String |
getHash(String content)
Generate a hash for given content.
|
static String |
removeComments(String code)
Removes comments (block comments and line comments) from the JS code.
|
static String |
removeComments(String code,
boolean useStringApostrophe)
Removes comments (block comments and line comments) from the JS code.
|
public static String removeComments(String code)
code - code to clean comments frompublic static String removeComments(String code, boolean useStringApostrophe)
code - code to clean comments fromuseStringApostrophe - if true then ' is also considered a string and
comments will not be considered inside itCopyright © 2022. All rights reserved.