public class NSISUtil extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
NSISUtil.NSISInputStream
An
InputStream implementation that automatically converts the
content from NSIS format to the slightly modified format used to store
NSIS files on Crowdin. |
| Modifier and Type | Field and Description |
|---|---|
static Pattern |
BACKTICK_QUOTED_STRING
A
Pattern for splitting a backtick quoted string |
protected static int |
BUFFER_SIZE
The buffer size
|
static Pattern |
COMMENT_TAG
A
Pattern for finding NSIS comments |
static Pattern |
DOLLAR
A
Pattern for finding dollar signs that's not part of a
dollar-backslash escape sequence |
static Pattern |
DOLLAR_ESCAPES
A
Pattern for finding dollar-backslash escape sequences |
static Pattern |
DOUBLE_DOLLAR
A
Pattern for finding double dollar signs that's not part of a
dollar-backslash escape sequence |
static Pattern |
DOUBLE_QUOTED_STRING
A
Pattern for splitting a double quoted string |
static Pattern |
ESCAPES
A
Pattern for finding backslashes not preceded by a dollar sign |
static Pattern |
SINGLE_QUOTED_STRING
A
Pattern for splitting a single quoted string |
| Modifier and Type | Method and Description |
|---|---|
protected static String |
convertLine(String inputLine,
boolean from)
Converts the specified line between "proper" NSIS format and the slightly
modified format used to store NSIS files on Crowdin.
|
static String |
convertLineFromNSIS(String inputLine)
Converts the specified line from NSIS format to the slightly modified
format used to store NSIS files on Crowdin.
|
static String |
convertLineToNSIS(String inputLine)
Converts the specified line from the slightly modified format used to
store NSIS files on Crowdin to "proper" NSIS format.
|
protected static byte[] |
getUTF8ByteArray(String string)
|
public static final Pattern SINGLE_QUOTED_STRING
Pattern for splitting a single quoted stringpublic static final Pattern BACKTICK_QUOTED_STRING
Pattern for splitting a backtick quoted stringpublic static final Pattern DOUBLE_QUOTED_STRING
Pattern for splitting a double quoted stringpublic static final Pattern ESCAPES
Pattern for finding backslashes not preceded by a dollar signpublic static final Pattern DOLLAR_ESCAPES
Pattern for finding dollar-backslash escape sequencespublic static final Pattern DOLLAR
Pattern for finding dollar signs that's not part of a
dollar-backslash escape sequencepublic static final Pattern DOUBLE_DOLLAR
Pattern for finding double dollar signs that's not part of a
dollar-backslash escape sequenceprotected static final int BUFFER_SIZE
@Nullable public static String convertLineFromNSIS(@Nullable String inputLine)
inputLine - the line to convert.null if input is
null.@Nonnull public static String convertLineToNSIS(@Nonnull String inputLine)
inputLine - the line to convert.@Nonnull protected static String convertLine(@Nonnull String inputLine, boolean from)
inputLine - the line to convert.from - if true the input is expected to be in NSIS format,
if false the output will be in NSIS format.Copyright © 2024. All rights reserved.