| Modifier and Type | Field and Description |
|---|---|
| protected final int |
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| public final int | codeToMbcLength(int code)
Implements abstract org. code_to_mbclen
|
| public final int[] | ctypeCodeRange(int ctype, IntHolder sbOut)
Implements abstract org. |
| public final boolean | isReverseMatchAllowed(byte[] bytes, int p, int end)
Implements abstract org. is_allowed_reverse_match
|
| public final int | leftAdjustCharHead(byte[]
byte stream bytes, int position p, int stop s, int end end)Implements abstract org. left_adjust_char_head
|
| public final int | length(byte
Character head
Oniguruma equivalent: c)mbc_enc_len
To be deprecated very soon (use length(byte[]bytes, int p, int end) version)Overrides org. 1 for singlebyte encodings or performs direct length table lookup for multibyte ones.
|
| public int | length(byte[] bytes, int p, int e)
Implements abstract org. 1 for singlebyte encodings or performs sanity validations for multibyte ones
and returns the character length, missing characters in the stream otherwise
|
| private static int | |
| public final int | strCodeAt(byte[] bytes, int p, int end, int index)
Overrides org. |
| public final int |
| shift | back to summary |
|---|---|
| protected final int shift | |
| FixedWidthUnicodeEncoding | back to summary |
|---|---|
| protected FixedWidthUnicodeEncoding(String name, int width) | |
| codeToMbcLength | back to summary |
|---|---|
| public final int codeToMbcLength(int code) Implements abstract org. Doc from org. Returns character length given a code point
Oniguruma equivalent:
| |
| ctypeCodeRange | back to summary |
|---|---|
| public final int[] ctypeCodeRange(int ctype, IntHolder sbOut) Implements abstract org. onigenc_utf16_32_get_ctype_code_range
| |
| isReverseMatchAllowed | back to summary |
|---|---|
| public final boolean isReverseMatchAllowed(byte[] bytes, int p, int end) Implements abstract org. Doc from org. Returns true if it's safe to use reversal Boyer-Moore search fail fast algorithm
Oniguruma equivalent:
| |
| leftAdjustCharHead | back to summary |
|---|---|
| public final int leftAdjustCharHead(byte[] bytes, int p, int s, int end) Implements abstract org. Doc from org. Seeks the previous character head in a stream
Oniguruma equivalent:
| |
| length | back to summary |
|---|---|
| public final int length(byte c) Overrides org. Doc from org. Returns character length given character head
returns
| |
| length | back to summary |
|---|---|
| public int length(byte[] bytes, int p, int e) Implements abstract org. Doc from org. Returns character length given stream, character position and stream end
returns
| |
| log2 | back to summary |
|---|---|
| private static int log2(int n) | |
| strCodeAt | back to summary |
|---|---|
| public final int strCodeAt(byte[] bytes, int p, int end, int index) Overrides org.
| |
| strLength | back to summary |
|---|---|
| public final int strLength(byte[] bytes, int p, int end) Overrides org.
| |