| Modifier and Type | Class and Description |
|---|---|
| public static class | QuotedString.
Quoting style used by the Bourne shell. |
| public static class | QuotedString.
Bourne style, but permits |
| public static class | QuotedString.
Quoting style that obeys the rules Git applies to file names |
| Modifier and Type | Field and Description |
|---|---|
| public static final QuotedString. | BOURNE
Quoting style used by the Bourne shell. |
| public static final QuotedString. | BOURNE_USER_PATH
Bourne style, but permits |
| public static final QuotedString. | GIT_PATH
Quoting style that obeys the rules Git applies to file names |
| public static final QuotedString | GIT_PATH_MINIMAL
Quoting style that obeys the rules Git applies to file names when
|
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public String | |
| public abstract String | Returns: the cleaned string.the input buffer to parse. in, int first position within offset, int in to scan.one position past in end)in to scan.Decode a previously quoted input, scanning a UTF-8 encoded buffer. |
| public abstract String |
| BOURNE | back to summary |
|---|---|
| public static final QuotedString. Quoting style used by the Bourne shell.
Quotes are unconditionally inserted during | |
| BOURNE_USER_PATH | back to summary |
|---|---|
| public static final QuotedString. Bourne style, but permits | |
| GIT_PATH | back to summary |
|---|---|
| public static final QuotedString. Quoting style that obeys the rules Git applies to file names | |
| GIT_PATH_MINIMAL | back to summary |
|---|---|
| public static final QuotedString GIT_PATH_MINIMAL Quoting style that obeys the rules Git applies to file names when
| |
| QuotedString | back to summary |
|---|---|
| public QuotedString() | |
| dequote | back to summary |
|---|---|
| public String dequote(String in) Clean a previously quoted input, decoding the result via UTF-8. This method must match quote such that: a.equals(dequote(quote(a)));is true for any a.
| |
| dequote | back to summary |
|---|---|
| public abstract String dequote(byte[] in, int offset, int end) Decode a previously quoted input, scanning a UTF-8 encoded buffer. This method must match quote such that: a.equals(dequote(Constants.encode(quote(a))));is true for any a.
This method removes any opening/closing quotation marks added by
| |
| quote | back to summary |
|---|---|
| public abstract String quote(String in) Quote an input string by the quoting rules. If the input string does not require any quoting, the same String reference is returned to the caller. Otherwise a quoted string is returned, including the opening and closing quotation marks at the start and end of the string. If the style does not permit raw Unicode characters then the string will first be encoded in UTF-8, with unprintable sequences possibly escaped by the rules. | |
Quotes are unconditionally inserted during quote(String). This
protects shell meta-characters like $ or ~ from
being recognized as special.
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public String | dequote(byte[]
the input buffer to parse. in, int first position within ip, int in to scan.one position past in ie)in to scan.Implements abstract org. Decode a previously quoted input, scanning a UTF-8 encoded buffer. |
| public String | quote(String
any non-null Unicode string. in)Implements abstract org. Quote an input string by the quoting rules. |
| BourneStyle | back to summary |
|---|---|
| public BourneStyle() | |
| dequote | back to summary |
|---|---|
| public String dequote(byte[] in, int ip, int ie) Implements abstract org. Doc from org. Decode a previously quoted input, scanning a UTF-8 encoded buffer. This method must match quote such that: a.equals(dequote(Constants.encode(quote(a))));is true for any a.
This method removes any opening/closing quotation marks added by
| |
| quote | back to summary |
|---|---|
| public String quote(String in) Implements abstract org. Doc from org. Quote an input string by the quoting rules. If the input string does not require any quoting, the same String reference is returned to the caller. Otherwise a quoted string is returned, including the opening and closing quotation marks at the start and end of the string. If the style does not permit raw Unicode characters then the string will first be encoded in UTF-8, with unprintable sequences possibly escaped by the rules. | |
~user at the start of the string.
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public String | quote(String
any non-null Unicode string. in)Overrides org. Quote an input string by the quoting rules. |
| BourneUserPathStyle | back to summary |
|---|---|
| public BourneUserPathStyle() | |
| quote | back to summary |
|---|---|
| public String quote(String in) Overrides org. Doc from org. Quote an input string by the quoting rules. If the input string does not require any quoting, the same String reference is returned to the caller. Otherwise a quoted string is returned, including the opening and closing quotation marks at the start and end of the string. If the style does not permit raw Unicode characters then the string will first be encoded in UTF-8, with unprintable sequences possibly escaped by the rules. | |
| Modifier and Type | Field and Description |
|---|---|
| private static final byte[] | |
| private final boolean |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public String | dequote(byte[]
the input buffer to parse. in, int first position within inPtr, int in to scan.one position past in inEnd)in to scan.Implements abstract org. Decode a previously quoted input, scanning a UTF-8 encoded buffer. |
| private static String | |
| public String | quote(String
any non-null Unicode string. instr)Implements abstract org. Quote an input string by the quoting rules. |
| quote | back to summary |
|---|---|
| private static final byte[] quote | |
| quoteHigh | back to summary |
|---|---|
| private final boolean quoteHigh | |
| GitPathStyle | back to summary |
|---|---|
| private GitPathStyle(boolean doQuote) | |
| dequote | back to summary |
|---|---|
| public String dequote(byte[] in, int inPtr, int inEnd) Implements abstract org. Doc from org. Decode a previously quoted input, scanning a UTF-8 encoded buffer. This method must match quote such that: a.equals(dequote(Constants.encode(quote(a))));is true for any a.
This method removes any opening/closing quotation marks added by
| |
| dq | back to summary |
|---|---|
| private static String dq(byte[] in, int inPtr, int inEnd) | |
| quote | back to summary |
|---|---|
| public String quote(String instr) Implements abstract org. Doc from org. Quote an input string by the quoting rules. If the input string does not require any quoting, the same String reference is returned to the caller. Otherwise a quoted string is returned, including the opening and closing quotation marks at the start and end of the string. If the style does not permit raw Unicode characters then the string will first be encoded in UTF-8, with unprintable sequences possibly escaped by the rules. | |