Home
last modified time | relevance | path

Searched refs:_to_enum (Results 1 – 3 of 3) sorted by relevance

/dports/security/py-stix2/cti-python-stix2-2.1.0/stix2/
H A Dutils.py47 def _to_enum(value, enum_type, enum_default=None): function
88 precision = _to_enum(
92 precision_constraint = _to_enum(
233 precision = _to_enum(precision, Precision)
234 precision_constraint = _to_enum(precision_constraint, PrecisionConstraint)
/dports/math/libmesh/libmesh-1.6.2/src/utils/
H A Dstring_to_enum.C78 std::map<std::string, ENUM_NAME> VAR_NAME##_to_enum; \
82 void init_##VAR_NAME##_to_enum (); \
91 init_##VAR_NAME##_to_enum(); \
93 build_reverse_map (VAR_NAME##_to_enum.begin(), \
94 VAR_NAME##_to_enum.end(), \
618 init_##VAR_NAME##_to_enum(); \
623 if (!VAR_NAME##_to_enum.count(upper)) \
628 return VAR_NAME##_to_enum[upper]; \
/dports/security/py-stix2/cti-python-stix2-2.1.0/stix2/test/v21/
H A Dtest_timestamp_precision.py8 Precision, PrecisionConstraint, STIXdatetime, _to_enum, format_datetime,
30 result = _to_enum(value, enum_type, enum_default)
44 _to_enum(value, Precision)