Package | Description |
---|---|
org.jruby.util |
Modifier and Type | Method and Description |
---|---|
static RegexpSupport.ErrorMode |
RegexpSupport.ErrorMode.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static RegexpSupport.ErrorMode[] |
RegexpSupport.ErrorMode.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
Modifier and Type | Method and Description |
---|---|
static org.jruby.util.ByteList |
RegexpSupport.preprocess(Ruby runtime,
org.jruby.util.ByteList str,
org.jcodings.Encoding enc,
org.jcodings.Encoding[] fixedEnc,
RegexpSupport.ErrorMode mode)
Preprocess the given string for use in regexp, raising errors for encoding
incompatibilities that arise.
|
static int |
RegexpSupport.raisePreprocessError(Ruby runtime,
org.jruby.util.ByteList str,
String err,
RegexpSupport.ErrorMode mode) |
static int |
RegexpSupport.readEscapedByte(Ruby runtime,
byte[] to,
int toP,
byte[] bytes,
int p,
int end,
org.jruby.util.ByteList str,
RegexpSupport.ErrorMode mode) |
static boolean |
RegexpSupport.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,
RegexpSupport.ErrorMode mode)
Unescape non-ascii elements in the given string, appending the results
to the given bytelist if provided.
|
Copyright © 2001-2016 JRuby. All Rights Reserved.