Home
last modified time | relevance | path

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

/third_party/json/docs/examples/
Dis_boolean.cpp21 std::cout << j_null.is_boolean() << '\n'; in main()
22 std::cout << j_boolean.is_boolean() << '\n'; in main()
23 std::cout << j_number_integer.is_boolean() << '\n'; in main()
24 std::cout << j_number_unsigned_integer.is_boolean() << '\n'; in main()
25 std::cout << j_number_float.is_boolean() << '\n'; in main()
26 std::cout << j_object.is_boolean() << '\n'; in main()
27 std::cout << j_array.is_boolean() << '\n'; in main()
28 std::cout << j_string.is_boolean() << '\n'; in main()
29 std::cout << j_binary.is_boolean() << '\n'; in main()
/third_party/json/docs/mkdocs/docs/api/basic_json/
Dis_boolean.md1 # <small>nlohmann::basic_json::</small>is_boolean
4 constexpr bool is_boolean() const noexcept;
25 The following code exemplifies `is_boolean()` for all JSON types.
28 --8<-- "examples/is_boolean.cpp"
34 --8<-- "examples/is_boolean.output"
Dis_primitive.md27 return is_null() || is_string() || is_boolean() || is_number() || is_binary();
62 - [is_boolean()](is_boolean.md) returns whether JSON value is a boolean
Dvalue_t.md20 [`is_boolean`](is_boolean.md), [`is_number`](is_number.md) (with [`is_number_integer`](is_number_in…
Dindex.md163 - [**is_boolean**](is_boolean.md) - return whether value is a boolean
/third_party/json/tests/src/
Dunit-inspection.cpp26 CHECK(!j.is_boolean());
44 CHECK(!j.is_boolean());
62 CHECK(!j.is_boolean());
80 CHECK(j.is_boolean());
98 CHECK(!j.is_boolean());
116 CHECK(!j.is_boolean());
134 CHECK(!j.is_boolean());
152 CHECK(!j.is_boolean());
170 CHECK(!j.is_boolean());
188 CHECK(!j.is_boolean());
Dunit-algorithms.cpp148 return value.is_boolean(); in __anonea5e71290c02()
/third_party/mesa3d/src/compiler/glsl/
Dir_validate.cpp313 assert(ir->type->is_boolean()); in visit_leave()
314 assert(ir->operands[0]->type->is_boolean()); in visit_leave()
358 assert(ir->type->is_boolean()); in visit_leave()
363 assert(ir->type->is_boolean()); in visit_leave()
366 assert(ir->operands[0]->type->is_boolean()); in visit_leave()
370 assert(ir->operands[0]->type->is_boolean()); in visit_leave()
375 assert(ir->type->is_boolean()); in visit_leave()
378 assert(ir->operands[0]->type->is_boolean()); in visit_leave()
444 assert(ir->type->is_boolean()); in visit_leave()
471 assert(ir->operands[0]->type->is_boolean()); in visit_leave()
[all …]
Dir_set_program_inouts.cpp270 type->fields.array->is_boolean())))) { in try_mark_partial_variable()
Dglsl_to_nir.cpp915 unsigned bit_size = type->is_boolean() ? 32 : glsl_get_bit_size(type); in intrinsic_set_std430_align()
1489 if (val->type->is_boolean()) in visit()
1514 unsigned bit_size = type->is_boolean() ? 32 : glsl_get_bit_size(type); in visit()
1521 if (type->is_boolean()) in visit()
1543 if (val->type->is_boolean()) in visit()
Dast_to_hir.cpp1219 if (val->type->is_boolean() && val->type->is_scalar()) in get_scalar_boolean_operand()
1509 || (type->is_boolean() && type->is_scalar())); in do_hir()
5360 (var->type->is_numeric() || var->type->is_boolean())) { in hir()
5508 if (check_type->is_boolean() || in hir()
5952 (var->type->is_numeric() || var->type->is_boolean())) { in hir()
6669 if (!condition->type->is_boolean() || !condition->type->is_scalar()) { in hir()
7137 || !cond->type->is_boolean() || !cond->type->is_scalar()) { in condition_to_hir()
Dir_constant_expression.cpp1132 if (!cond || !cond->type->is_boolean()) in constant_expression_evaluate_expression_list()
Dast_function.cpp565 if (formal->type->is_numeric() || formal->type->is_boolean()) { in generate_call()
2099 return type->is_numeric() || type->is_boolean() || in is_valid_constructor()
Dlower_precision.cpp749 if (!ir->type->is_boolean()) in handle_rvalue()
Dir.cpp1573 if (int(bool(i)) != i && this->type->is_boolean()) in is_value()
/third_party/libfuse/example/
Dcxxopts.hpp321 is_boolean() const = 0;
860 is_boolean() const in is_boolean() function in cxxopts::values::abstract_value
1028 bool is_boolean; member
1421 if (!o.is_boolean) in format_option()
1446 if (o.has_default && (!o.is_boolean || o.default_value != "false")) in format_description()
1931 value->is_boolean()}); in add_option()
/third_party/mesa3d/src/compiler/
Dglsl_types.h939 bool is_boolean() const in is_boolean() function
Dnir_types.cpp430 return type->is_boolean(); in glsl_type_is_boolean()
/third_party/json/include/nlohmann/detail/conversions/
Dfrom_json.hpp86 if (JSON_HEDLEY_UNLIKELY(!j.is_boolean())) in from_json()
/third_party/json/include/nlohmann/
Djson.hpp1290 return is_null() || is_string() || is_boolean() || is_number() || is_binary(); in is_primitive()
1309 constexpr bool is_boolean() const noexcept in is_boolean() function in basic_json
1394 if (JSON_HEDLEY_LIKELY(is_boolean())) in get_impl()
1441 return is_boolean() ? &m_value.boolean : nullptr; in get_impl_ptr()
1447 return is_boolean() ? &m_value.boolean : nullptr; in get_impl_ptr()
/third_party/protobuf/src/google/protobuf/compiler/js/
Djs_generator.cc2294 const bool is_boolean = field->cpp_type() == FieldDescriptor::CPPTYPE_BOOL; in GenerateFieldValueExpression() local
2304 if (is_boolean) { in GenerateFieldValueExpression()
/third_party/mesa3d/src/mesa/main/
Duniform_query.cpp1296 if (!uni->type->is_boolean() && !copy_as_uint64 && !copy_to_float16) { in copy_uniforms_to_storage()
/third_party/json/tests/abi/include/nlohmann/
Djson_v3_10_5.hpp3883 if (JSON_HEDLEY_UNLIKELY(!j.is_boolean())) in from_json()
18457 return is_null() || is_string() || is_boolean() || is_number() || is_binary(); in is_primitive()
18476 constexpr bool is_boolean() const noexcept in is_boolean() function in nlohmann::basic_json
18561 if (JSON_HEDLEY_LIKELY(is_boolean())) in get_impl()
18608 return is_boolean() ? &m_value.boolean : nullptr; in get_impl_ptr()
18614 return is_boolean() ? &m_value.boolean : nullptr; in get_impl_ptr()
/third_party/json/single_include/nlohmann/
Djson.hpp4642 if (JSON_HEDLEY_UNLIKELY(!j.is_boolean())) in from_json()
20468 return is_null() || is_string() || is_boolean() || is_number() || is_binary(); in is_primitive()
20487 constexpr bool is_boolean() const noexcept in is_boolean() function in basic_json
20572 if (JSON_HEDLEY_LIKELY(is_boolean())) in get_impl()
20619 return is_boolean() ? &m_value.boolean : nullptr; in get_impl_ptr()
20625 return is_boolean() ? &m_value.boolean : nullptr; in get_impl_ptr()
/third_party/json/
DREADME.md500 j.is_boolean();