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

Method appendClass

java/com/google/re2j/CharClass.java:166–171  ·  view source on GitHub ↗
(int[] x)

Source from the content-addressed store, hash-verified

164 // appendClass() appends the class |x| to this CharClass.
165 // It assumes |x| is clean. Does not mutate |x|.
166 CharClass appendClass(int[] x) {
167 for (int i = 0; i < x.length; i += 2) {
168 appendRange(x[i], x[i + 1]);
169 }
170 return this;
171 }
172
173 // appendFoldedClass() appends the case folding of the class |x| to this
174 // CharClass. Does not mutate |x|.

Callers 3

appendClassWithSignMethod · 0.95
testAppendClassMethod · 0.80
mergeCharClassMethod · 0.80

Calls 1

appendRangeMethod · 0.95

Tested by 1

testAppendClassMethod · 0.64