MCPcopy Create free account
hub / github.com/google/re2j / runeToString

Method runeToString

java/com/google/re2j/Utils.java:102–105  ·  view source on GitHub ↗
(int r)

Source from the content-addressed store, hash-verified

100
101 // Returns the Java UTF-16 string containing the single rune |r|.
102 static String runeToString(int r) {
103 char c = (char) r;
104 return r == c ? String.valueOf(c) : new String(Character.toChars(c));
105 }
106
107 // Returns a new copy of the specified subarray.
108 static int[] subarray(int[] array, int start, int end) {

Callers 1

parseUnicodeClassMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected