Home
last modified time | relevance | path

Searched refs:zero_or_more (Results 1 – 4 of 4) sorted by relevance

/external/python/parse_type/parse_type/
Dcardinality.py31 zero_or_more = (r"(%s)?(\s*%s\s*(%s))*", 3) # SCHEMA: pattern sep pattern variable in Cardinality
36 many0 = zero_or_more
48 return ((self is Cardinality.zero_or_more) or
151 cardinality = Cardinality.zero_or_more
Dcardinality_field.py34 '*': Cardinality.zero_or_more,
/external/python/parse_type/tests/
Dtest_cardinality.py21 assert Cardinality.many0 is Cardinality.zero_or_more
35 expected_pattern = Cardinality.zero_or_more.make_pattern(pattern)
66 (Cardinality.many0, "XXX", Cardinality.zero_or_more.make_pattern("XXX")),
90 new_pattern = Cardinality.zero_or_more.make_pattern(pattern)
103 [Cardinality.zero_or_more, Cardinality.one_or_more])
345 Cardinality.zero_or_more, parse_number)
Dtest_cardinality_field.py63 self.assertEqual(actual, ("Color", Cardinality.zero_or_more))
118 type_name2 = CardinalityField.make_type("Number", Cardinality.zero_or_more)