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

Method appendGroup

java/com/google/re2j/CharClass.java:281–287  ·  view source on GitHub ↗
(CharGroup g, boolean foldCase)

Source from the content-addressed store, hash-verified

279 // appendGroup() appends CharGroup |g| to this CharClass, folding iff
280 // |foldCase|. Does not mutate |g|.
281 CharClass appendGroup(CharGroup g, boolean foldCase) {
282 int[] cls = g.cls;
283 if (foldCase) {
284 cls = new CharClass().appendFoldedClass(cls).cleanClass().toArray();
285 }
286 return appendClassWithSign(cls, g.sign);
287 }
288
289 // cmp() returns the ordering of the pair (a[i], a[i+1]) relative to
290 // (pivotFrom, pivotTo), where the first component of the pair (lo) is

Callers 3

testAppendGroupMethod · 0.80
parsePerlClassEscapeMethod · 0.80
parseNamedClassMethod · 0.80

Calls 4

appendClassWithSignMethod · 0.95
toArrayMethod · 0.80
cleanClassMethod · 0.80
appendFoldedClassMethod · 0.80

Tested by 1

testAppendGroupMethod · 0.64