Home
last modified time | relevance | path

Searched refs:Variant (Results 1 – 25 of 217) sorted by relevance

123456789

/third_party/libphonenumber/tools/java/cpp-build/test/com/google/i18n/phonenumbers/
DBuildMetadataCppFromXmlTest.java25 import com.google.i18n.phonenumbers.BuildMetadataCppFromXml.Variant;
51 assertNull(Variant.parse("xxx")); in parseVariant()
52 assertEquals(Variant.FULL, Variant.parse(null)); in parseVariant()
53 assertEquals(Variant.FULL, Variant.parse("")); in parseVariant()
54 assertEquals(Variant.LITE, Variant.parse("lite")); in parseVariant()
55 assertEquals(Variant.TEST, Variant.parse("test")); in parseVariant()
56 assertEquals(Variant.LITE, Variant.parse("LITE")); in parseVariant()
57 assertEquals(Variant.TEST, Variant.parse("Test")); in parseVariant()
75 assertEquals(Variant.TEST, opt.getVariant()); in parseGoodOptions()
86 INPUT_PATH_XML, false, OUTPUT_DIR, Type.METADATA, Variant.FULL); in generateMetadata()
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/DebugInfo/PDB/
DPDBTypes.h347 Variant = 27, enumerator
408 struct Variant { struct
409 Variant() = default;
411 explicit Variant(bool V) : Type(PDB_VariantType::Bool) { Value.Bool = V; } in Variant() function
412 explicit Variant(int8_t V) : Type(PDB_VariantType::Int8) { Value.Int8 = V; } in Variant() argument
413 explicit Variant(int16_t V) : Type(PDB_VariantType::Int16) { in Variant() function
416 explicit Variant(int32_t V) : Type(PDB_VariantType::Int32) { in Variant() argument
419 explicit Variant(int64_t V) : Type(PDB_VariantType::Int64) { in Variant() argument
422 explicit Variant(float V) : Type(PDB_VariantType::Single) { in Variant() argument
425 explicit Variant(double V) : Type(PDB_VariantType::Double) { in Variant() function
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/DebugInfo/PDB/Native/
DNativeSymbolEnumerator.cpp74 Variant NativeSymbolEnumerator::getValue() const { in getValue()
85 return Variant{static_cast<int8_t>(N)}; in getValue()
87 return Variant{static_cast<int16_t>(N)}; in getValue()
89 return Variant{static_cast<int32_t>(N)}; in getValue()
91 return Variant{static_cast<int64_t>(N)}; in getValue()
101 return Variant{static_cast<uint8_t>(U)}; in getValue()
103 return Variant{static_cast<uint16_t>(U)}; in getValue()
105 return Variant{static_cast<uint32_t>(U)}; in getValue()
107 return Variant{static_cast<uint64_t>(U)}; in getValue()
114 return Variant{static_cast<bool>(U)}; in getValue()
[all …]
/third_party/libphonenumber/tools/java/cpp-build/src/com/google/i18n/phonenumbers/
DBuildMetadataCppFromXml.java44 public enum Variant { enum in BuildMetadataCppFromXml
57 private Variant(String template) { in Variant() method in BuildMetadataCppFromXml.Variant
75 public static Variant parse(String variantName) { in parse()
77 return Variant.TEST; in parse()
79 return Variant.LITE; in parse()
81 return Variant.FULL; in parse()
103 Variant variant = Variant.parse(basenameMatcher.group(1)); in parse()
121 private final Variant variant;
123 private Options(String inputXmlFilePath, String outputDirPath, Type type, Variant variant) { in Options()
142 public Variant getVariant() { in getVariant()
[all …]
/third_party/skia/gm/
Dencode_color_types.cpp64 enum class Variant { enum
75 EncodeColorTypesGM(SkEncodedImageFormat format, int quality, Variant variant, const char* name) in EncodeColorTypesGM()
84 const char* variant = fVariant == Variant::kOpaque ? "opaque-": in onShortName()
85 fVariant == Variant::kGray ? "gray-" : in onShortName()
91 const int width = fVariant == Variant::kNormal ? imageWidth * 7 : imageWidth * 2; in onISize()
98 case Variant::kGray: in onDraw()
103 case Variant::kOpaque: in onDraw()
112 case Variant::kNormal: in onDraw()
150 const Variant fVariant;
160 return new EncodeColorTypesGM(format, quality, Variant::variant, name);\
/third_party/boost/boost/asio/execution/
Dsender.hpp68 template <typename...> class Variant
77 template <typename...> class Variant
100 template <typename...> class Variant>
101 using value_types = typename S::template value_types<Tuple, Variant>;
103 template <template <typename...> class Variant>
104 using error_types = typename S::template error_types<Variant>;
124 template <typename...> class Variant>
125 using value_types = Variant<Tuple<>>;
127 template <template <typename...> class Variant>
128 using error_types = Variant<std::exception_ptr>;
/third_party/boost/libs/asio/include/boost/asio/execution/
Dsender.hpp68 template <typename...> class Variant
77 template <typename...> class Variant
100 template <typename...> class Variant>
101 using value_types = typename S::template value_types<Tuple, Variant>;
103 template <template <typename...> class Variant>
104 using error_types = typename S::template error_types<Variant>;
124 template <typename...> class Variant>
125 using value_types = Variant<Tuple<>>;
127 template <template <typename...> class Variant>
128 using error_types = Variant<std::exception_ptr>;
/third_party/boost/boost/spirit/home/x3/support/traits/
Dvariant_find_substitute.hpp16 template <typename Variant, typename Attribute>
22 typedef Variant variant_type;
45 template <typename Variant>
46 struct variant_find_substitute<Variant, Variant>
47 : mpl::identity<Variant> {};
Dvariant_has_substitute.hpp16 template <typename Variant, typename Attribute>
22 typedef Variant variant_type;
39 template <typename Variant, typename Attribute>
41 : variant_has_substitute_impl<Variant, Attribute>::type {};
Dis_substitute.hpp36 template <typename Variant, typename Attribute>
136 template <typename Variant>
139 mpl::size< typename Variant::types>
140 , mpl::size< mpl::filter_view<typename Variant::types
/third_party/boost/libs/format/benchmark/
Dresults.txt25 echo "\n-- Variant **" $var "**" :
34 -- Variant ** _normal ** :
47 -- Variant ** _overloads ** :
55 -- Variant ** _basicfmt ** :
63 -- Variant ** _normal ** :
117 -- Variant ** _overloads ** :
132 -- Variant ** _basicfmt ** :
140 -- Variant ** _no_locale ** :
148 -- Variant ** _normal ** :
176 -- Variant ** _normal ** :
[all …]
/third_party/boost/boost/variant/detail/
Delement_index.hpp45 template <class Variant, class T>
47 element_iterator_impl< typename Variant::types, typename boost::remove_reference<T>::type >
50 template <class Variant, class T>
54 typename boost::mpl::end<typename Variant::types>::type,
55 typename element_iterator<Variant, T>::type
Dapply_visitor_unary.hpp87 template <class Visitor, class Variant>
89 typedef typename remove_reference<Variant>::type::types types;
99 …cltype(true ? boost::declval< Visitor& >()( boost::declval< copy_cv_ref_t< value_t, Variant > >() )
106 …cltype(boost::declval< Visitor& >()( boost::declval< copy_cv_ref_t< value_t, Variant > >() )) type;
112 template <class Visitor, class Variant>
115 typedef typename result_multideduce1<Visitor, Variant>::type result_type;
/third_party/boost/boost/histogram/detail/
Dvariant_proxy.hpp25 template <class Variant>
27 Variant& variant;
35 constexpr unsigned N = mp11::mp_size<Variant>::value; in serialize()
41 using T = mp11::mp_at_c<Variant, i>; in serialize()
53 const int which = static_cast<int>(mp11::mp_find<Variant, T>::value); in serialize()
/third_party/abseil-cpp/absl/types/
Dvariant_test.cc327 typedef typename VariantFactory<typename TypeParam::value_type>::Type Variant; in TYPED_TEST() typedef
328 using value_type1 = absl::variant_alternative_t<0, Variant>; in TYPED_TEST()
329 using value_type2 = absl::variant_alternative_t<1, Variant>; in TYPED_TEST()
330 using value_type3 = absl::variant_alternative_t<2, Variant>; in TYPED_TEST()
331 using value_type4 = absl::variant_alternative_t<3, Variant>; in TYPED_TEST()
333 Variant original(value); in TYPED_TEST()
334 Variant copied(original); in TYPED_TEST()
428 typedef typename VariantFactory<typename TypeParam::value_type>::Type Variant; in TYPED_TEST() typedef
429 using value_type1 = absl::variant_alternative_t<0, Variant>; in TYPED_TEST()
430 using value_type2 = absl::variant_alternative_t<1, Variant>; in TYPED_TEST()
[all …]
Dvariant_benchmark.cc78 using Variant = VariantOfAlternatives<NumIndices>; typedef
80 static Variant Run(std::size_t index) { in Run()
82 ? Variant(absl::in_place_index_t<CurrIndex>()) in Run()
89 using Variant = VariantOfAlternatives<NumIndices>; typedef
91 static Variant Run(std::size_t /*index*/) { return Variant(); } in Run()
/third_party/skia/third_party/externals/abseil-cpp/absl/types/
Dvariant_test.cc327 typedef typename VariantFactory<typename TypeParam::value_type>::Type Variant; in TYPED_TEST() typedef
328 using value_type1 = absl::variant_alternative_t<0, Variant>; in TYPED_TEST()
329 using value_type2 = absl::variant_alternative_t<1, Variant>; in TYPED_TEST()
330 using value_type3 = absl::variant_alternative_t<2, Variant>; in TYPED_TEST()
331 using value_type4 = absl::variant_alternative_t<3, Variant>; in TYPED_TEST()
333 Variant original(value); in TYPED_TEST()
334 Variant copied(original); in TYPED_TEST()
428 typedef typename VariantFactory<typename TypeParam::value_type>::Type Variant; in TYPED_TEST() typedef
429 using value_type1 = absl::variant_alternative_t<0, Variant>; in TYPED_TEST()
430 using value_type2 = absl::variant_alternative_t<1, Variant>; in TYPED_TEST()
[all …]
Dvariant_benchmark.cc78 using Variant = VariantOfAlternatives<NumIndices>; typedef
80 static Variant Run(std::size_t index) { in Run()
82 ? Variant(absl::in_place_index_t<CurrIndex>()) in Run()
89 using Variant = VariantOfAlternatives<NumIndices>; typedef
91 static Variant Run(std::size_t /*index*/) { return Variant(); } in Run()
/third_party/boost/libs/geometry/test/util/
Dcompress_variant.cpp36 template <typename Variant, typename ExpectedTypes>
39 check_variant_types<ExpectedTypes>(typename boost::geometry::compress_variant<Variant>::type()); in test_variant_result()
42 template <typename Variant, typename ExpectedType>
47 typename boost::geometry::compress_variant<Variant>::type, in test_single_type_result()
/third_party/abseil-cpp/absl/types/internal/
Dvariant.h131 template <class Variant, class T, class = void>
134 template <std::size_t I, class Variant>
159 template <std::size_t I, class Variant>
161 typename VariantAccessResultImpl<I, Variant&&>::type;
567 static typename VariantType::Variant& Derived(VariantType& self) { // NOLINT
568 return static_cast<typename VariantType::Variant&>(self);
572 static const typename VariantType::Variant& Derived(
574 return static_cast<const typename VariantType::Variant&>(self);
583 template <class Variant>
584 static void SetIndex(Variant& self, std::size_t i) { // NOLINT
[all …]
/third_party/skia/third_party/externals/abseil-cpp/absl/types/internal/
Dvariant.h131 template <class Variant, class T, class = void>
134 template <std::size_t I, class Variant>
159 template <std::size_t I, class Variant>
161 typename VariantAccessResultImpl<I, Variant&&>::type;
567 static typename VariantType::Variant& Derived(VariantType& self) { // NOLINT
568 return static_cast<typename VariantType::Variant&>(self);
572 static const typename VariantType::Variant& Derived(
574 return static_cast<const typename VariantType::Variant&>(self);
583 template <class Variant>
584 static void SetIndex(Variant& self, std::size_t i) { // NOLINT
[all …]
/third_party/boost/boost/histogram/axis/
Dtraits.hpp79 template <class T, class Variant>
80 static auto get_if(Variant* v) noexcept { in get_if()
81 using T0 = mp11::mp_first<std::decay_t<Variant>>; in get_if()
91 template <class T0, class Visitor, class Variant>
92 static decltype(auto) visit_impl(mp11::mp_identity<T0>, Visitor&& vis, Variant&& v) { in visit_impl()
96 template <class T0, class Visitor, class Variant>
97 static decltype(auto) visit_impl(mp11::mp_identity<T0*>, Visitor&& vis, Variant&& v) { in visit_impl()
103 template <class Visitor, class Variant>
104 static decltype(auto) visit(Visitor&& vis, Variant&& v) { in visit()
105 using T0 = mp11::mp_first<std::decay_t<Variant>>; in visit()
[all …]
/third_party/boost/boost/geometry/util/
Dcompress_variant.hpp42 template <typename Variant>
46 typename Variant::types,
95 template <typename Variant>
98 typename detail::unique_types<Variant>::type
/third_party/boost/libs/variant/test/
Dtest8.cpp40 template <typename T, typename Variant>
41 T& check_pass(Variant& v, T value) in check_pass()
57 template <typename T, typename Variant>
58 void check_fail(Variant& v) in check_fail()
/third_party/boost/libs/asio/test/execution/
Dsender.cpp132 template <typename...> class Variant>
133 using value_types = Variant<Tuple<int>>;
135 template <template <typename...> class Variant>
136 using error_types = Variant<boost::system::error_code>;

123456789