Home
last modified time | relevance | path

Searched refs:fromMask (Results 1 – 8 of 8) sorted by relevance

/third_party/libphonenumber/metadata/src/test/java/com/google/i18n/phonenumbers/metadata/regex/
DEdgeTest.java39 assertThat(Edge.fromMask(0x6).getDigitMask()).isEqualTo(0x6); in testSimple()
40 assertThat(Edge.fromMask(0x6).isOptional()).isFalse(); in testSimple()
42 assertThat(Edge.fromMask(0x3).toString()).isEqualTo("[01]"); // 0000000011 in testSimple()
43 assertThat(Edge.fromMask(0x300).toString()).isEqualTo("[89]"); // 1100000000 in testSimple()
44 assertThat(Edge.fromMask(0x1FE).toString()).isEqualTo("[1-8]"); // 0111111110 in testSimple()
45 assertThat(Edge.fromMask(ALL_DIGITS_MASK).toString()).isEqualTo("x"); // any digit in testSimple()
50 assertThat(Edge.fromMask(ALL_DIGITS_MASK)).isEqualTo(Edge.any()); in testAny()
67 Edge concatenated = Edge.concatenation(Edge.fromMask(0x3), Edge.any()); in testConcatenation()
72 assertThat(edges).containsExactly(Edge.fromMask(0x3), Edge.any()).inOrder(); in testConcatenation()
82 Edge group = Edge.disjunction(ImmutableSet.of(Edge.fromMask(0x3), Edge.any())); in testGroup()
[all …]
DNfaBuilder.java56 addEdge(source, lastNode, SimpleEdge.fromMask(spec.getBitmask(n))); in addPath()
67 addEdge(source, lastNode, SimpleEdge.fromMask(spec.getBitmask(n))); in addPath()
70 addEdge(source, target, SimpleEdge.fromMask(spec.getBitmask(spec.length() - 1))); in addPath()
DEdgeWriterTest.java126 return SimpleEdge.fromMask(spec.getBitmask(0)); in e()
DRangeTreeConverterTest.java122 return SimpleEdge.fromMask(1 << n); in edge()
DNfaFlattenerTest.java201 return SimpleEdge.fromMask(spec.getBitmask(0)); in e()
/third_party/libphonenumber/metadata/src/main/java/com/google/i18n/phonenumbers/metadata/finitestatematcher/compiler/
DOperation.java71 public static ImmutableSet<Digit> fromMask(int mask) { in fromMask() method in Operation.Digit
345 this.digits = Digit.fromMask(digitMask);
396 Entry::getKey, e -> Digit.fromMask(e.getValue()).stream()));
/third_party/libphonenumber/metadata/src/main/java/com/google/i18n/phonenumbers/metadata/regex/
DRangeTreeConverter.java85 SimpleEdge simpleEdge = Edge.fromMask(dfaEdge.getDigitMask()); in visit()
DEdge.java68 public static SimpleEdge fromMask(int digitMask) { in fromMask() method in Edge