We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5efa831 commit 8f78a16Copy full SHA for 8f78a16
src/main/java/org/truffleruby/core/rope/CodeRange.java
@@ -17,9 +17,22 @@
17
import com.oracle.truffle.api.CompilerDirectives;
18
19
public enum CodeRange {
20
+ /**
21
+ * Used for {@link NativeRope}, where the bytes can change from real native code.
22
+ * Also used when building a new {@link Rope} and the code range is unknown.
23
+ */
24
CR_UNKNOWN(0),
25
26
+ * Only used for ASCII-compatible encodings, when all characters are US-ASCII (7-bit).
27
28
CR_7BIT(1),
29
30
+ * All characters are valid, but at least one non-7-bit character.
31
32
CR_VALID(2),
33
34
+ * At least one character is not valid in the encoding of that Rope.
35
36
CR_BROKEN(3);
37
38
private final int value;
0 commit comments