| Modifier and Type | Class and Description |
|---|---|
| public static interface | |
| public static interface |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public static boolean | Returns: true if it walks the whole bytelist or false if it stops.of the mbc-laden bytes bytelist, ByteListHelper.the closure which walks the codepoints eachThis method assumes the ByteList will be a valid string for the encoding which it is marked as. |
| public static int | Returns: length if all codepoints match. index (ignoring begin) if not.of the mbc-laden bytes bytelist, int place in bytes to search past begin offset, ByteListHelper.the closure which walks the codepoints eachIf you know you have an ASCII ByteList you should do something else. |
| private static int | |
| public static < Return type of visitor T> T | Returns: last T from headVisitorto be split value, ByteList the pattern to split value with pattern, ByteListHelper.visitor for all but last segment bodyVisitor,visitor for the last segment (if null if will use bodyVisitor). headVisitor
Deprecated
since 9.4-. This was only used by Module#const_defined, but was difficult to match MRI's equivalent in this form
This method will split a string and call a visitor for each segment between the split pattern. |
| ByteListHelper | back to summary |
|---|---|
| public ByteListHelper() | |
| eachCodePoint | back to summary |
|---|---|
| public static boolean eachCodePoint(ByteList bytelist, ByteListHelper. This method assumes the ByteList will be a valid string for the encoding which it is marked as. It also assumes slow path mbc walking. If you know you have an ASCII ByteList you should do something else.
| |
| eachCodePointWhile | back to summary |
|---|---|
| public static int eachCodePointWhile(Ruby runtime, ByteList bytelist, int offset, ByteListHelper. If you know you have an ASCII ByteList you should do something else. This will continue walking the bytelist 'while' as long as each continues to be true. When it stops being true it will return the last byte index processed (on full walk it will be length otherwise the beginning of the codepoint which did not satisfy each).
| |
| eachMBCCodePointWhile | back to summary |
|---|---|
| private static int eachMBCCodePointWhile(ByteList bytelist, int offset, ByteListHelper. | |
| split | back to summary |
|---|---|
| public static <T> T split(ByteList value, ByteList pattern, ByteListHelper. Deprecated since 9.4-. This was only used by Module#const_defined, but was difficult to match MRI's equivalent in this form This method will split a string and call a visitor for each segment between the split pattern.
| |
| Modifier and Type | Method and Description |
|---|---|
| public boolean |
| call | back to summary |
|---|---|
| public boolean call(int index, int codepoint, Encoding encoding) call a command pattern caller with index of and actual codepoint. If false is returned it will let users of this interface to stop walking the codepoints.
| |
| Modifier and Type | Method and Description |
|---|---|
| public U |
| call | back to summary |
|---|---|
| public U call(int index, T value, U module) | |