| Modifier and Type | Class and Description |
|---|---|
| public static enum |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| private static int | |
| public static void | |
| public static void | appendRegexpString(Ruby runtime, ByteList to, byte[] bytes, int start, int len, Encoding enc, Encoding resEnc)
|
| public static void | appendRegexpString19(Ruby runtime, ByteList to, byte[] bytes, int start, int len, Encoding enc, Encoding resEnc)
Deprecated
|
| private static void | appendUtf8(Ruby
current runtime runtime, ByteList output buffer; if null, no appending will be done to, int utf8 character code code, Encoding[] output param for new encoding enc, ByteList original wrapper of source bytes str, RegexpSupport.error mode modeAppend the given utf8 characters to the buffer, if given, checking for errors along the way. |
| private static void | |
| public static ByteList | Returns: a new unescaped stringcurrent runtime runtime, ByteList string to preprocess str, Encoding string's encoding enc, Encoding[] new encoding after fixing fixedEnc, RegexpSupport.mode of errors modePreprocess the given string for use in regexp, raising errors for encoding incompatibilities that arise. |
| public static int | |
| public static void | |
| public static void | raiseRegexpError19(Ruby runtime, ByteList bytes, Encoding enc, RegexpOptions options, String err)
Deprecated
|
| public static int | readEscapedByte(Ruby runtime, byte[] to, int toP, byte[] bytes, int p, int end, ByteList str, RegexpSupport.
|
| public static ByteList | |
| private static ByteList | |
| public static ByteList | |
| private static int | Returns: new position after performing unescapingcurrent runtime runtime, ByteList output bytelist; if null, no appending will be done to, byte[] incoming bytes bytes, int start position p, int end position end, Encoding bytes' encoding enc, Encoding[] out param for fixed encoding encp, ByteList original bytes wrapper str, RegexpSupport.error mode modeUnescape escaped non-ascii character at start position, appending all to the given bytelist if provided. |
| public static boolean | Returns: whether any propery elements were encountered while walkingcurrent runtime runtime, ByteList output bytelist; if null, no appending will be done to, byte[] the bytes to unescape bytes, int starting position p, int ending position end, Encoding bytes' encoding enc, Encoding[] out param for fixed encoding encp, ByteList original wrapper for the bytes str, RegexpSupport.error mode modeUnescape non-ascii elements in the given string, appending the results to the given bytelist if provided. |
| private static int | Returns: new position after unescapingcurrent runtime runtime, ByteList output buffer; if null, no appending will be done to, byte[] input bytes bytes, int start position p, int end position end, Encoding[] out param for fixed encoding encp, ByteList original bytes wrapper str, RegexpSupport.error mode modeUnescape unicode BMP char at given offset, appending to the specified buffer if non-null. |
| private static int | Returns: new position after unescapingcurrent runtime runtime, ByteList output buffer; if null, no appending will be done to, byte[] input bytes bytes, int start position p, int end position end, Encoding[] out param for fixed encoding encp, ByteList original bytes wrapper str, RegexpSupport.error mode modeUnescape unicode characters at given offset, appending to the given out buffer if provided. |
| RegexpSupport | back to summary |
|---|---|
| public RegexpSupport() | |
| appendMBC | back to summary |
|---|---|
| private static int appendMBC(Ruby runtime, ByteList to, byte[] bytes, int p, Encoding enc, Encoding[] encp, ByteList str, RegexpSupport. | |
| appendOptions | back to summary |
|---|---|
| public static void appendOptions(ByteList to, RegexpOptions options) | |
| appendRegexpString | back to summary |
|---|---|
| public static void appendRegexpString(Ruby runtime, ByteList to, byte[] bytes, int start, int len, Encoding enc, Encoding resEnc) | |
| appendRegexpString19 | back to summary |
|---|---|
| public static void appendRegexpString19(Ruby runtime, ByteList to, byte[] bytes, int start, int len, Encoding enc, Encoding resEnc)
Deprecated
| |
| appendUtf8 | back to summary |
|---|---|
| private static void appendUtf8(Ruby runtime, ByteList to, int code, Encoding[] enc, ByteList str, RegexpSupport. Append the given utf8 characters to the buffer, if given, checking for errors along the way. | |
| checkUnicodeRange | back to summary |
|---|---|
| private static void checkUnicodeRange(Ruby runtime, int code, ByteList str, RegexpSupport. | |
| preprocess | back to summary |
|---|---|
| public static ByteList preprocess(Ruby runtime, ByteList str, Encoding enc, Encoding[] fixedEnc, RegexpSupport. Preprocess the given string for use in regexp, raising errors for encoding incompatibilities that arise. This version produces a new unescaped version of the string based on fixes performed while walking. | |
| raisePreprocessError | back to summary |
|---|---|
| public static int raisePreprocessError(Ruby runtime, ByteList str, String err, RegexpSupport. | |
| raiseRegexpError | back to summary |
|---|---|
| public static void raiseRegexpError(Ruby runtime, ByteList bytes, Encoding enc, RegexpOptions options, String err) | |
| raiseRegexpError19 | back to summary |
|---|---|
| public static void raiseRegexpError19(Ruby runtime, ByteList bytes, Encoding enc, RegexpOptions options, String err)
Deprecated
| |
| readEscapedByte | back to summary |
|---|---|
| public static int readEscapedByte(Ruby runtime, byte[] to, int toP, byte[] bytes, int p, int end, ByteList str, RegexpSupport. | |
| regexpDescription | back to summary |
|---|---|
| public static ByteList regexpDescription(Ruby runtime, ByteList bytes, RegexpOptions options, Encoding enc) | |
| regexpDescription | back to summary |
|---|---|
| private static ByteList regexpDescription(Ruby runtime, byte[] s, int start, int len, RegexpOptions options, Encoding enc) | |
| regexpDescription19 | back to summary |
|---|---|
| public static ByteList regexpDescription19(Ruby runtime, ByteList bytes, RegexpOptions options, Encoding enc)
Deprecated
| |
| unescapeEscapedNonAscii | back to summary |
|---|---|
| private static int unescapeEscapedNonAscii(Ruby runtime, ByteList to, byte[] bytes, int p, int end, Encoding enc, Encoding[] encp, ByteList str, RegexpSupport. Unescape escaped non-ascii character at start position, appending all to the given bytelist if provided.
| |
| unescapeNonAscii | back to summary |
|---|---|
| public static boolean unescapeNonAscii(Ruby runtime, ByteList to, byte[] bytes, int p, int end, Encoding enc, Encoding[] encp, ByteList str, RegexpSupport. Unescape non-ascii elements in the given string, appending the results to the given bytelist if provided. (mri: unescape_nonascii).
| |
| unescapeUnicodeBmp | back to summary |
|---|---|
| private static int unescapeUnicodeBmp(Ruby runtime, ByteList to, byte[] bytes, int p, int end, Encoding[] encp, ByteList str, RegexpSupport. Unescape unicode BMP char at given offset, appending to the specified buffer if non-null.
| |
| unescapeUnicodeList | back to summary |
|---|---|
| private static int unescapeUnicodeList(Ruby runtime, ByteList to, byte[] bytes, int p, int end, Encoding[] encp, ByteList str, RegexpSupport. Unescape unicode characters at given offset, appending to the given out buffer if provided.
| |
| Modifier and Type | Field and Description |
|---|---|
| public static final RegexpSupport. | |
| public static final RegexpSupport. | |
| public static final RegexpSupport. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static RegexpSupport. | |
| public static RegexpSupport. |
| DESC | back to summary |
|---|---|
| public static final RegexpSupport. | |
| PREPROCESS | back to summary |
|---|---|
| public static final RegexpSupport. | |
| RAISE | back to summary |
|---|---|
| public static final RegexpSupport. | |
| ErrorMode | back to summary |
|---|---|
| private ErrorMode() | |
| valueOf | back to summary |
|---|---|
| public static RegexpSupport. | |
| values | back to summary |
|---|---|
| public static RegexpSupport. | |