Modifier and Type | Field and Description |
---|---|
ByteList |
RubyThread.Status.bytes |
static ByteList |
RubyEncoding.EXTERNAL |
static ByteList |
RubyEncoding.FILESYSTEM |
static ByteList |
RubyEncoding.INTERNAL |
static ByteList |
RubyEncoding.LOCALE |
static ByteList |
RubyIO.PARAGRAPH_SEPARATOR |
static ByteList[] |
RubyInteger.SINGLE_CHAR_BYTELISTS19
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
static ByteList |
RubyString.encodeBytelist(java.lang.CharSequence value,
org.jcodings.Encoding encoding) |
ByteList |
RubyString.getByteList() |
ByteList |
RubySymbol.getBytes() |
static ByteList |
RubyRegexp.quote19(ByteList bs,
boolean asciiOnly)
Deprecated.
|
static ByteList |
RubySymbol.symbolBytesFromString(Ruby runtime,
java.lang.String internedSymbol) |
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
RubyString.byteListToString(ByteList bytes) |
RubyString |
RubyString.cat(ByteList str) |
int |
RubyString.cat19(ByteList other,
int codeRange) |
static org.jcodings.Encoding |
RubyString.checkEncoding(Ruby runtime,
ByteList str1,
ByteList str2) |
static java.lang.String |
RubyEncoding.decodeISO(ByteList byteList) |
IRubyObject |
RubyIO.getline(Ruby runtime,
ByteList separator)
Deprecated.
|
IRubyObject |
RubyIO.getline(Ruby runtime,
ByteList separator,
long limit)
Deprecated.
|
IRubyObject |
RubyIO.getline(ThreadContext context,
ByteList separator)
Deprecated.
|
IRubyObject |
RubyIO.getline(ThreadContext context,
ByteList separator,
long limit)
Deprecated.
|
static org.joni.Regex |
RubyRegexp.getRegexpFromCache(Ruby runtime,
ByteList bytes,
org.jcodings.Encoding enc,
RegexpOptions options) |
RubySymbol |
RubySymbol.SymbolTable.getSymbol(ByteList bytes) |
RubySymbol |
RubySymbol.SymbolTable.getSymbol(ByteList bytes,
boolean hard) |
RubySymbol |
RubySymbol.SymbolTable.getSymbol(ByteList bytes,
RubySymbol.ObjBooleanConsumer<RubySymbol> handler,
boolean hard)
Get or retrieve an existing symbol from the table, invoking the given handler before return.
|
static RubyString |
RubyString.inspect(Ruby runtime,
ByteList byteList) |
static IRubyObject |
RubyString.inspect19(Ruby runtime,
ByteList byteList)
Deprecated.
|
static int |
RubySymbol.javaStringHashCode(ByteList iso8859) |
static RubySymbol |
RubySymbol.newConstantSymbol(Ruby runtime,
IRubyObject fqn,
ByteList bytes)
Create a symbol whose intention is to be used as a constant.
|
static RubySymbol |
RubySymbol.newHardSymbol(Ruby runtime,
ByteList bytes) |
static RubySymbol |
RubySymbol.newHardSymbol(Ruby runtime,
ByteList bytes,
RubySymbol.ObjBooleanConsumer<RubySymbol> handler) |
static RubySymbol |
RubySymbol.newIDSymbol(Ruby runtime,
ByteList bytes)
Generic identifier symbol creation (or retrieval) method.
|
static RubySymbol |
RubySymbol.newIDSymbol(Ruby runtime,
ByteList bytes,
RubySymbol.ObjBooleanConsumer<RubySymbol> handler)
Generic identifier symbol creation (or retrieval) method that invokes a handler before storing new symbols.
|
static RubyRegexp |
RubyRegexp.newRegexp(Ruby runtime,
ByteList pattern) |
static RubyRegexp |
RubyRegexp.newRegexp(Ruby runtime,
ByteList pattern,
int options) |
static RubyRegexp |
RubyRegexp.newRegexp(Ruby runtime,
ByteList pattern,
RegexpOptions options) |
static RubyRegexp |
RubyRegexp.newRegexpParser(Ruby runtime,
ByteList pattern,
RegexpOptions options)
throws RaiseException on error so parser can pick this up and give proper line and line number
error as opposed to any non-literal regexp creation which may raise a syntax error but will not
have this extra source info in the error message
|
RubyString |
Ruby.newString(ByteList byteList) |
RubyString |
RubyString.newString(ByteList s)
Deprecated.
|
static RubyString |
RubyString.newString(Ruby runtime,
ByteList bytes) |
static RubyString |
RubyString.newString(Ruby runtime,
ByteList bytes,
org.jcodings.Encoding encoding) |
static RubyString |
RubyString.newString(Ruby runtime,
ByteList bytes,
int coderange) |
static RubyString |
RubyString.newStringLight(Ruby runtime,
ByteList bytes) |
static RubyString |
RubyString.newStringNoCopy(Ruby runtime,
ByteList bytes) |
static RubyString |
RubyString.newStringNoCopy(Ruby runtime,
ByteList bytes,
org.jcodings.Encoding enc,
int cr) |
static RubyString |
RubyString.newStringNoCopy(Ruby runtime,
RubyClass clazz,
ByteList bytes) |
static RubyString |
RubyString.newStringNoCopy(Ruby runtime,
RubyClass clazz,
ByteList bytes,
org.jcodings.Encoding enc,
int cr) |
RubyString |
Ruby.newStringShared(ByteList byteList)
Deprecated.
|
static RubyString |
RubyString.newStringShared(Ruby runtime,
ByteList bytes) |
static RubyString |
RubyString.newStringShared(Ruby runtime,
ByteList bytes,
org.jcodings.Encoding encoding) |
static RubyString |
RubyString.newStringShared(Ruby runtime,
ByteList bytes,
int codeRange) |
static RubyString |
RubyString.newStringShared(Ruby runtime,
RubyClass clazz,
ByteList bytes) |
static RubyString |
RubyString.newStringShared(Ruby runtime,
RubyClass clazz,
ByteList bytes,
org.jcodings.Encoding encoding) |
RubySymbol |
Ruby.newSymbol(ByteList name) |
static RubySymbol |
RubySymbol.newSymbol(Ruby runtime,
ByteList bytes) |
static RubySymbol |
RubySymbol.newSymbol(Ruby runtime,
ByteList bytes,
RubySymbol.ObjBooleanConsumer<RubySymbol> handler)
Return the symbol in the symbol table if it exists, null otherwise.
|
static RubyString |
RubyString.newUsAsciiStringNoCopy(Ruby runtime,
ByteList bytes) |
static RubyString |
RubyString.newUsAsciiStringShared(Ruby runtime,
ByteList bytes) |
Node |
Ruby.parse(ByteList content,
java.lang.String file,
DynamicScope scope,
int lineNumber,
boolean extraPositionInformation) |
Node |
Ruby.parseEval(ByteList content,
java.lang.String file,
DynamicScope scope,
int lineNumber) |
static void |
RubyRegexp.preprocessCheck(Ruby runtime,
ByteList bytes) |
static ByteList |
RubyRegexp.quote19(ByteList bs,
boolean asciiOnly)
Deprecated.
|
RubyRegexp |
RubyRegexp.regexpInitialize(ByteList bytes,
org.jcodings.Encoding enc,
RegexpOptions options) |
static int |
RubyString.scanForCodeRange(ByteList bytes) |
void |
RubyString.setValue(ByteList value) |
void |
RubyString.view(ByteList bytes) |
protected static IRubyObject |
RubyIO.write(ThreadContext context,
IRubyObject maybeIO,
ByteList byteList) |
protected static IRubyObject |
RubyIO.write(ThreadContext context,
IRubyObject maybeIO,
ByteList byteList,
IRubyObject sep) |
Constructor and Description |
---|
RubyRegexp(Ruby runtime,
org.joni.Regex pattern,
ByteList str,
RegexpOptions options) |
RubyString(Ruby runtime,
RubyClass rubyClass,
ByteList value) |
RubyString(Ruby runtime,
RubyClass rubyClass,
ByteList value,
boolean objectSpace) |
RubyString(Ruby runtime,
RubyClass rubyClass,
ByteList value,
org.jcodings.Encoding enc) |
RubyString(Ruby runtime,
RubyClass rubyClass,
ByteList value,
org.jcodings.Encoding encoding,
boolean objectSpace) |
RubyString(Ruby runtime,
RubyClass rubyClass,
ByteList value,
org.jcodings.Encoding enc,
int cr) |
RubyString(Ruby runtime,
RubyClass rubyClass,
ByteList value,
int cr) |
Modifier and Type | Method and Description |
---|---|
ByteList |
LiteralNode.getByteName() |
ByteList |
BackRefNode.getByteName() |
ByteList |
OpAsgnConstDeclNode.getByteOperator() |
ByteList |
OpElementAsgnNode.getOperatorByteName() |
ByteList |
OpAsgnNode.getOperatorByteName() |
ByteList |
StrNode.getValue()
Gets the value.
|
ByteList |
RegexpNode.getValue()
Gets the value.
|
ByteList |
XStrNode.getValue()
Gets the value.
|
ByteList |
OpAsgnNode.getVariableByteName() |
ByteList |
OpAsgnNode.getVariableByteNameAsgn() |
Constructor and Description |
---|
FileNode(ISourcePosition position,
ByteList value) |
RegexpNode(ISourcePosition position,
ByteList value,
RegexpOptions options) |
StrNode(ISourcePosition position,
ByteList value) |
StrNode(ISourcePosition position,
ByteList value,
int codeRange) |
XStrNode(ISourcePosition position,
ByteList value,
int coderange) |
Modifier and Type | Field and Description |
---|---|
ByteList[] |
RuntimeCache.byteLists |
Modifier and Type | Method and Description |
---|---|
ByteList |
AbstractScript.getByteList(int i) |
ByteList |
RuntimeCache.getByteList(int index) |
ByteList |
AbstractScript.getByteList0() |
ByteList |
AbstractScript.getByteList1() |
ByteList |
AbstractScript.getByteList2() |
ByteList |
AbstractScript.getByteList3() |
ByteList |
AbstractScript.getByteList4() |
ByteList |
AbstractScript.getByteList5() |
ByteList |
AbstractScript.getByteList6() |
ByteList |
AbstractScript.getByteList7() |
ByteList |
AbstractScript.getByteList8() |
ByteList |
AbstractScript.getByteList9() |
ByteList[] |
RuntimeCache.initStrings(int size) |
Modifier and Type | Method and Description |
---|---|
RubyRegexp |
AbstractScript.getRegexp(ThreadContext context,
int i,
ByteList pattern,
int options) |
RubyRegexp |
RuntimeCache.getRegexp(ThreadContext context,
int index,
ByteList pattern,
int options) |
RubyRegexp |
AbstractScript.getRegexp0(ThreadContext context,
ByteList pattern,
int options) |
RubyRegexp |
AbstractScript.getRegexp1(ThreadContext context,
ByteList pattern,
int options) |
RubyRegexp |
AbstractScript.getRegexp2(ThreadContext context,
ByteList pattern,
int options) |
RubyRegexp |
AbstractScript.getRegexp3(ThreadContext context,
ByteList pattern,
int options) |
RubyRegexp |
AbstractScript.getRegexp4(ThreadContext context,
ByteList pattern,
int options) |
RubyRegexp |
AbstractScript.getRegexp5(ThreadContext context,
ByteList pattern,
int options) |
RubyRegexp |
AbstractScript.getRegexp6(ThreadContext context,
ByteList pattern,
int options) |
RubyRegexp |
AbstractScript.getRegexp7(ThreadContext context,
ByteList pattern,
int options) |
RubyRegexp |
AbstractScript.getRegexp8(ThreadContext context,
ByteList pattern,
int options) |
RubyRegexp |
AbstractScript.getRegexp9(ThreadContext context,
ByteList pattern,
int options) |
Modifier and Type | Method and Description |
---|---|
static ByteList |
BubbleBabble.bubblebabble(byte[] message,
int begin,
int length)
Ported from OpenSSH (https://github.com/openssh/openssh-portable/blob/957fbceb0f3166e41b76fdb54075ab3b9cc84cba/sshkey.c#L942-L987)
OpenSSH License Notice
Copyright (c) 2000, 2001 Markus Friedl.
|
Modifier and Type | Field and Description |
---|---|
protected ByteList |
RipperLexer.delayed |
protected ByteList |
HeredocTerm.lastLine |
Modifier and Type | Method and Description |
---|---|
protected ByteList |
StringTerm.createByteList(RipperLexer lexer) |
Modifier and Type | Method and Description |
---|---|
IRubyObject |
RipperLexer.createStr(ByteList buffer,
int flags) |
protected int |
HeredocTerm.error(RipperLexer lexer,
int len,
ByteList str,
ByteList eos) |
protected boolean |
RipperLexer.onMagicComment(java.lang.String name,
ByteList value) |
int |
StringTerm.parseStringIntoBuffer(RipperLexer lexer,
LexerSource src,
ByteList buffer,
org.jcodings.Encoding enc) |
int |
RipperLexer.readUTFEscape(ByteList buffer,
boolean stringLiteral,
boolean symbolLiteral) |
void |
RipperLexer.readUTFEscapeRegexpLiteral(ByteList buffer) |
protected void |
RipperLexer.setCompileOptionFlag(java.lang.String name,
ByteList value) |
protected void |
RipperLexer.setEncoding(ByteList name) |
protected void |
RipperLexer.setTokenInfo(java.lang.String name,
ByteList value) |
boolean |
RipperLexer.tokenAddMBC(int first_byte,
ByteList buffer) |
Constructor and Description |
---|
HeredocTerm(ByteList marker,
int func,
int nth,
int line,
ByteList lastLine) |
Modifier and Type | Method and Description |
---|---|
protected ByteList |
RubyBasicSocket.doRead(ThreadContext context,
java.nio.ByteBuffer buffer) |
protected ByteList |
RubyBasicSocket.doReadNonblock(ThreadContext context,
java.nio.ByteBuffer buffer) |
static ByteList |
Option.packInt(int i) |
static ByteList |
Option.packLinger(int vonoff,
int vsecs) |
Modifier and Type | Method and Description |
---|---|
static java.net.InetAddress[] |
SocketUtils.getRubyInetAddresses(ByteList address)
Deprecated.
|
static int |
Option.unpackInt(ByteList data) |
static int[] |
Option.unpackLinger(ByteList data) |
Constructor and Description |
---|
Option(Ruby runtime,
jnr.constants.platform.ProtocolFamily family,
jnr.constants.platform.SocketLevel level,
jnr.constants.platform.SocketOption option,
ByteList data) |
Option(Ruby runtime,
RubyClass klass,
jnr.constants.platform.ProtocolFamily family,
jnr.constants.platform.SocketLevel level,
jnr.constants.platform.SocketOption option,
ByteList data) |
Modifier and Type | Field and Description |
---|---|
static ByteList |
StringIO.NEWLINE |
Modifier and Type | Method and Description |
---|---|
void |
JZlibInflate.append(ByteList obj) |
IRubyObject |
JZlibInflate.inflate(ThreadContext context,
ByteList str,
Block block) |
protected RubyString |
RubyGzipFile.newStr(Ruby runtime,
ByteList value) |
Modifier and Type | Field and Description |
---|---|
static ByteList |
IRFor._BEGIN_ |
Modifier and Type | Method and Description |
---|---|
ByteList |
IRScope.getByteName() |
Modifier and Type | Method and Description |
---|---|
IRMethod |
IRClosure.convertToMethod(ByteList name) |
void |
IRClosure.setByteName(ByteList name) |
void |
IRScope.setByteName(ByteList name) |
Constructor and Description |
---|
IRClassBody(IRManager manager,
IRScope lexicalParent,
ByteList name,
int lineNumber,
StaticScope scope,
boolean executesOnce) |
IRClosure(IRClosure c,
IRScope lexicalParent,
int closureId,
ByteList fullName)
Used by cloning code for inlining
|
IRClosure(IRManager manager,
IRScope lexicalParent,
int lineNumber,
StaticScope staticScope,
ByteList prefix) |
IRClosure(IRManager manager,
IRScope lexicalParent,
int lineNumber,
StaticScope staticScope,
Signature signature,
ByteList prefix) |
IRClosure(IRManager manager,
IRScope lexicalParent,
int lineNumber,
StaticScope staticScope,
Signature signature,
ByteList prefix,
boolean isBeginEndBlock) |
IRClosure(IRManager manager,
IRScope lexicalParent,
int lineNumber,
StaticScope staticScope,
Signature signature,
ByteList prefix,
boolean isBeginEndBlock,
boolean needsCoverage) |
IRFor(IRManager manager,
IRScope lexicalParent,
int lineNumber,
StaticScope staticScope,
Signature signature,
ByteList labelPrefix) |
IRMetaClassBody(IRManager manager,
IRScope lexicalParent,
ByteList name,
int lineNumber,
StaticScope scope) |
IRMethod(IRManager manager,
IRScope lexicalParent,
DefNode defn,
ByteList name,
boolean isInstanceMethod,
int lineNumber,
StaticScope staticScope,
boolean needsCodeCoverage) |
IRModuleBody(IRManager manager,
IRScope lexicalParent,
ByteList name,
int lineNumber,
StaticScope staticScope,
boolean executesOnce) |
IRScope(IRManager manager,
IRScope lexicalParent,
ByteList name,
int lineNumber,
StaticScope staticScope) |
Modifier and Type | Field and Description |
---|---|
static ByteList |
ArrayDerefInstr.AREF |
static ByteList |
ArrayDerefInstr.ASET |
static ByteList |
AsStringInstr.TO_S |
Modifier and Type | Field and Description |
---|---|
ByteList |
FrozenString.bytelist |
Modifier and Type | Method and Description |
---|---|
ByteList |
FrozenString.getByteList() |
ByteList |
StringLiteral.getByteList() |
ByteList |
Symbol.getBytes() |
ByteList |
Regexp.getSource() |
Constructor and Description |
---|
FrozenString(ByteList bytelist,
int coderange,
java.lang.String file,
int line)
Used by persistence and by .freeze optimization
|
Regexp(ByteList source,
RegexpOptions options) |
StringLiteral(ByteList val,
int coderange,
java.lang.String file,
int line) |
Modifier and Type | Method and Description |
---|---|
ByteList |
IRReaderDecoder.decodeByteList() |
ByteList |
IRReaderStream.decodeByteList() |
ByteList |
IRReaderDecoder.getFilename() |
ByteList |
IRReaderStream.getFilename() |
Modifier and Type | Method and Description |
---|---|
static IRScope |
IRReader.createScope(IRManager manager,
IRScopeType type,
ByteList byteName,
java.lang.String file,
int line,
IRScope lexicalParent,
Signature signature,
StaticScope staticScope) |
void |
IRWriterEncoder.encode(ByteList bytelist) |
void |
IRWriterStream.encode(ByteList value) |
void |
IRWriterAnalyzer.encode(ByteList value) |
Constructor and Description |
---|
IRReaderStream(IRManager manager,
byte[] bytes,
ByteList filename) |
IRReaderStream(IRManager manager,
java.io.File file,
ByteList filename) |
Modifier and Type | Method and Description |
---|---|
static ByteList |
IRRuntimeHelpers.newByteListFromRaw(Ruby runtime,
java.lang.String str,
java.lang.String encoding) |
Modifier and Type | Method and Description |
---|---|
static RubyString |
IRRuntimeHelpers.newFrozenString(ThreadContext context,
ByteList bytelist,
int coderange,
java.lang.String file,
int line) |
static RubyRegexp |
IRRuntimeHelpers.newLiteralRegexp(ThreadContext context,
ByteList source,
int embeddedOptions) |
static RubyRegexp |
IRRuntimeHelpers.newLiteralRegexp(ThreadContext context,
ByteList source,
RegexpOptions options) |
Modifier and Type | Field and Description |
---|---|
protected ByteList |
RegexpObjectSite.pattern |
Modifier and Type | Method and Description |
---|---|
static ByteList |
Bootstrap.bytelist(java.lang.String value,
java.lang.String encodingName) |
Modifier and Type | Method and Description |
---|---|
static RubyString |
Bootstrap.frozenString(ThreadContext context,
java.lang.invoke.MutableCallSite site,
ByteList value,
int cr,
java.lang.String file,
int line) |
void |
IRBytecodeAdapter6.pushByteList(ByteList bl) |
abstract void |
IRBytecodeAdapter.pushByteList(ByteList bl)
Stack required: none
|
void |
IRBytecodeAdapter6.pushFrozenString(ByteList bl,
int cr,
java.lang.String file,
int line) |
abstract void |
IRBytecodeAdapter.pushFrozenString(ByteList bl,
int cr,
java.lang.String path,
int line)
Stack required: none
|
void |
IRBytecodeAdapter6.pushRegexp(ByteList source,
int options) |
abstract void |
IRBytecodeAdapter.pushRegexp(ByteList source,
int options)
Build and save a literal regular expression.
|
void |
IRBytecodeAdapter6.pushString(ByteList bl,
int cr) |
abstract void |
IRBytecodeAdapter.pushString(ByteList bl,
int cr)
Stack required: none
|
void |
IRBytecodeAdapter6.pushSymbol(ByteList bytes) |
abstract void |
IRBytecodeAdapter.pushSymbol(ByteList bytes)
Push a symbol on the stack.
|
void |
IRBytecodeAdapter6.pushSymbolProc(ByteList bytes) |
abstract void |
IRBytecodeAdapter.pushSymbolProc(ByteList bytes)
Push a Symbol.to_proc on the stack.
|
static RubyString |
Bootstrap.string(ThreadContext context,
ByteList value,
int cr) |
Constructor and Description |
---|
RegexpObjectSite(java.lang.invoke.MethodType type,
ByteList pattern,
int embeddedOptions) |
Modifier and Type | Field and Description |
---|---|
static ByteList |
LexingCommon.AMPERSAND |
static ByteList |
LexingCommon.AMPERSAND_AMPERSAND |
static ByteList |
LexingCommon.AMPERSAND_DOT |
static ByteList |
LexingCommon.BACKSLASH |
static ByteList |
LexingCommon.BACKTICK |
static ByteList |
LexingCommon.BANG |
static ByteList |
LexingCommon.BANG_EQ |
static ByteList |
LexingCommon.BANG_TILDE |
static ByteList |
LexingCommon.BEGIN_DOC_MARKER |
static ByteList |
LexingCommon.CALL |
static ByteList |
LexingCommon.CARET |
static ByteList |
LexingCommon.CODING |
static ByteList |
LexingCommon.COLON |
static ByteList |
LexingCommon.COLON_COLON |
static ByteList |
LexingCommon.COMMA |
static ByteList |
LexingCommon.DOLLAR_BANG |
static ByteList |
LexingCommon.DOLLAR_DOT |
static ByteList |
LexingCommon.DOLLAR_UNDERSCORE |
static ByteList |
LexingCommon.DOT |
static ByteList |
LexingCommon.DOT_DOT |
static ByteList |
LexingCommon.DOT_DOT_DOT |
static ByteList |
LexingCommon.END_DOC_MARKER |
static ByteList |
LexingCommon.END_MARKER |
static ByteList |
LexingCommon.EQ |
static ByteList |
LexingCommon.EQ_EQ |
static ByteList |
LexingCommon.EQ_EQ_EQ |
static ByteList |
LexingCommon.EQ_GT |
static ByteList |
LexingCommon.EQ_TILDE |
static ByteList |
LexingCommon.GT |
static ByteList |
LexingCommon.GT_EQ |
static ByteList |
LexingCommon.GT_GT |
static ByteList |
LexingCommon.LBRACKET |
static ByteList |
LexingCommon.LBRACKET_RBRACKET |
static ByteList |
LexingCommon.LBRACKET_RBRACKET_EQ |
static ByteList |
LexingCommon.LCURLY |
ByteList |
LexingCommon.lex_lastline |
protected ByteList |
LexingCommon.lex_nextline |
ByteList |
LexingCommon.lexb |
static ByteList |
LexingCommon.LT |
static ByteList |
LexingCommon.LT_EQ |
static ByteList |
LexingCommon.LT_EQ_RT |
static ByteList |
LexingCommon.LT_LT |
static ByteList |
LexingCommon.MINUS |
static ByteList |
LexingCommon.MINUS_AT |
static ByteList |
LexingCommon.MINUS_GT |
static ByteList |
LexingCommon.OR |
static ByteList |
LexingCommon.OR_OR |
static ByteList |
LexingCommon.PERCENT |
static ByteList |
LexingCommon.PLUS |
static ByteList |
LexingCommon.PLUS_AT |
static ByteList |
LexingCommon.Q |
static ByteList |
LexingCommon.QQ |
static ByteList |
LexingCommon.QUESTION |
static ByteList |
LexingCommon.RBRACKET |
static ByteList |
LexingCommon.RCURLY |
static ByteList |
LexingCommon.RPAREN |
static ByteList |
LexingCommon.SEMICOLON |
static ByteList |
LexingCommon.SLASH |
static ByteList |
LexingCommon.STAR |
static ByteList |
LexingCommon.STAR_STAR |
static ByteList |
LexingCommon.TILDE |
Modifier and Type | Method and Description |
---|---|
ByteList |
LexingCommon.createTokenByteList() |
ByteList |
LexingCommon.createTokenByteList(int start) |
ByteList |
LexingCommon.getCurrentArg() |
ByteList |
ByteListLexerSource.gets() |
abstract ByteList |
LexerSource.gets() |
ByteList |
GetsLexerSource.gets() |
Modifier and Type | Method and Description |
---|---|
void |
LexingCommon.checkRegexpFragment(Ruby runtime,
ByteList value,
RegexpOptions options) |
void |
LexingCommon.checkRegexpSyntax(Ruby runtime,
ByteList value,
RegexpOptions options) |
static int |
LexingCommon.dedent_string(ByteList string,
int width) |
protected void |
LexingCommon.magicCommentEncoding(ByteList encoding) |
static int |
LexingCommon.magicCommentMarker(ByteList str,
int begin) |
protected boolean |
LexingCommon.onMagicComment(java.lang.String name,
ByteList value) |
boolean |
LexingCommon.parser_magic_comment(ByteList magicLine) |
protected abstract void |
LexingCommon.setCompileOptionFlag(java.lang.String name,
ByteList value) |
void |
LexingCommon.setCurrentArg(ByteList current_arg) |
protected abstract void |
LexingCommon.setEncoding(ByteList name) |
void |
LexingCommon.setRegexpEncoding(Ruby runtime,
ByteList value,
RegexpOptions options) |
protected abstract void |
LexingCommon.setTokenInfo(java.lang.String name,
ByteList value) |
protected boolean |
LexingCommon.strncmp(ByteList one,
ByteList two,
int length) |
boolean |
LexingCommon.tokadd_mbchar(int first_byte,
ByteList buffer) |
void |
LexingCommon.tokAdd(int first_byte,
ByteList buffer) |
void |
LexingCommon.tokaddmbc(int codepoint,
ByteList buffer)
This looks deceptively like tokadd_mbchar(int, ByteList) but it differs in that it uses
the bytelists encoding and the first parameter is a full codepoint and not the first byte
of a mbc sequence.
|
void |
LexingCommon.tokCopy(int length,
ByteList buffer) |
void |
LexingCommon.validateFormalIdentifier(ByteList identifier) |
boolean |
LexingCommon.whole_match_p(ByteList eos,
boolean indent) |
Constructor and Description |
---|
ByteListLexerSource(java.lang.String sourceName,
int line,
ByteList in,
RubyArray list)
Create our food-source for the lexer.
|
Modifier and Type | Field and Description |
---|---|
ByteList |
RubyLexer.Keyword.bytes |
protected ByteList |
HeredocTerm.lastLine |
Modifier and Type | Method and Description |
---|---|
protected ByteList |
StringTerm.createByteList(RubyLexer lexer) |
Modifier and Type | Method and Description |
---|---|
protected int |
RubyLexer.asTruth(java.lang.String name,
ByteList value) |
StrNode |
RubyLexer.createStr(ByteList buffer,
int flags) |
protected int |
HeredocTerm.error(RubyLexer lexer,
int len,
ByteList str,
ByteList eos) |
static RubyLexer.Keyword |
RubyLexer.getKeyword(ByteList str) |
int |
StringTerm.parseStringIntoBuffer(RubyLexer lexer,
ByteList buffer,
org.jcodings.Encoding encoding) |
int |
RubyLexer.readUTFEscape(ByteList buffer,
boolean stringLiteral,
boolean symbolLiteral) |
void |
RubyLexer.readUTFEscapeRegexpLiteral(ByteList buffer) |
protected void |
RubyLexer.setCompileOptionFlag(java.lang.String name,
ByteList value) |
protected void |
RubyLexer.setEncoding(ByteList name) |
protected void |
RubyLexer.setTokenInfo(java.lang.String name,
ByteList value) |
Constructor and Description |
---|
HeredocTerm(ByteList marker,
int func,
int nth,
int line,
ByteList lastLine) |
Modifier and Type | Field and Description |
---|---|
static ByteList |
ParserSupport.INTERNAL_ID |
Modifier and Type | Method and Description |
---|---|
ByteList |
ParserSupport.formal_argument(ByteList identifier) |
ByteList |
ParserSupport.shadowing_lvar(ByteList nameBytes) |
Modifier and Type | Method and Description |
---|---|
ArgumentNode |
ParserSupport.arg_var(ByteList id) |
AssignableNode |
ParserSupport.assignableInCurr(ByteList nameBytes,
Node value) |
AssignableNode |
ParserSupport.assignableKeyword(ByteList name,
Node value) |
AssignableNode |
ParserSupport.assignableLabelOrIdentifier(ByteList name,
Node value) |
static int |
ParserSupport.associateEncoding(ByteList buffer,
org.jcodings.Encoding newEncoding,
int codeRange) |
Node |
ParserSupport.asSymbol(ISourcePosition position,
ByteList value) |
Node |
ParserSupport.attrset(Node receiver,
ByteList name)
Define an attribute set condition so we can return lhs
|
Node |
ParserSupport.attrset(Node receiver,
ByteList callType,
ByteList name) |
Node |
ParserSupport.declareIdentifier(ByteList name) |
ByteList |
ParserSupport.formal_argument(ByteList identifier) |
Node |
ParserSupport.getOperatorCallNode(Node firstNode,
ByteList operator) |
Node |
ParserSupport.getOperatorCallNode(Node firstNode,
ByteList operator,
Node secondNode) |
Node |
ParserSupport.getOperatorCallNode(Node firstNode,
ByteList operator,
Node secondNode,
ISourcePosition defaultPosition) |
boolean |
ParserSupport.is_local_id(ByteList name) |
boolean |
ParserSupport.isLazy(ByteList callType) |
ArgsTailHolder |
ParserSupport.new_args_tail(ISourcePosition position,
ListNode keywordArg,
ByteList keywordRestArgName,
BlockArgNode blockArg) |
Node |
ParserSupport.new_attrassign(ISourcePosition position,
Node receiver,
ByteList name,
Node args,
boolean isLazy) |
Node |
ParserSupport.new_bv(ByteList identifier) |
Node |
ParserSupport.new_call(Node receiver,
ByteList callType,
ByteList name,
Node argsNode,
Node iter) |
Node |
ParserSupport.new_call(Node receiver,
ByteList name,
Node argsNode,
Node iter) |
Colon2Node |
ParserSupport.new_colon2(ISourcePosition position,
Node leftNode,
ByteList name) |
Colon3Node |
ParserSupport.new_colon3(ISourcePosition position,
ByteList name) |
Node |
ParserSupport.new_fcall(ByteList operation) |
Node |
ParserSupport.new_opElementAsgnNode(Node receiverNode,
ByteList operatorName,
Node argsNode,
Node valueNode) |
Node |
ParserSupport.newOpAsgn(ISourcePosition position,
Node receiverNode,
ByteList callType,
Node valueNode,
ByteList variableName,
ByteList operatorName) |
Node |
ParserSupport.newOpConstAsgn(ISourcePosition position,
Node lhs,
ByteList operatorName,
Node rhs) |
Node |
Parser.parse(java.lang.String file,
ByteList content,
DynamicScope blockScope,
ParserConfiguration configuration) |
ByteList |
ParserSupport.shadowing_lvar(ByteList nameBytes) |
RubySymbol |
ParserSupport.symbolID(ByteList identifierValue) |
Modifier and Type | Method and Description |
---|---|
static RubyString |
Helpers.appendByteList(RubyString target,
ByteList source)
Deprecated.
|
static java.lang.String |
Helpers.byteListToString(ByteList bytes)
Convert a ByteList into a Java String by using its Encoding's Charset.
|
static java.lang.String |
Helpers.decodeByteList(Ruby runtime,
ByteList value)
Decode a given ByteList to a Java string.
|
static IRubyObject |
Helpers.stringOrNil(ByteList value,
ThreadContext context)
Deprecated.
|
static java.lang.String |
Helpers.symbolBytesToString(ByteList value)
Decode the given value to a Java string using the following rules:
* If the string is all US-ASCII characters, it will be decoded as US-ASCII.
|
Modifier and Type | Method and Description |
---|---|
org.jcodings.EncodingDB.Entry |
EncodingService.findAliasEntry(ByteList bytes) |
org.jcodings.EncodingDB.Entry |
EncodingService.findEncodingEntry(ByteList bytes) |
org.jcodings.Encoding |
EncodingService.findEncodingNoError(ByteList str) |
org.jcodings.EncodingDB.Entry |
EncodingService.findEncodingOrAliasEntry(ByteList bytes) |
org.jcodings.Encoding |
EncodingService.findEncodingWithError(ByteList name)
Find a non-special encoding, raising argument error if it does not exist.
|
org.jcodings.Encoding |
EncodingService.loadEncoding(ByteList name) |
Modifier and Type | Method and Description |
---|---|
ByteList |
UnmarshalStream.unmarshalString() |
Modifier and Type | Method and Description |
---|---|
void |
MarshalStream.dumpSymbol(ByteList value) |
boolean |
MarshalCache.isSymbolRegistered(ByteList sym) |
void |
MarshalCache.registerSymbol(ByteList sym) |
void |
MarshalStream.registerSymbol(ByteList sym) |
void |
MarshalStream.writeString(ByteList value) |
void |
MarshalCache.writeSymbolLink(MarshalStream output,
ByteList sym) |
Modifier and Type | Field and Description |
---|---|
static ByteList |
CommonByteLists._END_ |
static ByteList |
CommonByteLists.AMPERSAND_AMPERSAND |
static ByteList |
CommonByteLists.AREF_METHOD |
static ByteList |
CommonByteLists.ASET_METHOD |
static ByteList |
CommonByteLists.BACKTRACE_IN |
static ByteList |
CommonByteLists.COLON |
static ByteList |
CommonByteLists.COLON_COLON |
static ByteList |
CommonByteLists.CONSTANTS |
static ByteList |
CommonByteLists.DEFINE_METHOD_METHOD |
static ByteList |
CommonByteLists.DOLLAR_BACKSLASH |
static ByteList |
CommonByteLists.DOLLAR_SLASH |
static ByteList |
CommonByteLists.EACH |
static ByteList |
CommonByteLists.EMPTY |
static ByteList |
ByteList.EMPTY_BYTELIST |
static ByteList[] |
StringSupport.EMPTY_BYTELIST_ARRAY |
static ByteList |
CommonByteLists.EQUAL_TILDE |
static ByteList |
CommonByteLists.EXCEPTION |
static ByteList |
CommonByteLists.FREEZE_METHOD |
static ByteList |
CommonByteLists.METHODS |
static ByteList |
CommonByteLists.NEW |
static ByteList |
CommonByteLists.NEW_METHOD |
static ByteList |
CommonByteLists.NOT_IMPLEMENTED_ERROR |
static ByteList |
CommonByteLists.OR_OR |
static ByteList |
CommonByteLists.REFINE_METHOD |
static ByteList |
CommonByteLists.SINGLE_QUOTE |
static ByteList |
CommonByteLists.STAR |
static ByteList |
CommonByteLists.USING_METHOD |
Modifier and Type | Method and Description |
---|---|
static ByteList |
StringSupport.addByteLists(ByteList value1,
ByteList value2) |
ByteList |
ByteList.append(byte b)
Append a single byte to the ByteList
|
ByteList |
ByteList.append(java.io.InputStream input,
int len)
Append up to length bytes from InputStream to the ByteList.
|
ByteList |
ByteList.append(int b)
Append a single int to the ByteList
|
static ByteList |
StringSupport.caseMap(Ruby runtime,
ByteList src,
org.jcodings.IntHolder flags,
org.jcodings.Encoding enc) |
static ByteList |
ByteList.create(java.lang.CharSequence s)
Create a bytelist with ISO_8859_1 encoding from the provided CharSequence.
|
static ByteList |
StringSupport.dumpCommon(Ruby runtime,
ByteList bytelist)
rb_str_dump
|
static ByteList |
StringSupport.dumpCommon(Ruby runtime,
ByteList byteList,
boolean quoteOnlyIfNeeded) |
ByteList |
ByteList.dup()
creates a duplicate of this bytelist but only in the case of a stringValue and its resulting
hash value.
|
ByteList |
ByteList.dup(int length) |
ByteList |
ByteListHolder.getByteList() |
static ByteList |
ConvertBytes.intToBinaryByteList(int i) |
static ByteList |
ConvertBytes.intToHexByteList(int i) |
static ByteList |
ConvertBytes.intToHexByteList(int i,
boolean upper) |
static ByteList |
ConvertBytes.intToOctalByteList(int i) |
static ByteList |
ConvertBytes.longToBinaryByteList(long i) |
static ByteList |
ConvertBytes.longToByteList(long i) |
static ByteList |
ConvertBytes.longToByteList(long i,
int radix) |
static ByteList |
ConvertBytes.longToByteList(long i,
int radix,
byte[] digitmap) |
static ByteList |
ConvertBytes.longToHexByteList(long i) |
static ByteList |
ConvertBytes.longToHexByteList(long i,
boolean upper) |
static ByteList |
ConvertBytes.longToOctalByteList(long i) |
ByteList |
ByteList.makeShared(int index,
int len)
Make a shared copy of this ByteList.
|
static ByteList |
Pack.packInt_i(ByteList result,
int s) |
static ByteList |
RegexpSupport.preprocess(Ruby runtime,
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 ByteList |
PackUtils.qpencode(ByteList io2Append,
ByteList i2Encode,
int iLength)
encodes a String with the Quoted printable, MIME encoding (see RFC2045).
|
static ByteList |
RegexpSupport.regexpDescription19(Ruby runtime,
ByteList bytes,
RegexpOptions options,
org.jcodings.Encoding enc) |
static ByteList |
StringSupport.replaceInternal(int beg,
int len,
ByteListHolder source,
CodeRangeable repl) |
ByteList |
ByteList.shallowDup()
Create a new ByteList but do not array copy the byte backing store.
|
static ByteList |
StringSupport.succCommon(ByteList original) |
static ByteList |
StringSupport.succCommon(Ruby runtime,
ByteList original) |
Modifier and Type | Method and Description |
---|---|
static java.util.List<ByteList> |
Dir.push_glob(Ruby runtime,
java.lang.String cwd,
ByteList globByteList,
int flags) |
Modifier and Type | Method and Description |
---|---|
static ByteList |
StringSupport.addByteLists(ByteList value1,
ByteList value2) |
void |
ByteList.append(ByteList moreBytes)
Append moreBytes onto the end of the current ByteList.
|
void |
ByteList.append(ByteList moreBytes,
int index,
int len)
Append moreBytes onto the end of the current ByteList with +index as the new begin for
len bytes from the moreBytes ByteList.
|
static void |
RegexpSupport.appendOptions(ByteList to,
RegexpOptions options) |
static void |
RegexpSupport.appendRegexpString19(Ruby runtime,
ByteList to,
byte[] bytes,
int start,
int len,
org.jcodings.Encoding enc,
org.jcodings.Encoding resEnc) |
static org.jcodings.Encoding |
StringSupport.areCompatible(ByteList str1,
ByteList str2) |
static void |
StringSupport.asciiOnlyCaseMap(Ruby runtime,
ByteList value,
org.jcodings.IntHolder flags,
org.jcodings.Encoding enc) |
static java.lang.String |
StringSupport.byteListAsString(ByteList bytes) |
static double |
ConvertDouble.byteListToDouble19(ByteList bytes,
boolean strict)
Converts supplied ByteList into a double.
|
static RubyInteger |
ConvertBytes.byteListToInum(Ruby runtime,
ByteList str,
int base,
boolean badcheck)
rb_cstr_to_inum
|
static RubyInteger |
ConvertBytes.byteListToInum(Ruby runtime,
ByteList str,
int off,
int end,
int base,
boolean badcheck) |
static RubyInteger |
ConvertBytes.byteListToInum19(Ruby runtime,
ByteList str,
int base,
boolean badcheck)
Deprecated.
|
static int |
StringSupport.bytesToFixBrokenTrailingCharacter(ByteList val,
int usingLength) |
int |
ByteList.caseInsensitiveCmp(ByteList other)
Do a case insensitive comparison with other ByteList with return types similiar to compareTo.
|
static ByteList |
StringSupport.caseMap(Ruby runtime,
ByteList src,
org.jcodings.IntHolder flags,
org.jcodings.Encoding enc) |
int |
ByteList.cmp(ByteList other)
This comparison matches MRI comparison of Strings (rb_str_cmp).
|
static int |
StringSupport.codePoint(Ruby runtime,
ByteList value) |
static int |
StringSupport.codeRangeScan(org.jcodings.Encoding enc,
ByteList bytes) |
java.util.List<RubyDateFormatter.Token> |
RubyDateFormatter.compilePattern(ByteList pattern,
boolean dateLibrary) |
static int |
StringSupport.countCommon19(ByteList str,
Ruby runtime,
boolean[] table,
StringSupport.TrTables tables,
org.jcodings.Encoding enc)
Deprecated.
|
static ByteList |
StringSupport.dumpCommon(Ruby runtime,
ByteList bytelist)
rb_str_dump
|
static ByteList |
StringSupport.dumpCommon(Ruby runtime,
ByteList byteList,
boolean quoteOnlyIfNeeded) |
static boolean |
ByteListHelper.eachCodePoint(ByteList bytelist,
ByteListHelper.CodePoint each)
This method assumes the ByteList will be a valid string for the encoding which it is marked as.
|
static int |
Pack.encode(Ruby runtime,
int occurrences,
ByteList result,
RubyArray list,
int index,
org.jruby.util.Pack.ConverterExecutor converter) |
abstract void |
Pack.Converter.encode(Ruby runtime,
IRubyObject from,
ByteList result) |
static void |
Pack.encodeUM(Ruby runtime,
ByteList lCurElemString,
int occurrences,
boolean ignoreStar,
char type,
ByteList result) |
boolean |
ByteList.endsWith(ByteList other)
Does this ByteList end with the supplied ByteList?
|
boolean |
ByteList.equal(ByteList other)
Does this ByteList equal the other ByteList?
|
static int |
StringSupport.index(ByteList source,
ByteList other,
int offset,
org.jcodings.Encoding enc) |
int |
ByteList.indexOf(ByteList find)
Get the index of first occurrence of Bytelist find in this ByteList.
|
int |
ByteList.indexOf(ByteList find,
int i)
Get the index of first occurrence of Bytelist find in this ByteList starting at index i.
|
void |
ConvertDouble.DoubleConverter.init(ByteList list,
boolean isStrict) |
static RubyString |
RubyStringBuilder.inspectIdentifierByteList(Ruby runtime,
ByteList byteList) |
int |
ByteList.lastIndexOf(ByteList find)
Get the index of last occurrence of find in ByteList from the end of the ByteList.
|
int |
ByteList.lastIndexOf(ByteList find,
int pos)
Get the index of last occurrence of find in ByteList from the end of the ByteList.
|
static int |
StringSupport.multiByteCasecmp(org.jcodings.Encoding enc,
ByteList value,
ByteList otherValue) |
static boolean |
StringSupport.multiByteSqueeze(ByteList value,
boolean[] squeeze,
StringSupport.TrTables tables,
org.jcodings.Encoding enc,
boolean isArg) |
static boolean |
StringSupport.multiByteSqueeze(Ruby runtime,
ByteList value,
boolean[] squeeze,
StringSupport.TrTables tables,
org.jcodings.Encoding enc,
boolean isArg) |
static RubyString |
Pack.pack(Ruby runtime,
RubyArray list,
ByteList formatString)
Same as pack but defaults tainting of output to false.
|
static ByteList |
Pack.packInt_i(ByteList result,
int s) |
double |
ConvertDouble.DoubleConverter.parse(ByteList list,
boolean strict,
boolean is19)
Everything runs in 1.9+ mode now, so the `is19` parameter is vestigial.
|
static int |
StringSupport.positionEndForScan(ByteList value,
org.joni.Matcher matcher,
org.jcodings.Encoding enc,
int begin,
int range)
rb_str_scan
|
static ByteList |
RegexpSupport.preprocess(Ruby runtime,
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 java.util.List<ByteList> |
Dir.push_glob(Ruby runtime,
java.lang.String cwd,
ByteList globByteList,
int flags) |
static ByteList |
PackUtils.qpencode(ByteList io2Append,
ByteList i2Encode,
int iLength)
encodes a String with the Quoted printable, MIME encoding (see RFC2045).
|
static int |
RegexpSupport.raisePreprocessError(Ruby runtime,
ByteList str,
java.lang.String err,
RegexpSupport.ErrorMode mode) |
static void |
RegexpSupport.raiseRegexpError19(Ruby runtime,
ByteList bytes,
org.jcodings.Encoding enc,
RegexpOptions options,
java.lang.String err) |
static int |
RegexpSupport.readEscapedByte(Ruby runtime,
byte[] to,
int toP,
byte[] bytes,
int p,
int end,
ByteList str,
RegexpSupport.ErrorMode mode) |
static ByteList |
RegexpSupport.regexpDescription19(Ruby runtime,
ByteList bytes,
RegexpOptions options,
org.jcodings.Encoding enc) |
void |
ByteList.replace(int targetOff,
int targetLen,
ByteList source)
Replace a region of bytes in this ByteList with bytes from the given ByteList.
|
static int |
StringSupport.rindex(ByteList source,
int sourceChars,
int subChars,
int pos,
CodeRangeable subStringCodeRangeable,
org.jcodings.Encoding enc) |
static int |
StringSupport.searchNonAscii(ByteList bytes) |
static boolean |
StringSupport.singleByteSqueeze(ByteList value,
boolean[] squeeze) |
static <T> T |
ByteListHelper.split(ByteList value,
ByteList pattern,
ByteListHelper.Visit<ByteList,T> bodyVisitor,
ByteListHelper.Visit<ByteList,T> headVisitor)
This method will split a string and call a visitor for each segment between the split pattern.
|
static boolean |
Sprintf.sprintf(ByteList to,
java.lang.CharSequence format,
IRubyObject args) |
static boolean |
Sprintf.sprintf(ByteList to,
java.util.Locale locale,
java.lang.CharSequence format,
IRubyObject args) |
static boolean |
Sprintf.sprintf(ByteList to,
RubyString format,
IRubyObject args) |
static boolean |
Sprintf.sprintf(Ruby runtime,
ByteList to,
java.lang.CharSequence format,
int arg) |
static boolean |
Sprintf.sprintf(Ruby runtime,
ByteList to,
java.lang.CharSequence format,
long arg) |
static boolean |
Sprintf.sprintf1_9(ByteList to,
java.util.Locale locale,
java.lang.CharSequence format,
IRubyObject args) |
boolean |
ByteList.startsWith(ByteList other)
Does this ByteList start with the supplied ByteList?
|
boolean |
ByteList.startsWith(ByteList other,
int toffset) |
static int |
StringSupport.strCount(ByteList str,
boolean[] table,
StringSupport.TrTables tables,
org.jcodings.Encoding enc)
rb_str_count
|
static int |
StringSupport.strCount(ByteList str,
Ruby runtime,
boolean[] table,
StringSupport.TrTables tables,
org.jcodings.Encoding enc) |
static int |
StringSupport.strLength(ByteList bytes) |
static int |
StringSupport.strLengthFromRubyString(CodeRangeable string,
ByteList bytes,
org.jcodings.Encoding enc) |
static long |
StringSupport.strLengthWithCodeRange(ByteList bytes) |
static long |
StringSupport.strLengthWithCodeRange(ByteList bytes,
org.jcodings.Encoding enc) |
static ByteList |
StringSupport.succCommon(ByteList original) |
static ByteList |
StringSupport.succCommon(Ruby runtime,
ByteList original) |
static StringSupport.TrTables |
StringSupport.trSetupTable(ByteList str,
boolean[] stable,
StringSupport.TrTables tables,
boolean first,
org.jcodings.Encoding enc) |
static StringSupport.TrTables |
StringSupport.trSetupTable(ByteList str,
Ruby runtime,
boolean[] stable,
StringSupport.TrTables tables,
boolean first,
org.jcodings.Encoding enc) |
static boolean |
RegexpSupport.unescapeNonAscii(Ruby runtime,
ByteList to,
byte[] bytes,
int p,
int end,
org.jcodings.Encoding enc,
org.jcodings.Encoding[] encp,
ByteList str,
RegexpSupport.ErrorMode mode)
Unescape non-ascii elements in the given string, appending the results
to the given bytelist if provided.
|
static RubyArray |
Pack.unpack(Ruby runtime,
ByteList encodedString,
ByteList formatString) |
static RubyArray |
Pack.unpack(ThreadContext context,
RubyString encoded,
ByteList formatString) |
static IRubyObject |
Pack.unpack1WithBlock(ThreadContext context,
RubyString encoded,
ByteList formatString,
Block block) |
static RubyArray |
Pack.unpackWithBlock(ThreadContext context,
Ruby runtime,
ByteList encodedString,
ByteList formatString,
Block block)
Deprecated.
|
static RubyArray |
Pack.unpackWithBlock(ThreadContext context,
RubyString encoded,
ByteList formatString,
Block block)
Decodes str (which may contain binary data) according to the format
string, returning an array of each value extracted.
|
void |
ByteList.unsafeReplace(int beg,
int len,
ByteList nbytes)
Unsafe version of replace(int,int,ByteList).
|
static int |
StringSupport.utf8Length(ByteList bytes) |
Modifier and Type | Method and Description |
---|---|
static <T> T |
ByteListHelper.split(ByteList value,
ByteList pattern,
ByteListHelper.Visit<ByteList,T> bodyVisitor,
ByteListHelper.Visit<ByteList,T> headVisitor)
This method will split a string and call a visitor for each segment between the split pattern.
|
static <T> T |
ByteListHelper.split(ByteList value,
ByteList pattern,
ByteListHelper.Visit<ByteList,T> bodyVisitor,
ByteListHelper.Visit<ByteList,T> headVisitor)
This method will split a string and call a visitor for each segment between the split pattern.
|
Constructor and Description |
---|
ByteList(ByteList wrap)
Create a new instance of byte list with the same contents as the passed in ByteList wrap.
|
ByteList(ByteList wrap,
int index,
int len)
Create a new instance of ByteList using wrap as a backing store where index is the first
index in the byte array where the data starts and len indicates how long the data portion
of the bytelist is.
|
ConvertBytes(Ruby runtime,
ByteList str,
int base,
boolean badcheck) |
ConvertBytes(Ruby runtime,
ByteList str,
int base,
boolean badcheck,
boolean is19)
Deprecated.
|
TR(ByteList bytes) |
Modifier and Type | Field and Description |
---|---|
static ByteList |
Stream.PARAGRAPH_DELIMETER
Deprecated.
|
static ByteList |
Stream.PARAGRAPH_SEPARATOR
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
static ByteList |
EncodingUtils.econvAppend(ThreadContext context,
org.jcodings.transcode.EConv ec,
ByteList sByteList,
ByteList dst,
int flags) |
static ByteList |
EncodingUtils.econvStrConvert(ThreadContext context,
org.jcodings.transcode.EConv ec,
ByteList src,
int flags) |
static ByteList |
EncodingUtils.econvSubstrAppend(ThreadContext context,
org.jcodings.transcode.EConv ec,
ByteList src,
ByteList dst,
int flags) |
ByteList |
ChannelStream.fgets(ByteList separatorString)
Deprecated.
|
ByteList |
Stream.fgets(ByteList separatorString)
Deprecated.
|
ByteList |
CRLFStreamWrapper.fgets(ByteList separatorString)
Deprecated.
|
ByteList |
ChannelStream.fread(int number)
Deprecated.
|
ByteList |
Stream.fread(int number)
Deprecated.
|
ByteList |
CRLFStreamWrapper.fread(int number)
Deprecated.
|
ByteList |
ChannelStream.read(int number)
Deprecated.
|
ByteList |
Stream.read(int number)
Deprecated.
|
ByteList |
CRLFStreamWrapper.read(int number)
Deprecated.
|
ByteList |
ChannelStream.readall()
Deprecated.
readall do busy loop for the IO which has NONBLOCK bit. You
should implement the logic by yourself with fread().
|
ByteList |
Stream.readall()
Deprecated.
|
ByteList |
CRLFStreamWrapper.readall()
Deprecated.
|
ByteList |
ChannelStream.readnonblock(int number)
Deprecated.
|
ByteList |
ChannelStream.readpartial(int number)
Deprecated.
|
static ByteList |
EncodingUtils.strConvEnc(ThreadContext context,
ByteList value,
org.jcodings.Encoding fromEncoding,
org.jcodings.Encoding toEncoding) |
static ByteList |
EncodingUtils.strConvEncOpts(ThreadContext context,
ByteList str,
org.jcodings.Encoding fromEncoding,
org.jcodings.Encoding toEncoding,
int ecflags,
IRubyObject ecopts) |
static ByteList |
EncodingUtils.transcodeString(java.lang.String string,
org.jcodings.Encoding toEncoding,
int ecflags)
A version of transcodeLoop for working without any Ruby runtime available.
|
Modifier and Type | Method and Description |
---|---|
static java.net.InetSocketAddress |
Sockaddr.addressFromSockaddr_in(ThreadContext context,
ByteList val) |
static jnr.unixsocket.UnixSocketAddress |
Sockaddr.addressFromSockaddr_un(ThreadContext context,
ByteList bl) |
int |
OpenFile.appendline(ThreadContext context,
int delim,
ByteList[] strp,
int[] lp) |
static ByteList |
EncodingUtils.econvAppend(ThreadContext context,
org.jcodings.transcode.EConv ec,
ByteList sByteList,
ByteList dst,
int flags) |
static ByteList |
EncodingUtils.econvStrConvert(ThreadContext context,
org.jcodings.transcode.EConv ec,
ByteList src,
int flags) |
static ByteList |
EncodingUtils.econvSubstrAppend(ThreadContext context,
org.jcodings.transcode.EConv ec,
ByteList src,
ByteList dst,
int flags) |
static int |
EncodingUtils.encCrStrBufCat(Ruby runtime,
CodeRangeable str,
ByteList ptr,
org.jcodings.Encoding ptrEnc,
int ptr_cr) |
static void |
EncodingUtils.encStrBufCat(Ruby runtime,
RubyString str,
ByteList ptr) |
static void |
EncodingUtils.encStrBufCat(Ruby runtime,
RubyString str,
ByteList ptr,
org.jcodings.Encoding enc) |
ByteList |
ChannelStream.fgets(ByteList separatorString)
Deprecated.
|
ByteList |
Stream.fgets(ByteList separatorString)
Deprecated.
|
ByteList |
CRLFStreamWrapper.fgets(ByteList separatorString)
Deprecated.
|
int |
ChannelStream.fwrite(ByteList string)
Deprecated.
|
int |
Stream.fwrite(ByteList string)
Deprecated.
|
int |
CRLFStreamWrapper.fwrite(ByteList string)
Deprecated.
|
static org.jcodings.Encoding |
EncodingUtils.getActualEncoding(org.jcodings.Encoding enc,
ByteList byteList) |
static jnr.constants.platform.AddressFamily |
Sockaddr.getAddressFamilyFromSockaddr(Ruby runtime,
ByteList val) |
static org.jcodings.Encoding |
EncodingUtils.getEncoding(ByteList str) |
int |
ChannelStream.getline(ByteList dst,
byte terminator)
Deprecated.
|
int |
Stream.getline(ByteList dst,
byte terminator)
Deprecated.
Read all bytes up to and including a terminator byte.
|
int |
CRLFStreamWrapper.getline(ByteList dst,
byte terminator)
Deprecated.
|
int |
ChannelStream.getline(ByteList dst,
byte terminator,
long limit)
Deprecated.
|
int |
Stream.getline(ByteList dst,
byte terminator,
long limit)
Deprecated.
Reads all bytes up to and including a terminator byte or until limit is reached.
|
int |
CRLFStreamWrapper.getline(ByteList dst,
byte terminator,
long limit)
Deprecated.
|
static void |
EncodingUtils.rbStrBufCat(Ruby runtime,
ByteList str,
byte[] ptrBytes,
int ptr,
int len) |
static void |
EncodingUtils.rbStrBufCat(Ruby runtime,
RubyString str,
ByteList ptr) |
int |
ChannelDescriptor.read(int number,
ByteList byteList)
Deprecated.
Perform a low-level read of the specified number of bytes into the specified
byte list.
|
int |
EncodingUtils.ResizeFunction.resize(ByteList destination,
int len,
int new_len)
Resize the destination, returning the new begin offset.
|
static void |
EncodingUtils.strBufCat(ByteList str,
byte[] ptrBytes,
int ptr,
int len) |
static void |
EncodingUtils.strBufCat(Ruby runtime,
RubyString str,
ByteList ptr) |
static ByteList |
EncodingUtils.strConvEnc(ThreadContext context,
ByteList value,
org.jcodings.Encoding fromEncoding,
org.jcodings.Encoding toEncoding) |
static ByteList |
EncodingUtils.strConvEncOpts(ThreadContext context,
ByteList str,
org.jcodings.Encoding fromEncoding,
org.jcodings.Encoding toEncoding,
int ecflags,
IRubyObject ecopts) |
static <Data> boolean |
EncodingUtils.transcodeLoop(org.jcodings.transcode.EConv ec,
EncodingUtils.TranscodeFallback<Data> fallbackFunc,
ThreadContext context,
Data fallbackData,
byte[] inBytes,
org.jcodings.Ptr inPos,
byte[] outBytes,
org.jcodings.Ptr outPos,
int inStop,
int outStop,
ByteList destination,
EncodingUtils.ResizeFunction resizeFunction)
Perform the inner transcoding loop.
|
static void |
EncodingUtils.transcodeLoop(ThreadContext context,
byte[] inBytes,
org.jcodings.Ptr inPos,
byte[] outBytes,
org.jcodings.Ptr outPos,
int inStop,
int _outStop,
ByteList destination,
EncodingUtils.ResizeFunction resizeFunction,
byte[] sname,
byte[] dname,
int ecflags,
IRubyObject ecopts)
Perform the inner transcoding loop.
|
static RubyArray |
Sockaddr.unpack_sockaddr_in(ThreadContext context,
ByteList val) |
int |
ChannelDescriptor.write(ByteList buf)
Deprecated.
Write the bytes in the specified byte list to the associated channel.
|
int |
ChannelDescriptor.write(ByteList buf,
int offset,
int len)
Deprecated.
Write the bytes in the specified byte list to the associated channel.
|
int |
ChannelStream.writenonblock(ByteList buf)
Deprecated.
|
Copyright © 2001-2020 JRuby. All Rights Reserved.