org.jruby.util
Class StringSupport
java.lang.Object
org.jruby.util.StringSupport
public final class StringSupport
- extends java.lang.Object
Method Summary |
static int |
codeLength(Ruby runtime,
Encoding enc,
int c)
|
static int |
codePoint(Ruby runtime,
Encoding enc,
byte[] bytes,
int p,
int end)
|
static int |
codeRangeScan(Encoding enc,
byte[] bytes,
int p,
int len)
|
static int |
codeRangeScan(Encoding enc,
ByteList bytes)
|
static long |
codeRangeScanRestartable(Encoding enc,
byte[] bytes,
int s,
int end,
int cr)
|
long |
getAscii(Encoding enc,
byte[] bytes,
int p,
int end)
|
long |
getAscii(Encoding enc,
byte[] bytes,
int p,
int end,
int len)
|
static int |
length(Encoding enc,
byte[] bytes,
int p,
int end)
|
static int |
nth(Encoding enc,
byte[] bytes,
int p,
int end,
int n)
|
static int |
preciseLength(Encoding enc,
byte[] bytes,
int p,
int end)
|
static int |
searchNonAscii(byte[] bytes,
int p,
int end)
|
static int |
searchNonAscii(ByteList bytes)
|
static int |
strLength(ByteList bytes)
|
static int |
strLength(Encoding enc,
byte[] bytes,
int p,
int end)
|
static long |
strLengthWithCodeRange(ByteList bytes)
|
static long |
strLengthWithCodeRange(Encoding enc,
byte[] bytes,
int p,
int end)
|
static int |
unpackArg(long cr)
|
static int |
unpackResult(long len)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CR_MASK
public static final int CR_MASK
- See Also:
- Constant Field Values
CR_UNKNOWN
public static final int CR_UNKNOWN
- See Also:
- Constant Field Values
CR_7BIT
public static final int CR_7BIT
- See Also:
- Constant Field Values
CR_VALID
public static final int CR_VALID
- See Also:
- Constant Field Values
CR_BROKEN
public static final int CR_BROKEN
- See Also:
- Constant Field Values
StringSupport
public StringSupport()
length
public static int length(Encoding enc,
byte[] bytes,
int p,
int end)
preciseLength
public static int preciseLength(Encoding enc,
byte[] bytes,
int p,
int end)
searchNonAscii
public static int searchNonAscii(byte[] bytes,
int p,
int end)
searchNonAscii
public static int searchNonAscii(ByteList bytes)
codeRangeScan
public static int codeRangeScan(Encoding enc,
byte[] bytes,
int p,
int len)
codeRangeScan
public static int codeRangeScan(Encoding enc,
ByteList bytes)
codeRangeScanRestartable
public static long codeRangeScanRestartable(Encoding enc,
byte[] bytes,
int s,
int end,
int cr)
strLength
public static int strLength(Encoding enc,
byte[] bytes,
int p,
int end)
strLength
public static int strLength(ByteList bytes)
strLengthWithCodeRange
public static long strLengthWithCodeRange(Encoding enc,
byte[] bytes,
int p,
int end)
strLengthWithCodeRange
public static long strLengthWithCodeRange(ByteList bytes)
unpackResult
public static int unpackResult(long len)
unpackArg
public static int unpackArg(long cr)
codePoint
public static int codePoint(Ruby runtime,
Encoding enc,
byte[] bytes,
int p,
int end)
codeLength
public static int codeLength(Ruby runtime,
Encoding enc,
int c)
getAscii
public long getAscii(Encoding enc,
byte[] bytes,
int p,
int end)
getAscii
public long getAscii(Encoding enc,
byte[] bytes,
int p,
int end,
int len)
nth
public static int nth(Encoding enc,
byte[] bytes,
int p,
int end,
int n)
Copyright © 2002-2007 JRuby Team. All Rights Reserved.