public class RubyString extends RubyObject implements EncodingCapable, MarshalEncoding
| Modifier and Type | Class and Description |
|---|---|
private static class |
RubyString.EmptyByteListHolder
Encoding aware String construction routines for 1.9
|
private static class |
RubyString.NeighborChar |
private static class |
RubyString.TR |
private static class |
RubyString.TrTables |
RubyObject.DataRubyBasicObject.Finalizer| Modifier and Type | Field and Description |
|---|---|
private static org.jcodings.specific.ASCIIEncoding |
ASCII |
private static org.jruby.util.ByteList |
EMPTY_ASCII8BIT_BYTELIST |
private static byte[] |
EMPTY_BYTE_ARRAY |
private static RubyString.EmptyByteListHolder[] |
EMPTY_BYTELISTS |
private static org.jruby.util.ByteList |
EMPTY_USASCII_BYTELIST |
private static java.lang.String[][] |
opTable18 |
private static java.lang.String[][] |
opTable19 |
private static int |
SHARE_LEVEL_BUFFER |
private static int |
SHARE_LEVEL_BYTELIST |
private static int |
SHARE_LEVEL_NONE |
private int |
shareLevel |
private static org.jruby.util.ByteList |
SPACE_BYTELIST |
private static ObjectAllocator |
STRING_ALLOCATOR |
private static int |
TRANS_SIZE |
private static org.jcodings.specific.UTF8Encoding |
UTF8 |
private org.jruby.util.ByteList |
value |
FIELD_ALLOCATED_CLASSES, FIELD_ALLOCATORS, IVAR_INSPECTING_OBJECT_ALLOCATOR, OBJECT_ALLOCATOR, OBJECT_VAR0_ALLOCATOR, OBJECT_VAR1_ALLOCATOR, OBJECT_VAR2_ALLOCATOR, OBJECT_VAR3_ALLOCATOR, OBJECT_VAR4_ALLOCATOR, OBJECT_VAR5_ALLOCATOR, OBJECT_VAR6_ALLOCATOR, OBJECT_VAR7_ALLOCATOR, OBJECT_VAR8_ALLOCATOR, OBJECT_VAR9_ALLOCATOR, REIFYING_OBJECT_ALLOCATORALL_F, BASICOBJECT_ALLOCATOR, COMPARE_BY_IDENTITY_F, ERR_INSECURE_SET_INST_VAR, FALSE_F, FL_USHIFT, flags, FROZEN_F, metaClass, NEVER, NIL_F, STAMP_OFFSET, TAINTED_F, UNDEF, UNTRUSTED_F, USER0_F, USER1_F, USER2_F, USER3_F, USER4_F, USER5_F, USER6_F, USER7_F, USER8_F, VAR_TABLE_OFFSET, varTable, varTableStampNULL_ARRAY| Modifier | Constructor and Description |
|---|---|
|
RubyString(Ruby runtime,
RubyClass rubyClass) |
|
RubyString(Ruby runtime,
RubyClass rubyClass,
byte[] value) |
|
RubyString(Ruby runtime,
RubyClass rubyClass,
org.jruby.util.ByteList value) |
|
RubyString(Ruby runtime,
RubyClass rubyClass,
org.jruby.util.ByteList value,
boolean objectSpace) |
protected |
RubyString(Ruby runtime,
RubyClass rubyClass,
org.jruby.util.ByteList value,
org.jcodings.Encoding enc) |
|
RubyString(Ruby runtime,
RubyClass rubyClass,
org.jruby.util.ByteList value,
org.jcodings.Encoding encoding,
boolean objectSpace) |
protected |
RubyString(Ruby runtime,
RubyClass rubyClass,
org.jruby.util.ByteList value,
org.jcodings.Encoding enc,
int cr) |
protected |
RubyString(Ruby runtime,
RubyClass rubyClass,
org.jruby.util.ByteList value,
int cr) |
|
RubyString(Ruby runtime,
RubyClass rubyClass,
java.lang.CharSequence value) |
|
RubyString(Ruby runtime,
RubyClass rubyClass,
java.lang.CharSequence value,
org.jcodings.Encoding defaultEncoding) |
| Modifier and Type | Method and Description |
|---|---|
private org.jruby.util.ByteList |
addByteLists(org.jruby.util.ByteList value1,
org.jruby.util.ByteList value2) |
RubyString |
append(IRubyObject other)
rb_str_append
|
RubyString |
append19(IRubyObject other) |
IRubyObject |
ascii_only_p(ThreadContext context) |
java.lang.String |
asJavaString()
rb_to_id
|
void |
associateEncoding(org.jcodings.Encoding enc) |
RubyString |
asString()
rb_obj_as_string
First converts this object into a String using the "to_s"
method, infects it with the current taint and returns it.
|
private RubyArray |
awkSplit(boolean limit,
int lim,
int i) |
private RubyArray |
awkSplit19(boolean limit,
int lim,
int i) |
IRubyObject |
b(ThreadContext context) |
private IRubyObject |
byteARef(Ruby runtime,
IRubyObject idx) |
static java.lang.String |
byteListToString(org.jruby.util.ByteList bytes) |
IRubyObject |
bytes(ThreadContext context,
Block block) |
RubyFixnum |
bytesize() |
IRubyObject |
byteslice(ThreadContext context,
IRubyObject arg) |
IRubyObject |
byteslice(ThreadContext context,
IRubyObject arg1,
IRubyObject arg2) |
static java.lang.String |
bytesToString(byte[] bytes) |
static java.lang.String |
bytesToString(byte[] bytes,
int beg,
int len) |
private IRubyObject |
byteSubstr(Ruby runtime,
int beg,
int len) |
IRubyObject |
capitalize_bang(ThreadContext context) |
IRubyObject |
capitalize_bang19(ThreadContext context) |
IRubyObject |
capitalize(ThreadContext context)
rb_str_capitalize / rb_str_capitalize_bang
|
IRubyObject |
capitalize19(ThreadContext context) |
IRubyObject |
casecmp(ThreadContext context,
IRubyObject other) |
IRubyObject |
casecmp19(ThreadContext context,
IRubyObject other) |
RubyString |
cat(byte ch) |
RubyString |
cat(byte[] str) |
RubyString |
cat(byte[] str,
int beg,
int len) |
int |
cat(byte[] bytes,
int p,
int len,
org.jcodings.Encoding enc) |
int |
cat(byte[] bytes,
int p,
int len,
org.jcodings.Encoding enc,
int ptr_cr)
Deprecated.
|
RubyString |
cat(org.jruby.util.ByteList str) |
RubyString |
cat(int ch) |
RubyString |
cat(int code,
org.jcodings.Encoding enc) |
RubyString |
cat(RubyString str) |
int |
cat19(org.jruby.util.ByteList other,
int codeRange) |
RubyString |
cat19(RubyString str2) |
RubyString |
catAscii(byte[] bytes,
int p,
int len) |
IRubyObject |
center(IRubyObject arg0)
rb_str_center
|
IRubyObject |
center(IRubyObject arg0,
IRubyObject arg1) |
IRubyObject |
center19(IRubyObject arg0) |
IRubyObject |
center19(IRubyObject arg0,
IRubyObject arg1) |
IRubyObject |
chars18(ThreadContext context,
Block block) |
IRubyObject |
chars19(ThreadContext context,
Block block) |
private long |
checkBase(IRubyObject arg0) |
private org.jcodings.Encoding |
checkDummyEncoding() |
(package private) org.jcodings.Encoding |
checkEncoding(EncodingCapable other) |
org.jcodings.Encoding |
checkEncoding(RubyString other) |
private int |
checkIndex(int beg,
int len) |
private int |
checkIndexForRef(int beg,
int len) |
private int |
checkLength(int len) |
private RubySymbol |
checkSpecialCasesIntern(org.jruby.util.ByteList value) |
IRubyObject |
checkStringType()
rb_check_string_type
Tries to return a coerced string representation of this object,
using "to_str".
|
IRubyObject |
checkStringType19()
rb_check_string_type
Tries to return a coerced string representation of this object,
using "to_str".
|
IRubyObject |
chomp_bang(ThreadContext context)
rb_str_chomp_bang
In the common case, removes CR and LF characters in various ways depending on the value of
the optional args[0].
|
IRubyObject |
chomp_bang(ThreadContext context,
IRubyObject arg0) |
IRubyObject |
chomp_bang19(ThreadContext context) |
IRubyObject |
chomp_bang19(ThreadContext context,
IRubyObject arg0) |
RubyString |
chomp(ThreadContext context)
rb_str_chop
|
RubyString |
chomp(ThreadContext context,
IRubyObject arg0) |
RubyString |
chomp19(ThreadContext context) |
RubyString |
chomp19(ThreadContext context,
IRubyObject arg0) |
private IRubyObject |
chompBangCommon(Ruby runtime,
IRubyObject rsObj) |
private IRubyObject |
chompBangCommon19(Ruby runtime,
IRubyObject rsObj) |
IRubyObject |
chop_bang(ThreadContext context) |
IRubyObject |
chop_bang19(ThreadContext context) |
IRubyObject |
chop(ThreadContext context)
rb_str_chop / rb_str_chop_bang
|
IRubyObject |
chop19(ThreadContext context) |
private int |
choppedLength() |
private int |
choppedLength19(Ruby runtime) |
IRubyObject |
chr(ThreadContext context) |
RubyString |
clear() |
void |
clearCodeRange() |
IRubyObject |
codepoints(ThreadContext context,
Block block) |
(package private) static int |
codeRangeAnd(int cr1,
int cr2) |
int |
compareTo(IRubyObject other)
Compares this Ruby object with another.
|
RubyString |
concat(IRubyObject other)
rb_str_concat
|
RubyString |
concat19(ThreadContext context,
IRubyObject other) |
private RubyString |
concatNumeric(Ruby runtime,
int c) |
RubyString |
convertToString()
Tries to convert this object to a Ruby String using the
"to_str" method.
|
private void |
copyCodeRange(RubyString from) |
private void |
copyCodeRangeForSubstr(RubyString from,
org.jcodings.Encoding enc) |
IRubyObject |
count(ThreadContext context)
rb_str_count
|
IRubyObject |
count(ThreadContext context,
IRubyObject arg) |
IRubyObject |
count(ThreadContext context,
IRubyObject[] args) |
IRubyObject |
count19(ThreadContext context) |
IRubyObject |
count19(ThreadContext context,
IRubyObject arg) |
IRubyObject |
count19(ThreadContext context,
IRubyObject[] args) |
private IRubyObject |
countCommon(Ruby runtime,
boolean[] table) |
private IRubyObject |
countCommon19(Ruby runtime,
boolean[] table,
RubyString.TrTables tables,
org.jcodings.Encoding enc) |
static RubyClass |
createStringClass(Ruby runtime) |
RubyString |
crypt(ThreadContext context,
IRubyObject other)
rb_str_crypt
|
java.lang.String |
decodeString()
Convert this Ruby string to a Java String.
|
IRubyObject |
delete_bang(ThreadContext context) |
IRubyObject |
delete_bang(ThreadContext context,
IRubyObject arg) |
IRubyObject |
delete_bang(ThreadContext context,
IRubyObject[] args) |
IRubyObject |
delete_bang19(ThreadContext context) |
IRubyObject |
delete_bang19(ThreadContext context,
IRubyObject arg) |
IRubyObject |
delete_bang19(ThreadContext context,
IRubyObject[] args) |
private IRubyObject |
delete_bangCommon(Ruby runtime,
boolean[] squeeze) |
private IRubyObject |
delete_bangCommon19(Ruby runtime,
boolean[] squeeze,
RubyString.TrTables tables,
org.jcodings.Encoding enc) |
IRubyObject |
delete(ThreadContext context)
rb_str_delete / rb_str_delete_bang
|
IRubyObject |
delete(ThreadContext context,
IRubyObject arg) |
IRubyObject |
delete(ThreadContext context,
IRubyObject[] args) |
IRubyObject |
delete19(ThreadContext context) |
IRubyObject |
delete19(ThreadContext context,
IRubyObject arg) |
IRubyObject |
delete19(ThreadContext context,
IRubyObject[] args) |
IRubyObject |
doClone() |
IRubyObject |
downcase_bang(ThreadContext context) |
IRubyObject |
downcase_bang19(ThreadContext context) |
RubyString |
downcase(ThreadContext context)
rb_str_downcase / rb_str_downcase_bang
|
RubyString |
downcase19(ThreadContext context) |
IRubyObject |
dump()
rb_str_dump
|
IRubyObject |
dump19() |
private IRubyObject |
dumpCommon(boolean is1_9) |
IRubyObject |
dup()
Overridden dup for fast-path logic.
|
RubyString |
each_byte(ThreadContext context,
Block block)
rb_str_each_byte
|
IRubyObject |
each_byte19(ThreadContext context,
Block block) |
IRubyObject |
each_char18(ThreadContext context,
Block block)
rb_str_each_char
|
IRubyObject |
each_char19(ThreadContext context,
Block block) |
private IRubyObject |
each_charCommon18(ThreadContext context,
Block block) |
private IRubyObject |
each_charCommon19(ThreadContext context,
Block block) |
IRubyObject |
each_codepoint(ThreadContext context,
Block block)
rb_str_each_codepoint
|
private IRubyObject |
each_codepointCommon(ThreadContext context,
Block block) |
IRubyObject |
each_line(ThreadContext context,
Block block)
rb_str_each_line
|
IRubyObject |
each_line(ThreadContext context,
IRubyObject arg,
Block block) |
IRubyObject |
each_line18(ThreadContext context,
Block block) |
IRubyObject |
each_line18(ThreadContext context,
IRubyObject arg,
Block block) |
IRubyObject |
each_line19(ThreadContext context,
Block block) |
IRubyObject |
each_line19(ThreadContext context,
IRubyObject arg,
Block block) |
IRubyObject |
each_lineCommon(ThreadContext context,
IRubyObject sep,
Block block) |
private IRubyObject |
each_lineCommon19(ThreadContext context,
Block block) |
private IRubyObject |
each_lineCommon19(ThreadContext context,
IRubyObject sep,
Block block) |
IRubyObject |
each18(ThreadContext context,
Block block) |
IRubyObject |
each18(ThreadContext context,
IRubyObject arg,
Block block) |
RubyBoolean |
empty_p(ThreadContext context)
rb_str_empty
|
void |
empty() |
IRubyObject |
encode_bang(ThreadContext context,
IRubyObject arg0) |
IRubyObject |
encode_bang(ThreadContext context,
IRubyObject[] args) |
IRubyObject |
encode_bang(ThreadContext context,
IRubyObject arg0,
IRubyObject arg1) |
IRubyObject |
encode_bang(ThreadContext context,
IRubyObject arg0,
IRubyObject arg1,
IRubyObject arg2) |
IRubyObject |
encode(ThreadContext context) |
IRubyObject |
encode(ThreadContext context,
IRubyObject arg) |
IRubyObject |
encode(ThreadContext context,
IRubyObject toEncoding,
IRubyObject arg) |
IRubyObject |
encode(ThreadContext context,
IRubyObject toEncoding,
IRubyObject forcedEncoding,
IRubyObject opts) |
private static org.jruby.util.ByteList |
encodeBytelist(java.lang.CharSequence value,
org.jcodings.Encoding encoding) |
IRubyObject |
encoding(ThreadContext context) |
IRubyObject |
end_with_p(ThreadContext context) |
IRubyObject |
end_with_p(ThreadContext context,
IRubyObject arg) |
IRubyObject |
end_with_p(ThreadContext context,
IRubyObject[] args) |
private boolean |
end_with_pCommon(IRubyObject arg) |
boolean |
eql(IRubyObject other)
short circuit for String key comparison
|
private boolean |
eql18(Ruby runtime,
IRubyObject other) |
private boolean |
eql19(Ruby runtime,
IRubyObject other) |
boolean |
equals(java.lang.Object other)
This method is just a wrapper around the Ruby "==" method,
provided so that RubyObjects can be used as keys in the Java
HashMap object underlying RubyHash.
|
private void |
exciseHead(int len)
Excises (removes) a slice of the string that starts at index zero
|
private void |
exciseTail(int len)
Excises (removes) a slice of the string that ends at the last byte in the string
|
private IRubyObject |
force_encoding(ThreadContext context,
org.jcodings.Encoding encoding) |
IRubyObject |
force_encoding(ThreadContext context,
IRubyObject enc) |
private void |
frozenCheck() |
private void |
frozenCheck(boolean runtimeError) |
IRubyObject |
getbyte(ThreadContext context,
IRubyObject index) |
org.jruby.util.ByteList |
getByteList() |
byte[] |
getBytes() |
int |
getCodeRange() |
(package private) static RubyString.EmptyByteListHolder |
getEmptyByteList(org.jcodings.Encoding enc) |
org.jcodings.Encoding |
getEncoding() |
private static org.jcodings.Encoding |
getEncoding(Ruby runtime,
IRubyObject toEnc) |
private org.jcodings.Encoding |
getEncodingForKCodeDefault(Ruby runtime,
org.joni.Regex pattern,
IRubyObject pat) |
java.lang.Class |
getJavaClass()
Will return the Java interface that most closely can represent
this object, when working through JAva integration
translations.
|
org.jcodings.Encoding |
getMarshalEncoding() |
int |
getNativeTypeIndex()
This is overridden in the other concrete Java builtins to provide a fast way
to determine what type they are.
|
private RubyRegexp |
getPattern(IRubyObject obj)
get_pat (used by match/match19)
|
private org.joni.Regex |
getQuotedPattern(IRubyObject obj) |
private RubyString |
getStringForPattern(IRubyObject obj) |
private org.joni.Regex |
getStringPattern(Ruby runtime,
org.jcodings.Encoding enc,
IRubyObject obj) |
private org.joni.Regex |
getStringPattern19(Ruby runtime,
IRubyObject obj) |
java.lang.String |
getUnicodeValue()
used by ar-jdbc
|
java.lang.CharSequence |
getValue() |
IRubyObject |
gsub_bang(ThreadContext context,
IRubyObject arg0,
Block block) |
IRubyObject |
gsub_bang(ThreadContext context,
IRubyObject arg0,
IRubyObject arg1,
Block block) |
IRubyObject |
gsub_bang19(ThreadContext context,
IRubyObject arg0,
Block block) |
IRubyObject |
gsub_bang19(ThreadContext context,
IRubyObject arg0,
IRubyObject arg1,
Block block) |
IRubyObject |
gsub(ThreadContext context,
IRubyObject arg0,
Block block)
rb_str_gsub / rb_str_gsub_bang
|
private IRubyObject |
gsub(ThreadContext context,
IRubyObject arg0,
Block block,
boolean bang) |
IRubyObject |
gsub(ThreadContext context,
IRubyObject arg0,
IRubyObject arg1,
Block block) |
private IRubyObject |
gsub(ThreadContext context,
IRubyObject arg0,
IRubyObject arg1,
Block block,
boolean bang) |
IRubyObject |
gsub19(ThreadContext context,
IRubyObject arg0,
Block block) |
IRubyObject |
gsub19(ThreadContext context,
IRubyObject arg0,
IRubyObject arg1,
Block block) |
private IRubyObject |
gsub19(ThreadContext context,
IRubyObject arg0,
IRubyObject arg1,
Block block,
boolean bang) |
private IRubyObject |
gsubCommon(ThreadContext context,
boolean bang,
IRubyObject arg,
Block block,
RubyString repl,
int tuFlags) |
private IRubyObject |
gsubCommon19(ThreadContext context,
Block block,
RubyString repl,
RubyHash hash,
IRubyObject arg0,
boolean bang,
int tuFlags) |
private IRubyObject |
gsubCommon19(ThreadContext context,
Block block,
RubyString repl,
RubyHash hash,
IRubyObject arg0,
boolean bang,
int tuFlags,
boolean useBackref) |
RubyFixnum |
hash()
rb_obj_id
Will return the hash code of this object.
|
int |
hashCode()
Override the Object#hashCode method to make sure that the Ruby
hash is actually used as the hashcode for Ruby objects.
|
IRubyObject |
hex(ThreadContext context)
rb_str_hex
|
IRubyObject |
hex19(ThreadContext context) |
RubyBoolean |
include_p(ThreadContext context,
IRubyObject obj)
rb_str_include
|
RubyBoolean |
include_p19(ThreadContext context,
IRubyObject obj) |
boolean |
independent() |
IRubyObject |
index(ThreadContext context,
IRubyObject arg0)
rb_str_index_m
|
IRubyObject |
index(ThreadContext context,
IRubyObject arg0,
IRubyObject arg1) |
IRubyObject |
index19(ThreadContext context,
IRubyObject arg0) |
IRubyObject |
index19(ThreadContext context,
IRubyObject arg0,
IRubyObject arg1) |
private IRubyObject |
indexCommon(Ruby runtime,
ThreadContext context,
IRubyObject sub,
int pos) |
private IRubyObject |
indexCommon19(Ruby runtime,
ThreadContext context,
IRubyObject sub,
int pos) |
(package private) static int |
indexOf(byte[] source,
int sourceOffset,
int sourceCount,
byte[] target,
int targetOffset,
int targetCount,
int fromIndex) |
IRubyObject |
initialize_copy(IRubyObject other)
rb_obj_init_copy
Initializes this object as a copy of the original, that is the
parameter to this object.
|
RubyString |
initialize_copy19(IRubyObject other) |
IRubyObject |
initialize(ThreadContext context) |
IRubyObject |
initialize(ThreadContext context,
IRubyObject arg0) |
IRubyObject |
initialize19(ThreadContext context) |
IRubyObject |
initialize19(ThreadContext context,
IRubyObject arg0) |
IRubyObject |
insert(ThreadContext context,
IRubyObject indexArg,
IRubyObject stringArg) |
IRubyObject |
insert19(ThreadContext context,
IRubyObject indexArg,
IRubyObject stringArg) |
IRubyObject |
inspect()
rb_str_inspect
|
IRubyObject |
inspect19() |
RubySymbol |
intern() |
RubySymbol |
intern19() |
boolean |
isAsciiOnly() |
boolean |
isCodeRangeAsciiOnly() |
boolean |
isCodeRangeBroken() |
boolean |
isCodeRangeValid() |
private boolean |
isComparableViaCodeRangeWith(RubyString other) |
private boolean |
isComparableWith(RubyString other) |
(package private) org.jcodings.Encoding |
isCompatibleWith(EncodingCapable other) |
private org.jcodings.Encoding |
isCompatibleWith(RubyString other) |
boolean |
isEmpty() |
private boolean |
isEVStr(byte[] bytes,
int p,
int end) |
boolean |
isEVStr(int c) |
private boolean |
isHeadSlice(int beg,
int len) |
private boolean |
isTailSlice(int beg,
int len) |
private IRubyObject |
justify(IRubyObject arg0,
int jflag) |
private IRubyObject |
justify(IRubyObject arg0,
IRubyObject arg1,
int jflag) |
private IRubyObject |
justify19(IRubyObject arg0,
int jflag) |
private IRubyObject |
justify19(IRubyObject arg0,
IRubyObject arg1,
int jflag) |
private RubyString |
justifyCommon(Ruby runtime,
org.jruby.util.ByteList pad,
int padCharLen,
boolean padSinglebyte,
org.jcodings.Encoding enc,
int width,
int jflag) |
private RubyString |
justifyCommon(Ruby runtime,
org.jruby.util.ByteList pad,
int width,
int jflag) |
private void |
keepCodeRange() |
RubyFixnum |
length()
rb_str_length
|
RubyFixnum |
length19() |
IRubyObject |
lines(ThreadContext context,
Block block) |
IRubyObject |
lines(ThreadContext context,
IRubyObject arg,
Block block) |
IRubyObject |
lines18(ThreadContext context,
Block block) |
IRubyObject |
lines18(ThreadContext context,
IRubyObject arg,
Block block) |
IRubyObject |
lines20(ThreadContext context,
Block block) |
IRubyObject |
lines20(ThreadContext context,
IRubyObject arg,
Block block) |
IRubyObject |
ljust(IRubyObject arg0)
rb_str_ljust
|
IRubyObject |
ljust(IRubyObject arg0,
IRubyObject arg1) |
IRubyObject |
ljust19(IRubyObject arg0) |
IRubyObject |
ljust19(IRubyObject arg0,
IRubyObject arg1) |
IRubyObject |
lstrip_bang(ThreadContext context) |
IRubyObject |
lstrip_bang19(ThreadContext context) |
IRubyObject |
lstrip(ThreadContext context)
rb_str_lstrip / rb_str_lstrip_bang
|
IRubyObject |
lstrip19(ThreadContext context) |
RubyString |
makeIndependent() |
RubyString |
makeShared(Ruby runtime,
int index,
int len) |
RubyString |
makeShared(Ruby runtime,
RubyClass meta,
int index,
int len) |
private RubyString |
makeShared19(Ruby runtime,
org.jruby.util.ByteList value,
int index,
int len) |
RubyString |
makeShared19(Ruby runtime,
int index,
int len) |
private RubyString |
makeShared19(Ruby runtime,
RubyClass meta,
org.jruby.util.ByteList value,
int index,
int len) |
RubyString |
makeShared19(Ruby runtime,
RubyClass meta,
int index,
int len) |
RubyString |
makeSharedString(Ruby runtime,
int index,
int len) |
RubyString |
makeSharedString19(Ruby runtime,
int index,
int len) |
IRubyObject |
match(ThreadContext context,
IRubyObject pattern)
String#match(pattern)
rb_str_match_m
|
IRubyObject |
match19(ThreadContext context,
IRubyObject[] args,
Block block) |
IRubyObject |
match19(ThreadContext context,
IRubyObject pattern,
Block block) |
void |
modify()
rb_str_modify
|
void |
modify(int length)
rb_str_modify (with length bytes ensured)
|
void |
modify19() |
void |
modify19(int length) |
private void |
modifyAndKeepCodeRange() |
void |
modifyCheck()
Check that the string can be modified, raising error otherwise.
|
private void |
modifyCheck(byte[] b,
int len) |
private void |
modifyCheck(byte[] b,
int len,
org.jcodings.Encoding enc) |
private IRubyObject |
multiByteCasecmp(Ruby runtime,
org.jcodings.Encoding enc,
org.jruby.util.ByteList value,
org.jruby.util.ByteList otherValue) |
private IRubyObject |
multiByteDowncase(Ruby runtime,
org.jcodings.Encoding enc,
byte[] bytes,
int s,
int end) |
private IRubyObject |
multiByteLStrip(Ruby runtime,
org.jcodings.Encoding enc,
byte[] bytes,
int s,
int end) |
private IRubyObject |
multiByteRStrip19(Ruby runtime) |
private IRubyObject |
multibyteSubstr19(Ruby runtime,
org.jcodings.Encoding enc,
int len,
int beg,
int length) |
private IRubyObject |
multiByteSwapcase(Ruby runtime,
org.jcodings.Encoding enc,
byte[] bytes,
int s,
int end) |
private IRubyObject |
multiByteUpcase(Ruby runtime,
org.jcodings.Encoding enc,
byte[] bytes,
int s,
int end) |
private RubyString |
multiplyByteList(ThreadContext context,
IRubyObject arg) |
static RubyString |
newAllocatedString(Ruby runtime,
RubyClass metaClass) |
static RubyString |
newEmptyString(Ruby runtime) |
static RubyString |
newEmptyString(Ruby runtime,
org.jcodings.Encoding enc) |
static RubyString |
newEmptyString(Ruby runtime,
RubyClass metaClass) |
static RubyString |
newEmptyString(Ruby runtime,
RubyClass metaClass,
org.jcodings.Encoding enc) |
static RubyString |
newInstance(IRubyObject recv,
IRubyObject[] args,
Block block)
rb_str_s_new
|
static RubyString |
newInternalFromJavaExternal(Ruby runtime,
java.lang.String str)
Return a new Ruby String encoded as the default internal encoding given a Java String that
has come from an external source.
|
RubyString |
newString(org.jruby.util.ByteList s)
Deprecated.
|
RubyString |
newString(java.lang.CharSequence s)
Deprecated.
|
static RubyString |
newString(Ruby runtime,
byte[] bytes) |
static RubyString |
newString(Ruby runtime,
byte[] bytes,
int start,
int length) |
static RubyString |
newString(Ruby runtime,
org.jruby.util.ByteList bytes) |
static RubyString |
newString(Ruby runtime,
org.jruby.util.ByteList bytes,
org.jcodings.Encoding encoding) |
static RubyString |
newString(Ruby runtime,
java.lang.CharSequence str) |
static RubyString |
newString(Ruby runtime,
RubyClass clazz,
java.lang.CharSequence str)
Deprecated.
|
static RubyString |
newString(Ruby runtime,
java.lang.String str) |
static RubyString |
newStringLight(Ruby runtime,
org.jruby.util.ByteList bytes) |
static RubyString |
newStringLight(Ruby runtime,
int size) |
static RubyString |
newStringLight(Ruby runtime,
int size,
org.jcodings.Encoding encoding) |
static RubyString |
newStringNoCopy(Ruby runtime,
byte[] bytes) |
static RubyString |
newStringNoCopy(Ruby runtime,
byte[] bytes,
int start,
int length) |
static RubyString |
newStringNoCopy(Ruby runtime,
org.jruby.util.ByteList bytes) |
static RubyString |
newStringNoCopy(Ruby runtime,
org.jruby.util.ByteList bytes,
org.jcodings.Encoding enc,
int cr) |
static RubyString |
newStringNoCopy(Ruby runtime,
RubyClass clazz,
org.jruby.util.ByteList bytes) |
static RubyString |
newStringNoCopy(Ruby runtime,
RubyClass clazz,
org.jruby.util.ByteList bytes,
org.jcodings.Encoding enc,
int cr) |
static RubyString |
newStringShared(Ruby runtime,
byte[] bytes) |
static RubyString |
newStringShared(Ruby runtime,
byte[] bytes,
org.jcodings.Encoding encoding) |
static RubyString |
newStringShared(Ruby runtime,
byte[] bytes,
int start,
int length) |
static RubyString |
newStringShared(Ruby runtime,
byte[] bytes,
int start,
int length,
org.jcodings.Encoding encoding) |
static RubyString |
newStringShared(Ruby runtime,
org.jruby.util.ByteList bytes) |
static RubyString |
newStringShared(Ruby runtime,
org.jruby.util.ByteList bytes,
org.jcodings.Encoding encoding) |
static RubyString |
newStringShared(Ruby runtime,
org.jruby.util.ByteList bytes,
int codeRange) |
static RubyString |
newStringShared(Ruby runtime,
RubyClass clazz,
org.jruby.util.ByteList bytes) |
static RubyString |
newStringShared(Ruby runtime,
RubyClass clazz,
org.jruby.util.ByteList bytes,
org.jcodings.Encoding encoding) |
static RubyString |
newStringShared(Ruby runtime,
RubyString orig) |
static RubyString |
newUnicodeString(Ruby runtime,
java.lang.CharSequence str) |
static RubyString |
newUnicodeString(Ruby runtime,
java.lang.String str) |
static RubyString |
newUSASCIIString(Ruby runtime,
java.lang.String str) |
static RubyString |
newUsAsciiStringNoCopy(Ruby runtime,
org.jruby.util.ByteList bytes) |
static RubyString |
newUsAsciiStringShared(Ruby runtime,
byte[] bytes,
int start,
int length) |
static RubyString |
newUsAsciiStringShared(Ruby runtime,
org.jruby.util.ByteList bytes) |
static RubyString |
newUTF16String(Ruby runtime,
java.lang.CharSequence str) |
static RubyString |
newUTF16String(Ruby runtime,
java.lang.String str) |
static RubyString |
newUTF8String(Ruby runtime,
java.lang.CharSequence str) |
static RubyString |
newUTF8String(Ruby runtime,
java.lang.String str) |
static RubyString |
objAsString(ThreadContext context,
IRubyObject obj)
rb_obj_as_string
|
IRubyObject |
oct(ThreadContext context)
rb_str_oct
|
IRubyObject |
oct19(ThreadContext context) |
private IRubyObject |
op_aref(Ruby runtime,
int idx) |
IRubyObject |
op_aref(ThreadContext context,
IRubyObject arg) |
IRubyObject |
op_aref(ThreadContext context,
IRubyObject arg1,
IRubyObject arg2)
rb_str_aref, rb_str_aref_m
|
private IRubyObject |
op_aref19(Ruby runtime,
int idx) |
IRubyObject |
op_aref19(ThreadContext context,
IRubyObject arg) |
IRubyObject |
op_aref19(ThreadContext context,
IRubyObject arg1,
IRubyObject arg2) |
private IRubyObject |
op_aset(ThreadContext context,
int idx,
IRubyObject arg1) |
IRubyObject |
op_aset(ThreadContext context,
IRubyObject arg0,
IRubyObject arg1)
rb_str_aset, rb_str_aset_m
|
IRubyObject |
op_aset(ThreadContext context,
IRubyObject arg0,
IRubyObject arg1,
IRubyObject arg2) |
private IRubyObject |
op_aset19(ThreadContext context,
int idx,
IRubyObject arg1) |
IRubyObject |
op_aset19(ThreadContext context,
IRubyObject arg0,
IRubyObject arg1) |
IRubyObject |
op_aset19(ThreadContext context,
IRubyObject arg0,
IRubyObject arg1,
IRubyObject arg2) |
int |
op_cmp(RubyString other)
rb_str_cmp
|
IRubyObject |
op_cmp(ThreadContext context,
IRubyObject other) |
int |
op_cmp19(RubyString other) |
IRubyObject |
op_cmp19(ThreadContext context,
IRubyObject other) |
private IRubyObject |
op_cmpCommon(ThreadContext context,
IRubyObject other) |
IRubyObject |
op_equal(ThreadContext context,
IRubyObject other)
rb_str_equal
|
IRubyObject |
op_equal19(ThreadContext context,
IRubyObject other) |
private IRubyObject |
op_equalCommon(ThreadContext context,
IRubyObject other) |
IRubyObject |
op_format(ThreadContext context,
IRubyObject arg) |
IRubyObject |
op_ge(ThreadContext context,
IRubyObject other) |
IRubyObject |
op_ge19(ThreadContext context,
IRubyObject other) |
IRubyObject |
op_gt(ThreadContext context,
IRubyObject other) |
IRubyObject |
op_gt19(ThreadContext context,
IRubyObject other) |
IRubyObject |
op_le(ThreadContext context,
IRubyObject other) |
IRubyObject |
op_le19(ThreadContext context,
IRubyObject other) |
IRubyObject |
op_lt(ThreadContext context,
IRubyObject other) |
IRubyObject |
op_lt19(ThreadContext context,
IRubyObject other) |
IRubyObject |
op_match(ThreadContext context,
IRubyObject other)
rb_str_match
|
IRubyObject |
op_match19(ThreadContext context,
IRubyObject other) |
IRubyObject |
op_mul(ThreadContext context,
IRubyObject other) |
IRubyObject |
op_mul19(ThreadContext context,
IRubyObject other) |
IRubyObject |
op_plus(ThreadContext context,
IRubyObject _str) |
IRubyObject |
op_plus19(ThreadContext context,
IRubyObject _str) |
private IRubyObject |
opFormatCommon(ThreadContext context,
IRubyObject arg,
CompatVersion compat) |
IRubyObject |
ord(ThreadContext context) |
IRubyObject |
partition(ThreadContext context,
Block block) |
IRubyObject |
partition(ThreadContext context,
IRubyObject arg,
Block block) |
private IRubyObject |
partitionMismatch(Ruby runtime) |
private IRubyObject |
populateCapturesForScan(Ruby runtime,
org.joni.Matcher matcher,
int range,
int tuFlags,
boolean is19) |
private void |
populateCapturesForSplit(Ruby runtime,
RubyArray result,
org.joni.Matcher matcher,
boolean is19) |
private int |
positionEnd(org.joni.Matcher matcher,
org.jcodings.Encoding enc,
int begin,
int range) |
private static RubyString.NeighborChar |
predChar(org.jcodings.Encoding enc,
byte[] bytes,
int p,
int len) |
private void |
prefixEscapeCat(int c) |
private static RubyString.EmptyByteListHolder |
prepareEmptyByteList(org.jcodings.Encoding enc) |
IRubyObject |
prepend(ThreadContext context,
IRubyObject other)
rb_str_prepend
|
private void |
raiseIndexOutOfString(int index) |
private RubyArray |
regexSplit(ThreadContext context,
IRubyObject pat,
boolean limit,
int lim,
int i) |
private RubyArray |
regexSplit19(ThreadContext context,
org.joni.Regex pattern,
org.joni.Regex prepared,
boolean limit,
int lim,
int i,
boolean useBackref) |
IRubyObject |
replace(IRubyObject other)
rb_str_replace_m
|
RubyString |
replace19(IRubyObject other) |
private RubyString |
replaceCommon(IRubyObject other) |
private IRubyObject |
replaceInternal(int beg,
int len,
RubyString repl) |
private void |
replaceInternal19(int beg,
int len,
RubyString repl) |
void |
resize(int length)
rb_str_resize
|
RubyString |
reverse_bang(ThreadContext context) |
RubyString |
reverse_bang19(ThreadContext context) |
IRubyObject |
reverse(ThreadContext context) |
IRubyObject |
reverse19(ThreadContext context) |
IRubyObject |
rindex(ThreadContext context,
IRubyObject arg0)
rb_str_rindex_m
|
IRubyObject |
rindex(ThreadContext context,
IRubyObject arg0,
IRubyObject arg1) |
IRubyObject |
rindex19(ThreadContext context,
IRubyObject arg0) |
IRubyObject |
rindex19(ThreadContext context,
IRubyObject arg0,
IRubyObject arg1) |
private IRubyObject |
rindexCommon(Ruby runtime,
ThreadContext context,
IRubyObject sub,
int pos) |
private IRubyObject |
rindexCommon19(Ruby runtime,
ThreadContext context,
IRubyObject sub,
int pos) |
IRubyObject |
rjust(IRubyObject arg0)
rb_str_rjust
|
IRubyObject |
rjust(IRubyObject arg0,
IRubyObject arg1) |
IRubyObject |
rjust19(IRubyObject arg0) |
IRubyObject |
rjust19(IRubyObject arg0,
IRubyObject arg1) |
IRubyObject |
rpartition(ThreadContext context,
IRubyObject arg) |
private IRubyObject |
rpartitionMismatch(Ruby runtime) |
IRubyObject |
rstrip_bang(ThreadContext context) |
IRubyObject |
rstrip_bang19(ThreadContext context) |
IRubyObject |
rstrip(ThreadContext context)
rb_str_rstrip / rb_str_rstrip_bang
|
IRubyObject |
rstrip19(ThreadContext context) |
IRubyObject |
scan(ThreadContext context,
IRubyObject arg,
Block block)
rb_str_scan
|
IRubyObject |
scan19(ThreadContext context,
IRubyObject arg,
Block block) |
int |
scanForCodeRange() |
private IRubyObject |
scanIter(ThreadContext context,
org.joni.Regex pattern,
org.joni.Matcher matcher,
org.jcodings.Encoding enc,
Block block,
int begin,
int range,
int tuFlags) |
private IRubyObject |
scanIter19(ThreadContext context,
org.joni.Regex pattern,
org.joni.Regex prepared,
org.jcodings.Encoding enc,
Block block,
RubyRegexp regexp,
int tuFlags) |
private IRubyObject |
scanNoIter(ThreadContext context,
org.joni.Regex pattern,
org.joni.Matcher matcher,
org.jcodings.Encoding enc,
int begin,
int range,
int tuFlags) |
private IRubyObject |
scanNoIter19(ThreadContext context,
org.joni.Regex pattern,
org.joni.Regex prepared,
org.jcodings.Encoding enc,
RubyRegexp regexp,
int tuFlags) |
IRubyObject |
setbyte(ThreadContext context,
IRubyObject index,
IRubyObject val) |
void |
setByteListShared() |
void |
setCodeRange(int codeRange) |
void |
setEncoding(org.jcodings.Encoding encoding) |
void |
setEncodingAndCodeRange(org.jcodings.Encoding enc,
int cr) |
void |
setValue(org.jruby.util.ByteList value) |
void |
setValue(java.lang.CharSequence value)
Deprecated.
|
boolean |
shouldMarshalEncoding() |
private IRubyObject |
singleByteDowncase(Ruby runtime,
byte[] bytes,
int s,
int end) |
private IRubyObject |
singleByteLStrip(Ruby runtime,
byte[] bytes,
int s,
int end) |
(package private) boolean |
singleByteOptimizable() |
(package private) boolean |
singleByteOptimizable(org.jcodings.Encoding enc) |
private IRubyObject |
singleByteRStrip(Ruby runtime,
byte[] bytes,
int s,
int end) |
private IRubyObject |
singleByteRStrip19(Ruby runtime) |
private IRubyObject |
singleByteStrip(Ruby runtime,
byte[] bytes,
int s,
int end) |
private IRubyObject |
singleByteSwapcase(Ruby runtime,
byte[] bytes,
int s,
int end) |
private IRubyObject |
singleByteUpcase(Ruby runtime,
byte[] bytes,
int s,
int end) |
int |
size() |
private static boolean |
sizeIsSmaller(org.jruby.util.ByteList byteList,
int offset,
org.jruby.util.ByteList other) |
IRubyObject |
slice_bang(ThreadContext context,
IRubyObject arg0)
rb_str_slice_bang
|
IRubyObject |
slice_bang(ThreadContext context,
IRubyObject arg0,
IRubyObject arg1) |
IRubyObject |
slice_bang19(ThreadContext context,
IRubyObject arg0) |
IRubyObject |
slice_bang19(ThreadContext context,
IRubyObject arg0,
IRubyObject arg1) |
private IRubyObject |
smartChopBangCommon(Ruby runtime) |
private IRubyObject |
smartChopBangCommon19(Ruby runtime) |
RubyArray |
split(ThreadContext context)
rb_str_split_m
|
RubyArray |
split(ThreadContext context,
IRubyObject arg0) |
RubyArray |
split(ThreadContext context,
IRubyObject arg0,
IRubyObject arg1) |
RubyArray |
split19(ThreadContext context) |
RubyArray |
split19(ThreadContext context,
IRubyObject arg0) |
RubyArray |
split19(ThreadContext context,
IRubyObject arg0,
boolean useBackref) |
RubyArray |
split19(ThreadContext context,
IRubyObject arg0,
IRubyObject arg1) |
private RubyArray |
splitCommon(IRubyObject spat,
boolean limit,
int lim,
int i,
ThreadContext context) |
private RubyArray |
splitCommon19(IRubyObject spat,
boolean limit,
int lim,
int i,
ThreadContext context,
boolean useBackref) |
IRubyObject |
squeeze_bang(ThreadContext context) |
IRubyObject |
squeeze_bang(ThreadContext context,
IRubyObject arg) |
IRubyObject |
squeeze_bang(ThreadContext context,
IRubyObject[] args) |
IRubyObject |
squeeze_bang19(ThreadContext context) |
IRubyObject |
squeeze_bang19(ThreadContext context,
IRubyObject arg) |
IRubyObject |
squeeze_bang19(ThreadContext context,
IRubyObject[] args) |
IRubyObject |
squeeze(ThreadContext context)
rb_str_squeeze / rb_str_squeeze_bang
|
IRubyObject |
squeeze(ThreadContext context,
IRubyObject arg) |
IRubyObject |
squeeze(ThreadContext context,
IRubyObject[] args) |
IRubyObject |
squeeze19(ThreadContext context) |
IRubyObject |
squeeze19(ThreadContext context,
IRubyObject arg) |
IRubyObject |
squeeze19(ThreadContext context,
IRubyObject[] args) |
private IRubyObject |
squeezeCommon(Ruby runtime,
boolean[] squeeze) |
private IRubyObject |
squeezeCommon19(Ruby runtime,
boolean[] squeeze,
RubyString.TrTables tables,
org.jcodings.Encoding enc,
boolean isArg) |
IRubyObject |
start_with_p(ThreadContext context) |
IRubyObject |
start_with_p(ThreadContext context,
IRubyObject arg) |
IRubyObject |
start_with_p(ThreadContext context,
IRubyObject[] args) |
private boolean |
start_with_pCommon(IRubyObject arg) |
IRubyObject |
str_eql_p(ThreadContext context,
IRubyObject other) |
IRubyObject |
str_eql_p19(ThreadContext context,
IRubyObject other) |
RubyString |
strDup()
Deprecated.
|
RubyString |
strDup(Ruby runtime) |
(package private) RubyString |
strDup(RubyClass clazz)
Deprecated.
|
(package private) RubyString |
strDup(Ruby runtime,
RubyClass clazz) |
int |
strHashCode(Ruby runtime)
Generate a hash for the String, using its associated Ruby instance's hash seed.
|
private int |
strIndex(RubyString sub,
int offset) |
private int |
strIndex19(RubyString sub,
int offset) |
private RubyArray |
stringSplit19(ThreadContext context,
RubyString spat,
boolean limit,
int lim,
int i) |
static byte[] |
stringToBytes(java.lang.String string) |
IRubyObject |
stringToInum(int base,
boolean badcheck)
rb_str_to_inum
|
IRubyObject |
stringToInum19(int base,
boolean badcheck) |
static RubyString |
stringValue(IRubyObject object) |
IRubyObject |
strip_bang(ThreadContext context) |
IRubyObject |
strip_bang19(ThreadContext context) |
IRubyObject |
strip(ThreadContext context)
rb_str_strip / rb_str_strip_bang
|
IRubyObject |
strip19(ThreadContext context) |
int |
strLength() |
private int |
strLength(org.jruby.util.ByteList bytes) |
private int |
strLength(org.jruby.util.ByteList bytes,
org.jcodings.Encoding enc) |
private int |
strLength(org.jcodings.Encoding enc) |
private int |
strRindex(RubyString sub,
int pos) |
private int |
strRindex19(RubyString sub,
int pos) |
IRubyObject |
sub_bang(ThreadContext context,
IRubyObject arg0,
Block block) |
IRubyObject |
sub_bang(ThreadContext context,
IRubyObject arg0,
IRubyObject arg1,
Block block) |
IRubyObject |
sub_bang19(ThreadContext context,
IRubyObject arg0,
Block block) |
IRubyObject |
sub_bang19(ThreadContext context,
IRubyObject arg0,
IRubyObject arg1,
Block block) |
IRubyObject |
sub(ThreadContext context,
IRubyObject arg0,
Block block)
rb_str_sub / rb_str_sub_bang
|
IRubyObject |
sub(ThreadContext context,
IRubyObject arg0,
IRubyObject arg1,
Block block) |
IRubyObject |
sub19(ThreadContext context,
IRubyObject arg0,
Block block) |
IRubyObject |
sub19(ThreadContext context,
IRubyObject arg0,
IRubyObject arg1,
Block block) |
private IRubyObject |
subBangCommon(ThreadContext context,
org.joni.Regex pattern,
org.joni.Matcher matcher,
RubyString repl,
int tuFlags) |
private IRubyObject |
subBangCommon19(ThreadContext context,
org.joni.Regex pattern,
org.joni.Matcher matcher,
RubyString repl,
int tuFlags) |
private IRubyObject |
subBangIter(ThreadContext context,
org.joni.Regex pattern,
Block block) |
private IRubyObject |
subBangIter19(Ruby runtime,
ThreadContext context,
org.joni.Regex pattern,
org.joni.Regex prepared,
RubyHash hash,
Block block,
RubyRegexp regexp) |
private IRubyObject |
subBangNoIter(ThreadContext context,
org.joni.Regex pattern,
RubyString repl) |
private IRubyObject |
subBangNoIter19(Ruby runtime,
ThreadContext context,
org.joni.Regex pattern,
org.joni.Regex prepared,
RubyString repl,
RubyRegexp regexp) |
private org.jcodings.Encoding |
subBangVerifyEncoding(ThreadContext context,
RubyString repl,
int beg,
int end) |
(package private) int |
subLength(int pos) |
private IRubyObject |
subpat(Ruby runtime,
ThreadContext context,
RubyRegexp regex,
int nth) |
private IRubyObject |
subpat19(Ruby runtime,
ThreadContext context,
RubyRegexp regex) |
private IRubyObject |
subpat19(Ruby runtime,
ThreadContext context,
RubyRegexp regex,
IRubyObject backref) |
private void |
subpatSet(ThreadContext context,
RubyRegexp regexp,
int nth,
IRubyObject repl)
rb_str_subpat_set
|
private void |
subpatSet19(ThreadContext context,
RubyRegexp regexp,
IRubyObject backref,
IRubyObject repl) |
private int |
subpatSetCheck(Ruby runtime,
int nth,
org.joni.Region regs) |
IRubyObject |
substr(int beg,
int len)
Deprecated.
|
IRubyObject |
substr(Ruby runtime,
int beg,
int len) |
IRubyObject |
substr19(Ruby runtime,
int beg,
int len) |
IRubyObject |
succ_bang() |
IRubyObject |
succ_bang19() |
IRubyObject |
succ(ThreadContext context) |
IRubyObject |
succ19(ThreadContext context) |
private static RubyString.NeighborChar |
succAlnumChar(org.jcodings.Encoding enc,
byte[] bytes,
int p,
int len,
byte[] carry,
int carryP) |
private static RubyString.NeighborChar |
succChar(org.jcodings.Encoding enc,
byte[] bytes,
int p,
int len) |
private org.jruby.util.ByteList |
succCommon19(org.jruby.util.ByteList original) |
IRubyObject |
sum(ThreadContext context) |
IRubyObject |
sum(ThreadContext context,
IRubyObject arg) |
IRubyObject |
sumCommon(ThreadContext context,
long bits) |
IRubyObject |
swapcase_bang(ThreadContext context) |
IRubyObject |
swapcase_bang19(ThreadContext context) |
RubyString |
swapcase(ThreadContext context)
rb_str_swapcase / rb_str_swapcase_bang
|
RubyString |
swapcase19(ThreadContext context) |
IRubyObject |
to_c(ThreadContext context)
string_to_c
|
IRubyObject |
to_f()
rb_str_to_f
|
IRubyObject |
to_f19() |
IRubyObject |
to_i()
rb_str_to_i
|
IRubyObject |
to_i(IRubyObject arg0)
rb_str_to_i
|
IRubyObject |
to_i19() |
IRubyObject |
to_i19(IRubyObject arg0) |
IRubyObject |
to_r(ThreadContext context)
string_to_r
|
IRubyObject |
to_s()
rb_any_to_s
call-seq:
obj.to_s => string
Returns a string representing obj.
|
private RubySymbol |
to_sym()
rb_str_intern
|
org.jcodings.Encoding |
toEncoding(Ruby runtime) |
java.lang.Object |
toJava(java.lang.Class target)
Convert the object to the specified Java class, if possible.
|
java.lang.String |
toString()
The default toString method is just a wrapper that calls the
Ruby "to_s" method.
|
IRubyObject |
tr_bang(ThreadContext context,
IRubyObject src,
IRubyObject repl) |
IRubyObject |
tr_bang19(ThreadContext context,
IRubyObject src,
IRubyObject repl) |
IRubyObject |
tr_s_bang(ThreadContext context,
IRubyObject src,
IRubyObject repl) |
IRubyObject |
tr_s_bang19(ThreadContext context,
IRubyObject src,
IRubyObject repl) |
IRubyObject |
tr_s(ThreadContext context,
IRubyObject src,
IRubyObject repl)
rb_str_tr_s / rb_str_tr_s_bang
|
IRubyObject |
tr_s19(ThreadContext context,
IRubyObject src,
IRubyObject repl) |
IRubyObject |
tr(ThreadContext context,
IRubyObject src,
IRubyObject repl)
rb_str_tr / rb_str_tr_bang
|
IRubyObject |
tr19(ThreadContext context,
IRubyObject src,
IRubyObject repl) |
private int |
trCode(int c,
int[] trans,
org.jcodings.util.IntHash<java.lang.Integer> hash,
boolean cflag,
int last,
boolean set) |
private boolean |
trFind(int c,
boolean[] table,
RubyString.TrTables tables) |
private int |
trNext(RubyString.TR t)
trnext
|
private int |
trNext(RubyString.TR t,
Ruby runtime,
org.jcodings.Encoding enc) |
private void |
trSetupTable(boolean[] table,
boolean init)
tr_setup_table
|
private RubyString.TrTables |
trSetupTable(Ruby runtime,
boolean[] table,
RubyString.TrTables tables,
boolean init,
org.jcodings.Encoding enc) |
private IRubyObject |
trTrans(ThreadContext context,
IRubyObject src,
IRubyObject repl,
boolean sflag)
tr_trans
|
private IRubyObject |
trTrans19(ThreadContext context,
IRubyObject src,
IRubyObject repl,
boolean sflag) |
static IRubyObject |
try_convert(ThreadContext context,
IRubyObject recv,
IRubyObject str) |
static RubyString |
unmarshalFrom(UnmarshalStream input) |
RubyArray |
unpack(IRubyObject obj) |
int |
unseededStrHashCode(Ruby runtime)
Generate a hash for the String, without a seed.
|
IRubyObject |
upcase_bang(ThreadContext context) |
IRubyObject |
upcase_bang19(ThreadContext context) |
RubyString |
upcase(ThreadContext context)
rb_str_upcase / rb_str_upcase_bang
|
RubyString |
upcase19(ThreadContext context) |
IRubyObject |
upto18(ThreadContext context,
IRubyObject end,
Block block)
rb_str_upto_m
|
IRubyObject |
upto18(ThreadContext context,
IRubyObject end,
IRubyObject excl,
Block block) |
IRubyObject |
upto19(ThreadContext context,
IRubyObject end,
Block block) |
IRubyObject |
upto19(ThreadContext context,
IRubyObject end,
IRubyObject excl,
Block block) |
(package private) IRubyObject |
uptoCommon18(ThreadContext context,
IRubyObject arg,
boolean excl,
Block block) |
(package private) IRubyObject |
uptoCommon19(ThreadContext context,
IRubyObject arg,
boolean excl,
Block block) |
(package private) IRubyObject |
uptoCommon19(ThreadContext context,
IRubyObject arg,
boolean excl,
Block block,
boolean asSymbol) |
private IRubyObject |
uptoCommon19NoDigits(ThreadContext context,
RubyString end,
boolean excl,
Block block,
boolean asSymbol) |
IRubyObject |
valid_encoding_p(ThreadContext context) |
private void |
view(byte[] bytes) |
void |
view(org.jruby.util.ByteList bytes) |
private void |
view(int index,
int len) |
attachToObjectSpace, callInit, callInit, callInit, callInit, callInit, callInit, callInit, callInit, callInit, callInit, convertToType, createObjectClass, eqlInternal, equalInternal, initialize, inspect, op_eqq, puts, specificEvaladdFinalizer, anyToString, callMethod, callMethod, callMethod, callMethod, callMethod, callMethod, callMethod, callMethod, callSuper, checkArrayType, checkCallMethod, checkFrozen, convertToArray, convertToFloat, convertToHash, convertToInteger, convertToInteger, convertToInteger, copyInstanceVariablesInto, copySpecialInstanceVariables, createBasicObjectClass, dataGetStruct, dataGetStructChecked, dataWrapStruct, display, ensureInstanceVariablesSettable, eql_p, equal_p, equal_p19, evalUnder, extend, fastGetInstanceVariable, fastGetInternalVariable, fastHasInstanceVariable, fastHasInternalVariable, fastSetInstanceVariable, fastSetInternalVariable, freeze, frozen_p, getFFIHandle, getFlag, getInstanceEvalClass, getInstanceVariable, getInstanceVariableList, getInstanceVariableNameList, getInstanceVariables, getInternalVariable, getInternalVariables, getMetaClass, getNativeHandle, getObjectId, getRuntime, getSingletonClass, getSingletonClassClone, getType, getVariable, getVariableCount, getVariableList, getVariableNameList, hashyInspect, hasInstanceVariable, hasInternalVariable, hasVariables, id_deprecated, id, infectBy, infectBy, infectBy, inspectHashCode, instance_eval, instance_eval, instance_eval, instance_eval, instance_eval19, instance_eval19, instance_eval19, instance_eval19, instance_exec, instance_exec19, instance_of_p, instance_variable_defined_p, instance_variable_get, instance_variable_set, instance_variables, instance_variables19, isBuiltin, isClass, isFalse, isFrozen, isImmediate, isModule, isNil, isTaint, isTrue, isUntrusted, kind_of_p, makeMetaClass, method_missing19, method, method19, methods, methods, methods19, nil_p, op_equal_19, op_not_equal, op_not_match, op_not, private_methods, private_methods19, protected_methods, protected_methods19, public_methods, public_methods19, rbClone, recacheBuiltinMethods, remove_instance_variable, removeFinalizers, removeInstanceVariable, removeInternalVariable, respond_to_p, respond_to_p, respond_to_p19, respond_to_p19, respondsTo, respondsToMissing, respondsToMissing, send, send, send, send, send, send19, send19, send19, send19, setFFIHandle, setFlag, setFrozen, setInstanceVariable, setInternalVariable, setMetaClass, setNativeHandle, setTaint, setUntrusted, setVariable, singleton_method_added19, singleton_method_removed19, singleton_method_undefined19, singleton_methods, singleton_methods19, specificEval, specificEval, specificEval, specificEval, syncVariables, syncVariables, taint, taint, tainted_p, testFrozen, testFrozen, to_a, trust, type_deprecated, type, untaint, untrust, untrusted_p, validateInstanceVariable, variableTableContains, variableTableFastContains, variableTableFastFetch, variableTableFastStore, variableTableFetch, variableTableRemove, variableTableStore, variableTableSync, yieldUnder, yieldUnderprivate static final org.jcodings.specific.ASCIIEncoding ASCII
private static final org.jcodings.specific.UTF8Encoding UTF8
private static final byte[] EMPTY_BYTE_ARRAY
private static final int SHARE_LEVEL_NONE
private static final int SHARE_LEVEL_BUFFER
private static final int SHARE_LEVEL_BYTELIST
private volatile int shareLevel
private org.jruby.util.ByteList value
private static final java.lang.String[][] opTable19
private static final java.lang.String[][] opTable18
private static ObjectAllocator STRING_ALLOCATOR
private static final org.jruby.util.ByteList EMPTY_ASCII8BIT_BYTELIST
private static final org.jruby.util.ByteList EMPTY_USASCII_BYTELIST
private static RubyString.EmptyByteListHolder[] EMPTY_BYTELISTS
private static final org.jruby.util.ByteList SPACE_BYTELIST
private static final int TRANS_SIZE
public RubyString(Ruby runtime, RubyClass rubyClass, java.lang.CharSequence value, org.jcodings.Encoding defaultEncoding)
public RubyString(Ruby runtime, RubyClass rubyClass, org.jruby.util.ByteList value, boolean objectSpace)
public RubyString(Ruby runtime, RubyClass rubyClass, org.jruby.util.ByteList value, org.jcodings.Encoding encoding, boolean objectSpace)
protected RubyString(Ruby runtime, RubyClass rubyClass, org.jruby.util.ByteList value, org.jcodings.Encoding enc, int cr)
protected RubyString(Ruby runtime, RubyClass rubyClass, org.jruby.util.ByteList value, org.jcodings.Encoding enc)
public org.jcodings.Encoding getEncoding()
getEncoding in interface EncodingCapablepublic void setEncoding(org.jcodings.Encoding encoding)
setEncoding in interface EncodingCapablepublic boolean shouldMarshalEncoding()
shouldMarshalEncoding in interface MarshalEncodingpublic org.jcodings.Encoding getMarshalEncoding()
getMarshalEncoding in interface MarshalEncodingpublic void associateEncoding(org.jcodings.Encoding enc)
public final void setEncodingAndCodeRange(org.jcodings.Encoding enc,
int cr)
public final org.jcodings.Encoding toEncoding(Ruby runtime)
public final int getCodeRange()
public final void setCodeRange(int codeRange)
public final void clearCodeRange()
private void keepCodeRange()
public final boolean isCodeRangeAsciiOnly()
public final boolean isAsciiOnly()
public final boolean isCodeRangeValid()
public final boolean isCodeRangeBroken()
static int codeRangeAnd(int cr1,
int cr2)
private void copyCodeRangeForSubstr(RubyString from, org.jcodings.Encoding enc)
private void copyCodeRange(RubyString from)
public final int scanForCodeRange()
final boolean singleByteOptimizable()
final boolean singleByteOptimizable(org.jcodings.Encoding enc)
private org.jcodings.Encoding isCompatibleWith(RubyString other)
final org.jcodings.Encoding isCompatibleWith(EncodingCapable other)
public final org.jcodings.Encoding checkEncoding(RubyString other)
final org.jcodings.Encoding checkEncoding(EncodingCapable other)
private org.jcodings.Encoding checkDummyEncoding()
private boolean isComparableWith(RubyString other)
private boolean isComparableViaCodeRangeWith(RubyString other)
private int strLength(org.jcodings.Encoding enc)
public final int strLength()
private int strLength(org.jruby.util.ByteList bytes)
private int strLength(org.jruby.util.ByteList bytes,
org.jcodings.Encoding enc)
final int subLength(int pos)
public final boolean eql(IRubyObject other)
eql in interface IRubyObjecteql in class RubyBasicObjectprivate boolean eql18(Ruby runtime, IRubyObject other)
private boolean eql19(Ruby runtime, IRubyObject other)
@Deprecated public RubyString newString(java.lang.CharSequence s)
@Deprecated public RubyString newString(org.jruby.util.ByteList s)
@Deprecated public static RubyString newString(Ruby runtime, RubyClass clazz, java.lang.CharSequence str)
public static RubyString newStringLight(Ruby runtime, org.jruby.util.ByteList bytes)
public static RubyString newStringLight(Ruby runtime, int size)
public static RubyString newStringLight(Ruby runtime, int size, org.jcodings.Encoding encoding)
public static RubyString newString(Ruby runtime, java.lang.CharSequence str)
public static RubyString newString(Ruby runtime, java.lang.String str)
public static RubyString newUSASCIIString(Ruby runtime, java.lang.String str)
public static RubyString newString(Ruby runtime, byte[] bytes)
public static RubyString newString(Ruby runtime, byte[] bytes, int start, int length)
public static RubyString newString(Ruby runtime, org.jruby.util.ByteList bytes)
public static RubyString newString(Ruby runtime, org.jruby.util.ByteList bytes, org.jcodings.Encoding encoding)
public static RubyString newUnicodeString(Ruby runtime, java.lang.String str)
public static RubyString newUTF8String(Ruby runtime, java.lang.String str)
public static RubyString newUTF16String(Ruby runtime, java.lang.String str)
public static RubyString newUnicodeString(Ruby runtime, java.lang.CharSequence str)
public static RubyString newUTF8String(Ruby runtime, java.lang.CharSequence str)
public static RubyString newUTF16String(Ruby runtime, java.lang.CharSequence str)
public static RubyString newInternalFromJavaExternal(Ruby runtime, java.lang.String str)
runtime - str - public static RubyString newStringShared(Ruby runtime, RubyString orig)
public static RubyString newStringShared(Ruby runtime, org.jruby.util.ByteList bytes)
public static RubyString newStringShared(Ruby runtime, org.jruby.util.ByteList bytes, org.jcodings.Encoding encoding)
public static RubyString newStringShared(Ruby runtime, org.jruby.util.ByteList bytes, int codeRange)
public static RubyString newStringShared(Ruby runtime, RubyClass clazz, org.jruby.util.ByteList bytes)
public static RubyString newStringShared(Ruby runtime, RubyClass clazz, org.jruby.util.ByteList bytes, org.jcodings.Encoding encoding)
public static RubyString newStringShared(Ruby runtime, byte[] bytes)
public static RubyString newStringShared(Ruby runtime, byte[] bytes, org.jcodings.Encoding encoding)
public static RubyString newStringShared(Ruby runtime, byte[] bytes, int start, int length)
public static RubyString newStringShared(Ruby runtime, byte[] bytes, int start, int length, org.jcodings.Encoding encoding)
public static RubyString newEmptyString(Ruby runtime)
public static RubyString newAllocatedString(Ruby runtime, RubyClass metaClass)
public static RubyString newEmptyString(Ruby runtime, RubyClass metaClass)
public static RubyString newStringNoCopy(Ruby runtime, org.jruby.util.ByteList bytes)
public static RubyString newStringNoCopy(Ruby runtime, RubyClass clazz, org.jruby.util.ByteList bytes)
public static RubyString newStringNoCopy(Ruby runtime, byte[] bytes, int start, int length)
public static RubyString newStringNoCopy(Ruby runtime, byte[] bytes)
public boolean independent()
public RubyString makeIndependent()
static RubyString.EmptyByteListHolder getEmptyByteList(org.jcodings.Encoding enc)
private static RubyString.EmptyByteListHolder prepareEmptyByteList(org.jcodings.Encoding enc)
public static RubyString newEmptyString(Ruby runtime, RubyClass metaClass, org.jcodings.Encoding enc)
public static RubyString newEmptyString(Ruby runtime, org.jcodings.Encoding enc)
public static RubyString newStringNoCopy(Ruby runtime, RubyClass clazz, org.jruby.util.ByteList bytes, org.jcodings.Encoding enc, int cr)
public static RubyString newStringNoCopy(Ruby runtime, org.jruby.util.ByteList bytes, org.jcodings.Encoding enc, int cr)
public static RubyString newUsAsciiStringNoCopy(Ruby runtime, org.jruby.util.ByteList bytes)
public static RubyString newUsAsciiStringShared(Ruby runtime, org.jruby.util.ByteList bytes)
public static RubyString newUsAsciiStringShared(Ruby runtime, byte[] bytes, int start, int length)
public int getNativeTypeIndex()
RubyObjectgetNativeTypeIndex in interface CoreObjectTypegetNativeTypeIndex in class RubyObjectClassIndexpublic java.lang.Class getJavaClass()
RubyBasicObjectgetJavaClass in interface IRubyObjectgetJavaClass in class RubyBasicObjectpublic RubyString convertToString()
RubyBasicObjectconvertToString in interface IRubyObjectconvertToString in class RubyBasicObjectpublic java.lang.String toString()
RubyObjecttoString in class RubyObjectpublic java.lang.String decodeString()
public IRubyObject dup()
dup in interface IRubyObjectdup in class RubyBasicObject@Deprecated public final RubyString strDup()
public final RubyString strDup(Ruby runtime)
@Deprecated final RubyString strDup(RubyClass clazz)
final RubyString strDup(Ruby runtime, RubyClass clazz)
public final RubyString makeSharedString(Ruby runtime, int index, int len)
public RubyString makeSharedString19(Ruby runtime, int index, int len)
public final RubyString makeShared(Ruby runtime, int index, int len)
public final RubyString makeShared(Ruby runtime, RubyClass meta, int index, int len)
public final RubyString makeShared19(Ruby runtime, int index, int len)
public final RubyString makeShared19(Ruby runtime, RubyClass meta, int index, int len)
private RubyString makeShared19(Ruby runtime, org.jruby.util.ByteList value, int index, int len)
private RubyString makeShared19(Ruby runtime, RubyClass meta, org.jruby.util.ByteList value, int index, int len)
public final void setByteListShared()
public final void modifyCheck()
private void modifyCheck(byte[] b,
int len)
private void modifyCheck(byte[] b,
int len,
org.jcodings.Encoding enc)
private void frozenCheck()
private void frozenCheck(boolean runtimeError)
public final void modify()
public final void modify19()
private void modifyAndKeepCodeRange()
public final void modify(int length)
public final void modify19(int length)
public final void resize(int length)
public final void view(org.jruby.util.ByteList bytes)
private void view(byte[] bytes)
private void view(int index,
int len)
public static java.lang.String bytesToString(byte[] bytes,
int beg,
int len)
public static java.lang.String byteListToString(org.jruby.util.ByteList bytes)
public static java.lang.String bytesToString(byte[] bytes)
public static byte[] stringToBytes(java.lang.String string)
public RubyString asString()
RubyBasicObjectRubyBasicObject.anyToString() is used
instead.asString in interface IRubyObjectasString in class RubyBasicObjectpublic IRubyObject checkStringType()
RubyBasicObjectcheckStringType in interface IRubyObjectcheckStringType in class RubyBasicObjectpublic IRubyObject checkStringType19()
RubyBasicObjectcheckStringType19 in interface IRubyObjectcheckStringType19 in class RubyBasicObjectpublic static IRubyObject try_convert(ThreadContext context, IRubyObject recv, IRubyObject str)
public IRubyObject to_s()
RubyBasicObjectto_s prints the object's class and an encoding of the
object id. As a special case, the top-level object that is the
initial execution context of Ruby programs returns ``main.''to_s in class RubyBasicObjectpublic final int compareTo(IRubyObject other)
RubyBasicObjectcompareTo in interface java.lang.Comparable<IRubyObject>compareTo in class RubyBasicObjectother - another IRubyObjectpublic IRubyObject op_cmp(ThreadContext context, IRubyObject other)
op_cmp in class RubyBasicObjectpublic IRubyObject op_cmp19(ThreadContext context, IRubyObject other)
private IRubyObject op_cmpCommon(ThreadContext context, IRubyObject other)
public IRubyObject op_equal(ThreadContext context, IRubyObject other)
op_equal in interface IRubyObjectop_equal in class RubyBasicObjectpublic IRubyObject op_equal19(ThreadContext context, IRubyObject other)
private IRubyObject op_equalCommon(ThreadContext context, IRubyObject other)
public IRubyObject op_plus(ThreadContext context, IRubyObject _str)
public IRubyObject op_plus19(ThreadContext context, IRubyObject _str)
private org.jruby.util.ByteList addByteLists(org.jruby.util.ByteList value1,
org.jruby.util.ByteList value2)
public IRubyObject op_mul(ThreadContext context, IRubyObject other)
public IRubyObject op_mul19(ThreadContext context, IRubyObject other)
private RubyString multiplyByteList(ThreadContext context, IRubyObject arg)
public IRubyObject op_format(ThreadContext context, IRubyObject arg)
private IRubyObject opFormatCommon(ThreadContext context, IRubyObject arg, CompatVersion compat)
public RubyFixnum hash()
RubyBasicObjecthash in class RubyBasicObjectpublic int hashCode()
RubyObjecthashCode in class RubyObjectpublic int strHashCode(Ruby runtime)
runtime - public int unseededStrHashCode(Ruby runtime)
runtime - public boolean equals(java.lang.Object other)
RubyObjectequals in class RubyObjectpublic static RubyString objAsString(ThreadContext context, IRubyObject obj)
public final int op_cmp(RubyString other)
public final int op_cmp19(RubyString other)
public java.lang.String asJavaString()
asJavaString in interface IRubyObjectasJavaString in class RubyBasicObjectpublic IRubyObject doClone()
public final RubyString cat(byte[] str)
public final RubyString cat(byte[] str, int beg, int len)
public final RubyString cat19(RubyString str2)
public final int cat19(org.jruby.util.ByteList other,
int codeRange)
public final RubyString cat(RubyString str)
public final RubyString cat(org.jruby.util.ByteList str)
public final RubyString cat(byte ch)
public final RubyString cat(int ch)
public final RubyString cat(int code, org.jcodings.Encoding enc)
public final int cat(byte[] bytes,
int p,
int len,
org.jcodings.Encoding enc)
public final RubyString catAscii(byte[] bytes, int p, int len)
public IRubyObject replace(IRubyObject other)
public RubyString replace19(IRubyObject other)
public IRubyObject initialize_copy(IRubyObject other)
RubyBasicObjectinitialize_copy in class RubyBasicObjectpublic RubyString initialize_copy19(IRubyObject other)
private RubyString replaceCommon(IRubyObject other)
public RubyString clear()
public IRubyObject reverse(ThreadContext context)
public IRubyObject reverse19(ThreadContext context)
public RubyString reverse_bang(ThreadContext context)
public RubyString reverse_bang19(ThreadContext context)
public static RubyString newInstance(IRubyObject recv, IRubyObject[] args, Block block)
public IRubyObject initialize(ThreadContext context)
initialize in class RubyObjectpublic IRubyObject initialize(ThreadContext context, IRubyObject arg0)
public IRubyObject initialize19(ThreadContext context)
initialize19 in class RubyBasicObjectpublic IRubyObject initialize19(ThreadContext context, IRubyObject arg0)
public IRubyObject casecmp(ThreadContext context, IRubyObject other)
public IRubyObject casecmp19(ThreadContext context, IRubyObject other)
private IRubyObject multiByteCasecmp(Ruby runtime, org.jcodings.Encoding enc, org.jruby.util.ByteList value, org.jruby.util.ByteList otherValue)
public IRubyObject op_match(ThreadContext context, IRubyObject other)
op_match in class RubyBasicObjectpublic IRubyObject op_match19(ThreadContext context, IRubyObject other)
op_match19 in class RubyBasicObjectpublic IRubyObject match(ThreadContext context, IRubyObject pattern)
pattern - Regexp or Stringpublic IRubyObject match19(ThreadContext context, IRubyObject pattern, Block block)
public IRubyObject match19(ThreadContext context, IRubyObject[] args, Block block)
public IRubyObject capitalize(ThreadContext context)
public IRubyObject capitalize_bang(ThreadContext context)
public IRubyObject capitalize19(ThreadContext context)
public IRubyObject capitalize_bang19(ThreadContext context)
public IRubyObject op_ge(ThreadContext context, IRubyObject other)
public IRubyObject op_ge19(ThreadContext context, IRubyObject other)
public IRubyObject op_gt(ThreadContext context, IRubyObject other)
public IRubyObject op_gt19(ThreadContext context, IRubyObject other)
public IRubyObject op_le(ThreadContext context, IRubyObject other)
public IRubyObject op_le19(ThreadContext context, IRubyObject other)
public IRubyObject op_lt(ThreadContext context, IRubyObject other)
public IRubyObject op_lt19(ThreadContext context, IRubyObject other)
public IRubyObject str_eql_p(ThreadContext context, IRubyObject other)
public IRubyObject str_eql_p19(ThreadContext context, IRubyObject other)
public RubyString upcase(ThreadContext context)
public IRubyObject upcase_bang(ThreadContext context)
public RubyString upcase19(ThreadContext context)
public IRubyObject upcase_bang19(ThreadContext context)
private IRubyObject singleByteUpcase(Ruby runtime, byte[] bytes, int s, int end)
private IRubyObject multiByteUpcase(Ruby runtime, org.jcodings.Encoding enc, byte[] bytes, int s, int end)
public RubyString downcase(ThreadContext context)
public IRubyObject downcase_bang(ThreadContext context)
public RubyString downcase19(ThreadContext context)
public IRubyObject downcase_bang19(ThreadContext context)
private IRubyObject singleByteDowncase(Ruby runtime, byte[] bytes, int s, int end)
private IRubyObject multiByteDowncase(Ruby runtime, org.jcodings.Encoding enc, byte[] bytes, int s, int end)
public RubyString swapcase(ThreadContext context)
public IRubyObject swapcase_bang(ThreadContext context)
public RubyString swapcase19(ThreadContext context)
public IRubyObject swapcase_bang19(ThreadContext context)
private IRubyObject singleByteSwapcase(Ruby runtime, byte[] bytes, int s, int end)
private IRubyObject multiByteSwapcase(Ruby runtime, org.jcodings.Encoding enc, byte[] bytes, int s, int end)
public IRubyObject dump()
public IRubyObject dump19()
private IRubyObject dumpCommon(boolean is1_9)
public IRubyObject insert(ThreadContext context, IRubyObject indexArg, IRubyObject stringArg)
public IRubyObject insert19(ThreadContext context, IRubyObject indexArg, IRubyObject stringArg)
private int checkIndex(int beg,
int len)
private int checkIndexForRef(int beg,
int len)
private int checkLength(int len)
private void raiseIndexOutOfString(int index)
private void prefixEscapeCat(int c)
private boolean isEVStr(byte[] bytes,
int p,
int end)
public boolean isEVStr(int c)
public IRubyObject inspect()
inspect in interface IRubyObjectinspect in class RubyBasicObjectpublic IRubyObject inspect19()
public int size()
public RubyFixnum length()
public RubyFixnum length19()
public RubyFixnum bytesize()
public RubyBoolean empty_p(ThreadContext context)
public boolean isEmpty()
public RubyString append(IRubyObject other)
public RubyString append19(IRubyObject other)
public RubyString concat(IRubyObject other)
public RubyString concat19(ThreadContext context, IRubyObject other)
private RubyString concatNumeric(Ruby runtime, int c)
public IRubyObject prepend(ThreadContext context, IRubyObject other)
public RubyString crypt(ThreadContext context, IRubyObject other)
public static RubyString stringValue(IRubyObject object)
public IRubyObject sub(ThreadContext context, IRubyObject arg0, Block block)
public IRubyObject sub(ThreadContext context, IRubyObject arg0, IRubyObject arg1, Block block)
public IRubyObject sub_bang(ThreadContext context, IRubyObject arg0, Block block)
public IRubyObject sub_bang(ThreadContext context, IRubyObject arg0, IRubyObject arg1, Block block)
private IRubyObject subBangIter(ThreadContext context, org.joni.Regex pattern, Block block)
private IRubyObject subBangNoIter(ThreadContext context, org.joni.Regex pattern, RubyString repl)
private IRubyObject subBangCommon(ThreadContext context, org.joni.Regex pattern, org.joni.Matcher matcher, RubyString repl, int tuFlags)
public IRubyObject sub19(ThreadContext context, IRubyObject arg0, Block block)
public IRubyObject sub19(ThreadContext context, IRubyObject arg0, IRubyObject arg1, Block block)
public IRubyObject sub_bang19(ThreadContext context, IRubyObject arg0, Block block)
public IRubyObject sub_bang19(ThreadContext context, IRubyObject arg0, IRubyObject arg1, Block block)
private IRubyObject subBangIter19(Ruby runtime, ThreadContext context, org.joni.Regex pattern, org.joni.Regex prepared, RubyHash hash, Block block, RubyRegexp regexp)
private IRubyObject subBangNoIter19(Ruby runtime, ThreadContext context, org.joni.Regex pattern, org.joni.Regex prepared, RubyString repl, RubyRegexp regexp)
private IRubyObject subBangCommon19(ThreadContext context, org.joni.Regex pattern, org.joni.Matcher matcher, RubyString repl, int tuFlags)
private org.jcodings.Encoding subBangVerifyEncoding(ThreadContext context, RubyString repl, int beg, int end)
public IRubyObject gsub(ThreadContext context, IRubyObject arg0, Block block)
public IRubyObject gsub(ThreadContext context, IRubyObject arg0, IRubyObject arg1, Block block)
public IRubyObject gsub_bang(ThreadContext context, IRubyObject arg0, Block block)
public IRubyObject gsub_bang(ThreadContext context, IRubyObject arg0, IRubyObject arg1, Block block)
private IRubyObject gsub(ThreadContext context, IRubyObject arg0, Block block, boolean bang)
private IRubyObject gsub(ThreadContext context, IRubyObject arg0, IRubyObject arg1, Block block, boolean bang)
private IRubyObject gsubCommon(ThreadContext context, boolean bang, IRubyObject arg, Block block, RubyString repl, int tuFlags)
public IRubyObject gsub19(ThreadContext context, IRubyObject arg0, Block block)
public IRubyObject gsub19(ThreadContext context, IRubyObject arg0, IRubyObject arg1, Block block)
public IRubyObject gsub_bang19(ThreadContext context, IRubyObject arg0, Block block)
public IRubyObject gsub_bang19(ThreadContext context, IRubyObject arg0, IRubyObject arg1, Block block)
private IRubyObject gsub19(ThreadContext context, IRubyObject arg0, IRubyObject arg1, Block block, boolean bang)
private IRubyObject gsubCommon19(ThreadContext context, Block block, RubyString repl, RubyHash hash, IRubyObject arg0, boolean bang, int tuFlags)
private IRubyObject gsubCommon19(ThreadContext context, Block block, RubyString repl, RubyHash hash, IRubyObject arg0, boolean bang, int tuFlags, boolean useBackref)
public IRubyObject index(ThreadContext context, IRubyObject arg0)
public IRubyObject index(ThreadContext context, IRubyObject arg0, IRubyObject arg1)
private IRubyObject indexCommon(Ruby runtime, ThreadContext context, IRubyObject sub, int pos)
private int strIndex(RubyString sub, int offset)
private static boolean sizeIsSmaller(org.jruby.util.ByteList byteList,
int offset,
org.jruby.util.ByteList other)
public IRubyObject index19(ThreadContext context, IRubyObject arg0)
public IRubyObject index19(ThreadContext context, IRubyObject arg0, IRubyObject arg1)
private IRubyObject indexCommon19(Ruby runtime, ThreadContext context, IRubyObject sub, int pos)
private int strIndex19(RubyString sub, int offset)
public IRubyObject rindex(ThreadContext context, IRubyObject arg0)
public IRubyObject rindex(ThreadContext context, IRubyObject arg0, IRubyObject arg1)
private IRubyObject rindexCommon(Ruby runtime, ThreadContext context, IRubyObject sub, int pos)
private int strRindex(RubyString sub, int pos)
public IRubyObject rindex19(ThreadContext context, IRubyObject arg0)
public IRubyObject rindex19(ThreadContext context, IRubyObject arg0, IRubyObject arg1)
private IRubyObject rindexCommon19(Ruby runtime, ThreadContext context, IRubyObject sub, int pos)
private int strRindex19(RubyString sub, int pos)
@Deprecated public final IRubyObject substr(int beg, int len)
public final IRubyObject substr(Ruby runtime, int beg, int len)
private IRubyObject byteSubstr(Ruby runtime, int beg, int len)
private IRubyObject byteARef(Ruby runtime, IRubyObject idx)
public final IRubyObject substr19(Ruby runtime, int beg, int len)
private IRubyObject multibyteSubstr19(Ruby runtime, org.jcodings.Encoding enc, int len, int beg, int length)
private IRubyObject replaceInternal(int beg, int len, RubyString repl)
private void replaceInternal19(int beg,
int len,
RubyString repl)
public IRubyObject op_aref(ThreadContext context, IRubyObject arg1, IRubyObject arg2)
public IRubyObject op_aref(ThreadContext context, IRubyObject arg)
private IRubyObject op_aref(Ruby runtime, int idx)
public IRubyObject op_aref19(ThreadContext context, IRubyObject arg1, IRubyObject arg2)
public IRubyObject op_aref19(ThreadContext context, IRubyObject arg)
public IRubyObject byteslice(ThreadContext context, IRubyObject arg1, IRubyObject arg2)
public IRubyObject byteslice(ThreadContext context, IRubyObject arg)
private IRubyObject op_aref19(Ruby runtime, int idx)
private void subpatSet(ThreadContext context, RubyRegexp regexp, int nth, IRubyObject repl)
private int subpatSetCheck(Ruby runtime, int nth, org.joni.Region regs)
private IRubyObject subpat(Ruby runtime, ThreadContext context, RubyRegexp regex, int nth)
private void subpatSet19(ThreadContext context, RubyRegexp regexp, IRubyObject backref, IRubyObject repl)
private IRubyObject subpat19(Ruby runtime, ThreadContext context, RubyRegexp regex, IRubyObject backref)
private IRubyObject subpat19(Ruby runtime, ThreadContext context, RubyRegexp regex)
public IRubyObject op_aset(ThreadContext context, IRubyObject arg0, IRubyObject arg1)
private IRubyObject op_aset(ThreadContext context, int idx, IRubyObject arg1)
public IRubyObject op_aset(ThreadContext context, IRubyObject arg0, IRubyObject arg1, IRubyObject arg2)
public IRubyObject op_aset19(ThreadContext context, IRubyObject arg0, IRubyObject arg1)
private IRubyObject op_aset19(ThreadContext context, int idx, IRubyObject arg1)
public IRubyObject op_aset19(ThreadContext context, IRubyObject arg0, IRubyObject arg1, IRubyObject arg2)
private boolean isHeadSlice(int beg,
int len)
private boolean isTailSlice(int beg,
int len)
private void exciseHead(int len)
len - The number of bytes to remove.private void exciseTail(int len)
len - The number of bytes to remove.public IRubyObject slice_bang(ThreadContext context, IRubyObject arg0)
public IRubyObject slice_bang(ThreadContext context, IRubyObject arg0, IRubyObject arg1)
public IRubyObject slice_bang19(ThreadContext context, IRubyObject arg0)
public IRubyObject slice_bang19(ThreadContext context, IRubyObject arg0, IRubyObject arg1)
public IRubyObject succ(ThreadContext context)
public IRubyObject succ_bang()
private static RubyString.NeighborChar succChar(org.jcodings.Encoding enc, byte[] bytes, int p, int len)
private static RubyString.NeighborChar predChar(org.jcodings.Encoding enc, byte[] bytes, int p, int len)
private static RubyString.NeighborChar succAlnumChar(org.jcodings.Encoding enc, byte[] bytes, int p, int len, byte[] carry, int carryP)
public IRubyObject succ19(ThreadContext context)
public IRubyObject succ_bang19()
private org.jruby.util.ByteList succCommon19(org.jruby.util.ByteList original)
public IRubyObject upto18(ThreadContext context, IRubyObject end, Block block)
public IRubyObject upto18(ThreadContext context, IRubyObject end, IRubyObject excl, Block block)
final IRubyObject uptoCommon18(ThreadContext context, IRubyObject arg, boolean excl, Block block)
public IRubyObject upto19(ThreadContext context, IRubyObject end, Block block)
public IRubyObject upto19(ThreadContext context, IRubyObject end, IRubyObject excl, Block block)
final IRubyObject uptoCommon19(ThreadContext context, IRubyObject arg, boolean excl, Block block)
final IRubyObject uptoCommon19(ThreadContext context, IRubyObject arg, boolean excl, Block block, boolean asSymbol)
private IRubyObject uptoCommon19NoDigits(ThreadContext context, RubyString end, boolean excl, Block block, boolean asSymbol)
public RubyBoolean include_p(ThreadContext context, IRubyObject obj)
public RubyBoolean include_p19(ThreadContext context, IRubyObject obj)
public IRubyObject chr(ThreadContext context)
public IRubyObject getbyte(ThreadContext context, IRubyObject index)
public IRubyObject setbyte(ThreadContext context, IRubyObject index, IRubyObject val)
public IRubyObject to_i()
public IRubyObject to_i(IRubyObject arg0)
public IRubyObject to_i19()
public IRubyObject to_i19(IRubyObject arg0)
private long checkBase(IRubyObject arg0)
public IRubyObject stringToInum(int base, boolean badcheck)
public IRubyObject stringToInum19(int base, boolean badcheck)
public IRubyObject oct(ThreadContext context)
public IRubyObject oct19(ThreadContext context)
public IRubyObject hex(ThreadContext context)
public IRubyObject hex19(ThreadContext context)
public IRubyObject to_f()
public IRubyObject to_f19()
public RubyArray split(ThreadContext context)
public RubyArray split(ThreadContext context, IRubyObject arg0)
public RubyArray split(ThreadContext context, IRubyObject arg0, IRubyObject arg1)
private RubyArray splitCommon(IRubyObject spat, boolean limit, int lim, int i, ThreadContext context)
private RubyArray regexSplit(ThreadContext context, IRubyObject pat, boolean limit, int lim, int i)
private org.jcodings.Encoding getEncodingForKCodeDefault(Ruby runtime, org.joni.Regex pattern, IRubyObject pat)
private void populateCapturesForSplit(Ruby runtime, RubyArray result, org.joni.Matcher matcher, boolean is19)
private RubyArray awkSplit(boolean limit, int lim, int i)
public RubyArray split19(ThreadContext context)
public RubyArray split19(ThreadContext context, IRubyObject arg0)
public RubyArray split19(ThreadContext context, IRubyObject arg0, IRubyObject arg1)
public RubyArray split19(ThreadContext context, IRubyObject arg0, boolean useBackref)
private RubyArray splitCommon19(IRubyObject spat, boolean limit, int lim, int i, ThreadContext context, boolean useBackref)
private RubyArray regexSplit19(ThreadContext context, org.joni.Regex pattern, org.joni.Regex prepared, boolean limit, int lim, int i, boolean useBackref)
private RubyArray awkSplit19(boolean limit, int lim, int i)
private RubyArray stringSplit19(ThreadContext context, RubyString spat, boolean limit, int lim, int i)
static int indexOf(byte[] source,
int sourceOffset,
int sourceCount,
byte[] target,
int targetOffset,
int targetCount,
int fromIndex)
private RubyString getStringForPattern(IRubyObject obj)
private RubyRegexp getPattern(IRubyObject obj)
private org.joni.Regex getQuotedPattern(IRubyObject obj)
private org.joni.Regex getStringPattern(Ruby runtime, org.jcodings.Encoding enc, IRubyObject obj)
private org.joni.Regex getStringPattern19(Ruby runtime, IRubyObject obj)
public IRubyObject scan(ThreadContext context, IRubyObject arg, Block block)
private IRubyObject scanIter(ThreadContext context, org.joni.Regex pattern, org.joni.Matcher matcher, org.jcodings.Encoding enc, Block block, int begin, int range, int tuFlags)
private IRubyObject scanNoIter(ThreadContext context, org.joni.Regex pattern, org.joni.Matcher matcher, org.jcodings.Encoding enc, int begin, int range, int tuFlags)
private int positionEnd(org.joni.Matcher matcher,
org.jcodings.Encoding enc,
int begin,
int range)
private IRubyObject populateCapturesForScan(Ruby runtime, org.joni.Matcher matcher, int range, int tuFlags, boolean is19)
public IRubyObject scan19(ThreadContext context, IRubyObject arg, Block block)
private IRubyObject scanIter19(ThreadContext context, org.joni.Regex pattern, org.joni.Regex prepared, org.jcodings.Encoding enc, Block block, RubyRegexp regexp, int tuFlags)
private IRubyObject scanNoIter19(ThreadContext context, org.joni.Regex pattern, org.joni.Regex prepared, org.jcodings.Encoding enc, RubyRegexp regexp, int tuFlags)
public IRubyObject start_with_p(ThreadContext context)
public IRubyObject start_with_p(ThreadContext context, IRubyObject arg)
public IRubyObject start_with_p(ThreadContext context, IRubyObject[] args)
private boolean start_with_pCommon(IRubyObject arg)
public IRubyObject end_with_p(ThreadContext context)
public IRubyObject end_with_p(ThreadContext context, IRubyObject arg)
public IRubyObject end_with_p(ThreadContext context, IRubyObject[] args)
private boolean end_with_pCommon(IRubyObject arg)
private IRubyObject justify(IRubyObject arg0, int jflag)
private IRubyObject justify(IRubyObject arg0, IRubyObject arg1, int jflag)
private RubyString justifyCommon(Ruby runtime, org.jruby.util.ByteList pad, int width, int jflag)
private IRubyObject justify19(IRubyObject arg0, int jflag)
private IRubyObject justify19(IRubyObject arg0, IRubyObject arg1, int jflag)
private RubyString justifyCommon(Ruby runtime, org.jruby.util.ByteList pad, int padCharLen, boolean padSinglebyte, org.jcodings.Encoding enc, int width, int jflag)
public IRubyObject ljust(IRubyObject arg0)
public IRubyObject ljust(IRubyObject arg0, IRubyObject arg1)
public IRubyObject ljust19(IRubyObject arg0)
public IRubyObject ljust19(IRubyObject arg0, IRubyObject arg1)
public IRubyObject rjust(IRubyObject arg0)
public IRubyObject rjust(IRubyObject arg0, IRubyObject arg1)
public IRubyObject rjust19(IRubyObject arg0)
public IRubyObject rjust19(IRubyObject arg0, IRubyObject arg1)
public IRubyObject center(IRubyObject arg0)
public IRubyObject center(IRubyObject arg0, IRubyObject arg1)
public IRubyObject center19(IRubyObject arg0)
public IRubyObject center19(IRubyObject arg0, IRubyObject arg1)
public IRubyObject partition(ThreadContext context, Block block)
public IRubyObject partition(ThreadContext context, IRubyObject arg, Block block)
private IRubyObject partitionMismatch(Ruby runtime)
public IRubyObject rpartition(ThreadContext context, IRubyObject arg)
private IRubyObject rpartitionMismatch(Ruby runtime)
public IRubyObject chop(ThreadContext context)
public IRubyObject chop_bang(ThreadContext context)
private int choppedLength()
public IRubyObject chop19(ThreadContext context)
public IRubyObject chop_bang19(ThreadContext context)
private int choppedLength19(Ruby runtime)
public RubyString chomp(ThreadContext context)
public RubyString chomp(ThreadContext context, IRubyObject arg0)
public IRubyObject chomp_bang(ThreadContext context)
public IRubyObject chomp_bang(ThreadContext context, IRubyObject arg0)
private IRubyObject chompBangCommon(Ruby runtime, IRubyObject rsObj)
private IRubyObject smartChopBangCommon(Ruby runtime)
public RubyString chomp19(ThreadContext context)
public RubyString chomp19(ThreadContext context, IRubyObject arg0)
public IRubyObject chomp_bang19(ThreadContext context)
public IRubyObject chomp_bang19(ThreadContext context, IRubyObject arg0)
private IRubyObject chompBangCommon19(Ruby runtime, IRubyObject rsObj)
private IRubyObject smartChopBangCommon19(Ruby runtime)
public IRubyObject lstrip(ThreadContext context)
public IRubyObject lstrip_bang(ThreadContext context)
public IRubyObject lstrip19(ThreadContext context)
public IRubyObject lstrip_bang19(ThreadContext context)
private IRubyObject singleByteLStrip(Ruby runtime, byte[] bytes, int s, int end)
private IRubyObject multiByteLStrip(Ruby runtime, org.jcodings.Encoding enc, byte[] bytes, int s, int end)
public IRubyObject rstrip(ThreadContext context)
public IRubyObject rstrip_bang(ThreadContext context)
public IRubyObject rstrip19(ThreadContext context)
public IRubyObject rstrip_bang19(ThreadContext context)
private IRubyObject singleByteRStrip(Ruby runtime, byte[] bytes, int s, int end)
private IRubyObject singleByteRStrip19(Ruby runtime)
private IRubyObject multiByteRStrip19(Ruby runtime)
public IRubyObject strip(ThreadContext context)
public IRubyObject strip_bang(ThreadContext context)
public IRubyObject strip19(ThreadContext context)
public IRubyObject strip_bang19(ThreadContext context)
private IRubyObject singleByteStrip(Ruby runtime, byte[] bytes, int s, int end)
public IRubyObject count(ThreadContext context)
public IRubyObject count(ThreadContext context, IRubyObject arg)
public IRubyObject count(ThreadContext context, IRubyObject[] args)
private IRubyObject countCommon(Ruby runtime, boolean[] table)
public IRubyObject count19(ThreadContext context)
public IRubyObject count19(ThreadContext context, IRubyObject arg)
public IRubyObject count19(ThreadContext context, IRubyObject[] args)
private IRubyObject countCommon19(Ruby runtime, boolean[] table, RubyString.TrTables tables, org.jcodings.Encoding enc)
public IRubyObject delete(ThreadContext context)
public IRubyObject delete(ThreadContext context, IRubyObject arg)
public IRubyObject delete(ThreadContext context, IRubyObject[] args)
public IRubyObject delete_bang(ThreadContext context)
public IRubyObject delete_bang(ThreadContext context, IRubyObject arg)
public IRubyObject delete_bang(ThreadContext context, IRubyObject[] args)
private IRubyObject delete_bangCommon(Ruby runtime, boolean[] squeeze)
public IRubyObject delete19(ThreadContext context)
public IRubyObject delete19(ThreadContext context, IRubyObject arg)
public IRubyObject delete19(ThreadContext context, IRubyObject[] args)
public IRubyObject delete_bang19(ThreadContext context)
public IRubyObject delete_bang19(ThreadContext context, IRubyObject arg)
public IRubyObject delete_bang19(ThreadContext context, IRubyObject[] args)
private IRubyObject delete_bangCommon19(Ruby runtime, boolean[] squeeze, RubyString.TrTables tables, org.jcodings.Encoding enc)
public IRubyObject squeeze(ThreadContext context)
public IRubyObject squeeze(ThreadContext context, IRubyObject arg)
public IRubyObject squeeze(ThreadContext context, IRubyObject[] args)
public IRubyObject squeeze_bang(ThreadContext context)
public IRubyObject squeeze_bang(ThreadContext context, IRubyObject arg)
public IRubyObject squeeze_bang(ThreadContext context, IRubyObject[] args)
private IRubyObject squeezeCommon(Ruby runtime, boolean[] squeeze)
public IRubyObject squeeze19(ThreadContext context)
public IRubyObject squeeze19(ThreadContext context, IRubyObject arg)
public IRubyObject squeeze19(ThreadContext context, IRubyObject[] args)
public IRubyObject squeeze_bang19(ThreadContext context)
public IRubyObject squeeze_bang19(ThreadContext context, IRubyObject arg)
public IRubyObject squeeze_bang19(ThreadContext context, IRubyObject[] args)
private IRubyObject squeezeCommon19(Ruby runtime, boolean[] squeeze, RubyString.TrTables tables, org.jcodings.Encoding enc, boolean isArg)
public IRubyObject tr(ThreadContext context, IRubyObject src, IRubyObject repl)
public IRubyObject tr_bang(ThreadContext context, IRubyObject src, IRubyObject repl)
public IRubyObject tr19(ThreadContext context, IRubyObject src, IRubyObject repl)
public IRubyObject tr_bang19(ThreadContext context, IRubyObject src, IRubyObject repl)
private void trSetupTable(boolean[] table,
boolean init)
private RubyString.TrTables trSetupTable(Ruby runtime, boolean[] table, RubyString.TrTables tables, boolean init, org.jcodings.Encoding enc)
private boolean trFind(int c,
boolean[] table,
RubyString.TrTables tables)
private IRubyObject trTrans(ThreadContext context, IRubyObject src, IRubyObject repl, boolean sflag)
private IRubyObject trTrans19(ThreadContext context, IRubyObject src, IRubyObject repl, boolean sflag)
private int trCode(int c,
int[] trans,
org.jcodings.util.IntHash<java.lang.Integer> hash,
boolean cflag,
int last,
boolean set)
private int trNext(RubyString.TR t)
private int trNext(RubyString.TR t, Ruby runtime, org.jcodings.Encoding enc)
public IRubyObject tr_s(ThreadContext context, IRubyObject src, IRubyObject repl)
public IRubyObject tr_s_bang(ThreadContext context, IRubyObject src, IRubyObject repl)
public IRubyObject tr_s19(ThreadContext context, IRubyObject src, IRubyObject repl)
public IRubyObject tr_s_bang19(ThreadContext context, IRubyObject src, IRubyObject repl)
public IRubyObject each_line(ThreadContext context, Block block)
public IRubyObject each_line(ThreadContext context, IRubyObject arg, Block block)
public IRubyObject each_lineCommon(ThreadContext context, IRubyObject sep, Block block)
public IRubyObject each18(ThreadContext context, Block block)
public IRubyObject each18(ThreadContext context, IRubyObject arg, Block block)
public IRubyObject each_line18(ThreadContext context, Block block)
public IRubyObject each_line18(ThreadContext context, IRubyObject arg, Block block)
public IRubyObject lines18(ThreadContext context, Block block)
public IRubyObject lines18(ThreadContext context, IRubyObject arg, Block block)
public IRubyObject each_line19(ThreadContext context, Block block)
public IRubyObject each_line19(ThreadContext context, IRubyObject arg, Block block)
public IRubyObject lines(ThreadContext context, Block block)
public IRubyObject lines(ThreadContext context, IRubyObject arg, Block block)
public IRubyObject lines20(ThreadContext context, Block block)
public IRubyObject lines20(ThreadContext context, IRubyObject arg, Block block)
private IRubyObject each_lineCommon19(ThreadContext context, Block block)
private IRubyObject each_lineCommon19(ThreadContext context, IRubyObject sep, Block block)
public RubyString each_byte(ThreadContext context, Block block)
public IRubyObject each_byte19(ThreadContext context, Block block)
public IRubyObject bytes(ThreadContext context, Block block)
public IRubyObject each_char18(ThreadContext context, Block block)
public IRubyObject chars18(ThreadContext context, Block block)
private IRubyObject each_charCommon18(ThreadContext context, Block block)
public IRubyObject each_char19(ThreadContext context, Block block)
public IRubyObject chars19(ThreadContext context, Block block)
private IRubyObject each_charCommon19(ThreadContext context, Block block)
public IRubyObject each_codepoint(ThreadContext context, Block block)
public IRubyObject codepoints(ThreadContext context, Block block)
private IRubyObject each_codepointCommon(ThreadContext context, Block block)
private RubySymbol to_sym()
private RubySymbol checkSpecialCasesIntern(org.jruby.util.ByteList value)
public RubySymbol intern()
public RubySymbol intern19()
public IRubyObject ord(ThreadContext context)
public IRubyObject sum(ThreadContext context)
public IRubyObject sum(ThreadContext context, IRubyObject arg)
public IRubyObject sumCommon(ThreadContext context, long bits)
public IRubyObject to_c(ThreadContext context)
public IRubyObject to_r(ThreadContext context)
public static RubyString unmarshalFrom(UnmarshalStream input) throws java.io.IOException
java.io.IOExceptionpublic RubyArray unpack(IRubyObject obj)
public void empty()
public IRubyObject encoding(ThreadContext context)
public IRubyObject encode_bang(ThreadContext context, IRubyObject arg0)
public IRubyObject encode_bang(ThreadContext context, IRubyObject arg0, IRubyObject arg1)
public IRubyObject encode_bang(ThreadContext context, IRubyObject arg0, IRubyObject arg1, IRubyObject arg2)
public IRubyObject encode_bang(ThreadContext context, IRubyObject[] args)
public IRubyObject encode(ThreadContext context)
public IRubyObject encode(ThreadContext context, IRubyObject arg)
public IRubyObject encode(ThreadContext context, IRubyObject toEncoding, IRubyObject arg)
public IRubyObject encode(ThreadContext context, IRubyObject toEncoding, IRubyObject forcedEncoding, IRubyObject opts)
private static org.jcodings.Encoding getEncoding(Ruby runtime, IRubyObject toEnc)
public IRubyObject force_encoding(ThreadContext context, IRubyObject enc)
private IRubyObject force_encoding(ThreadContext context, org.jcodings.Encoding encoding)
public IRubyObject valid_encoding_p(ThreadContext context)
public IRubyObject ascii_only_p(ThreadContext context)
public void setValue(java.lang.CharSequence value)
value - The new java.lang.String this RubyString should encapsulatepublic void setValue(org.jruby.util.ByteList value)
public java.lang.CharSequence getValue()
public byte[] getBytes()
public org.jruby.util.ByteList getByteList()
public java.lang.String getUnicodeValue()
private static org.jruby.util.ByteList encodeBytelist(java.lang.CharSequence value,
org.jcodings.Encoding encoding)
public java.lang.Object toJava(java.lang.Class target)
IRubyObjecttoJava in interface IRubyObjecttoJava in class RubyBasicObjecttarget - The target type to which the object should be converted.IRubyObject.toJava(java.lang.Class)@Deprecated
public final int cat(byte[] bytes,
int p,
int len,
org.jcodings.Encoding enc,
int ptr_cr)
public IRubyObject b(ThreadContext context)