| Package | Description |
|---|---|
| org.jruby |
| Modifier and Type | Method and Description |
|---|---|
static RubyRegexp.ErrorMode |
RubyRegexp.ErrorMode.valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static RubyRegexp.ErrorMode[] |
RubyRegexp.ErrorMode.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
| Modifier and Type | Method and Description |
|---|---|
private static void |
RubyRegexp.appendUtf8(Ruby runtime,
org.jruby.util.ByteList to,
int code,
org.jcodings.Encoding[] enc,
org.jruby.util.ByteList str,
RubyRegexp.ErrorMode mode)
Append the given utf8 characters to the buffer, if given, checking for
errors along the way.
|
private static void |
RubyRegexp.checkUnicodeRange(Ruby runtime,
int code,
org.jruby.util.ByteList str,
RubyRegexp.ErrorMode mode) |
private static org.joni.Regex |
RubyRegexp.getPreprocessedRegexpFromCache(Ruby runtime,
org.jruby.util.ByteList bytes,
org.jcodings.Encoding enc,
RegexpOptions options,
RubyRegexp.ErrorMode mode) |
private static org.jruby.util.ByteList |
RubyRegexp.preprocess(Ruby runtime,
org.jruby.util.ByteList str,
org.jcodings.Encoding enc,
org.jcodings.Encoding[] fixedEnc,
RubyRegexp.ErrorMode mode)
Preprocess the given string for use in regexp, raising errors for encoding
incompatibilities that arise.
|
private static void |
RubyRegexp.preprocessLight(Ruby runtime,
org.jruby.util.ByteList str,
org.jcodings.Encoding enc,
org.jcodings.Encoding[] fixedEnc,
RubyRegexp.ErrorMode mode)
Preprocess the given string for use in regexp, raising errors for encoding
incompatibilities that arise.
|
private static int |
RubyRegexp.raisePreprocessError(Ruby runtime,
org.jruby.util.ByteList str,
java.lang.String err,
RubyRegexp.ErrorMode mode) |
private static int |
RubyRegexp.readEscapedByte(Ruby runtime,
byte[] to,
int toP,
byte[] bytes,
int p,
int end,
org.jruby.util.ByteList str,
RubyRegexp.ErrorMode mode) |
private static int |
RubyRegexp.unescapeEscapedNonAscii(Ruby runtime,
org.jruby.util.ByteList to,
byte[] bytes,
int p,
int end,
org.jcodings.Encoding enc,
org.jcodings.Encoding[] encp,
org.jruby.util.ByteList str,
RubyRegexp.ErrorMode mode)
Unescape escaped non-ascii character at start position, appending all
to the given bytelist if provided.
|
private static boolean |
RubyRegexp.unescapeNonAscii(Ruby runtime,
org.jruby.util.ByteList to,
byte[] bytes,
int p,
int end,
org.jcodings.Encoding enc,
org.jcodings.Encoding[] encp,
org.jruby.util.ByteList str,
RubyRegexp.ErrorMode mode)
Unescape non-ascii elements in the given string, appending the results
to the given bytelist if provided.
|
private static int |
RubyRegexp.unescapeUnicodeBmp(Ruby runtime,
org.jruby.util.ByteList to,
byte[] bytes,
int p,
int end,
org.jcodings.Encoding[] encp,
org.jruby.util.ByteList str,
RubyRegexp.ErrorMode mode)
Unescape unicode BMP char at given offset, appending to the specified
buffer if non-null.
|
private static int |
RubyRegexp.unescapeUnicodeList(Ruby runtime,
org.jruby.util.ByteList to,
byte[] bytes,
int p,
int end,
org.jcodings.Encoding[] encp,
org.jruby.util.ByteList str,
RubyRegexp.ErrorMode mode)
Unescape unicode characters at given offset, appending to the given
out buffer if provided.
|