Home
last modified time | relevance | path

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

12

/third_party/benchmark/src/
Dcommandlineflags.cc127 const char* const value_str = getenv(env_var.c_str()); in BoolFromEnv() local
128 return value_str == nullptr ? default_val : IsTruthyFlagValue(value_str); in BoolFromEnv()
134 const char* const value_str = getenv(env_var.c_str()); in Int32FromEnv() local
136 if (value_str == nullptr || in Int32FromEnv()
137 !ParseInt32(std::string("Environment variable ") + env_var, value_str, in Int32FromEnv()
147 const char* const value_str = getenv(env_var.c_str()); in DoubleFromEnv() local
149 if (value_str == nullptr || in DoubleFromEnv()
150 !ParseDouble(std::string("Environment variable ") + env_var, value_str, in DoubleFromEnv()
168 const char* const value_str = getenv(env_var.c_str()); in KvPairsFromEnv() local
170 if (value_str == nullptr) return default_val; in KvPairsFromEnv()
[all …]
/third_party/pulseaudio/src/modules/
Dmodule-match.c104 char *token_end, *value_str; in load_rules() local
124 value_str = token_end + strspn(token_end, WHITESPACE); in load_rules()
132 if (!*value_str) { in load_rules()
137 if (pa_atou(value_str, &k) >= 0) in load_rules()
142 token_end = value_str + strcspn(value_str, WHITESPACE); in load_rules()
144 len = token_end - value_str; in load_rules()
145 if (len == (sizeof(UPDATE_REPLACE) - 1) && !strncmp(value_str, UPDATE_REPLACE, len)) in load_rules()
147 else if (len == (sizeof(UPDATE_MERGE) - 1) && !strncmp(value_str, UPDATE_MERGE, len)) in load_rules()
151 value_str = token_end + strspn(token_end, WHITESPACE); in load_rules()
153 if (!*value_str) { in load_rules()
[all …]
/third_party/googletest/googlemock/src/
Dgmock.cc96 const char* const value_str = ParseGoogleMockFlagValue(str, flag_name, true); in ParseGoogleMockFlag() local
99 if (value_str == nullptr) return false; in ParseGoogleMockFlag()
102 *value = !(*value_str == '0' || *value_str == 'f' || *value_str == 'F'); in ParseGoogleMockFlag()
115 const char* const value_str = ParseGoogleMockFlagValue(str, flag_name, false); in ParseGoogleMockFlag() local
118 if (value_str == nullptr) return false; in ParseGoogleMockFlag()
121 *value = value_str; in ParseGoogleMockFlag()
128 const char* const value_str = ParseGoogleMockFlagValue(str, flag_name, true); in ParseGoogleMockFlag() local
131 if (value_str == nullptr) return false; in ParseGoogleMockFlag()
134 return ParseInt32(Message() << "The value of flag --" << flag_name, value_str, in ParseGoogleMockFlag()
/third_party/node/deps/icu-small/source/common/
Dlocalebuilder.cpp222 CharString value_str(value, status_); in setExtension() local
224 transform(value_str.data(), value_str.length()); in setExtension()
225 if (!value_str.isEmpty() && in setExtension()
226 !_isExtensionSubtags(key, value_str.data(), value_str.length())) { in setExtension()
239 extensions_->setKeywordValue(StringPiece(&key, 1), value_str.data(), in setExtension()
246 _setUnicodeExtensions(*extensions_, value_str, status_); in setExtension()
275 CharString value_str(value, status_); in addUnicodeLocaleAttribute() local
277 transform(value_str.data(), value_str.length()); in addUnicodeLocaleAttribute()
278 if (!ultag_isUnicodeLocaleAttribute(value_str.data(), value_str.length())) { in addUnicodeLocaleAttribute()
288 extensions_->setKeywordValue(kAttributeKey, value_str.data(), status_); in addUnicodeLocaleAttribute()
[all …]
/third_party/skia/third_party/externals/icu/source/common/
Dlocalebuilder.cpp222 CharString value_str(value, status_); in setExtension() local
224 transform(value_str.data(), value_str.length()); in setExtension()
225 if (!value_str.isEmpty() && in setExtension()
226 !_isExtensionSubtags(key, value_str.data(), value_str.length())) { in setExtension()
239 extensions_->setKeywordValue(StringPiece(&key, 1), value_str.data(), in setExtension()
246 _setUnicodeExtensions(*extensions_, value_str, status_); in setExtension()
275 CharString value_str(value, status_); in addUnicodeLocaleAttribute() local
277 transform(value_str.data(), value_str.length()); in addUnicodeLocaleAttribute()
278 if (!ultag_isUnicodeLocaleAttribute(value_str.data(), value_str.length())) { in addUnicodeLocaleAttribute()
288 extensions_->setKeywordValue(kAttributeKey, value_str.data(), status_); in addUnicodeLocaleAttribute()
[all …]
/third_party/icu/icu4c/source/common/
Dlocalebuilder.cpp222 CharString value_str(value, status_); in setExtension() local
224 transform(value_str.data(), value_str.length()); in setExtension()
225 if (!value_str.isEmpty() && in setExtension()
226 !_isExtensionSubtags(key, value_str.data(), value_str.length())) { in setExtension()
239 extensions_->setKeywordValue(StringPiece(&key, 1), value_str.data(), in setExtension()
246 _setUnicodeExtensions(*extensions_, value_str, status_); in setExtension()
275 CharString value_str(value, status_); in addUnicodeLocaleAttribute() local
277 transform(value_str.data(), value_str.length()); in addUnicodeLocaleAttribute()
278 if (!ultag_isUnicodeLocaleAttribute(value_str.data(), value_str.length())) { in addUnicodeLocaleAttribute()
288 extensions_->setKeywordValue(kAttributeKey, value_str.data(), status_); in addUnicodeLocaleAttribute()
[all …]
/third_party/mesa3d/src/gallium/drivers/r600/sfn/
Dsfn_instr_export.cpp130 string value_str; in from_string_impl() local
132 is >> typestr >> pos >> value_str; in from_string_impl()
145 RegisterVec4 value = vf.src_vec4_from_string(value_str); in from_string_impl()
249 string value_str; in from_string() local
257 is >> loc_str >> value_str >> align_str >> align_offset_str; in from_string()
263 auto value = vf.src_vec4_from_string(value_str); in from_string()
465 string value_str; in from_string() local
467 is >> ring >> type_str >> base_address >> value_str; in from_string()
489 auto value = vf.src_vec4_from_string(value_str); in from_string()
560 string value_str; in from_string() local
[all …]
/third_party/node/deps/v8/src/objects/
Doption-utils.h103 Handle<String> value_str; in GetStringOrBooleanOption() local
106 isolate, value_str, Object::ToString(isolate, value), Nothing<T>()); in GetStringOrBooleanOption()
110 value_str = String::Flatten(isolate, value_str); in GetStringOrBooleanOption()
113 const String::FlatContent& flat = value_str->GetFlatContent(no_gc); in GetStringOrBooleanOption()
114 int32_t length = value_str->length(); in GetStringOrBooleanOption()
Doption-utils.cc68 Handle<String> value_str; in GetStringOption() local
70 isolate, value_str, Object::ToString(isolate, value), Nothing<bool>()); in GetStringOption()
71 std::unique_ptr<char[]> value_cstr = value_str->ToCString(); in GetStringOption()
Djs-locale.cc70 std::unique_ptr<char[]> value_str = nullptr; in InsertOptionsIntoLocale() local
78 &value_str); in InsertOptionsIntoLocale()
86 value_str = value_bool ? isolate->factory()->true_string()->ToCString() in InsertOptionsIntoLocale()
89 DCHECK_NOT_NULL(value_str.get()); in InsertOptionsIntoLocale()
93 value_str.get())) { in InsertOptionsIntoLocale()
96 builder->setUnicodeLocaleKeyword(option_to_bcp47.key, value_str.get()); in InsertOptionsIntoLocale()
Djs-collator.cc58 Handle<String> value_str = in CreateDataPropertyForOptions() local
64 isolate, options, key, value_str, Just(kDontThrow)); in CreateDataPropertyForOptions()
/third_party/elfio/c_wrapper/
Delfio_c_wrapper.cpp404 std::string value_str; in elfio_modinfo_get_attribute() local
405 bool ret = pmodinfo->get_attribute( no, field_str, value_str ); in elfio_modinfo_get_attribute()
407 strncpy( value, value_str.c_str(), (size_t)value_len - 1 ); in elfio_modinfo_get_attribute()
417 std::string value_str; in elfio_modinfo_get_attribute_by_name() local
418 bool ret = pmodinfo->get_attribute( value_str, value_str ); in elfio_modinfo_get_attribute_by_name()
419 strncpy( value, value_str.c_str(), (size_t)value_len - 1 ); in elfio_modinfo_get_attribute_by_name()
/third_party/elfio/examples/c_wrapper/
Delfio_c_wrapper.cpp405 std::string value_str; in elfio_modinfo_get_attribute() local
406 bool ret = pmodinfo->get_attribute( no, field_str, value_str ); in elfio_modinfo_get_attribute()
408 strncpy( value, value_str.c_str(), (size_t)value_len - 1 ); in elfio_modinfo_get_attribute()
418 std::string value_str; in elfio_modinfo_get_attribute_by_name() local
419 bool ret = pmodinfo->get_attribute( value_str, value_str ); in elfio_modinfo_get_attribute_by_name()
420 strncpy( value, value_str.c_str(), (size_t)value_len - 1 ); in elfio_modinfo_get_attribute_by_name()
/third_party/jinja2/
Dlexer.py622 for lineno, token, value_str in stream:
626 value: t.Any = value_str
636 value = self._normalize_newlines(value_str)
638 token = value_str
640 value = value_str
650 self._normalize_newlines(value_str[1:-1])
658 value = int(value_str.replace("_", ""), 0)
661 value = literal_eval(value_str.replace("_", ""))
663 token = operators[value_str]
/third_party/jerryscript/jerry-core/ext/
Dheapdump.c199 ecma_string_t* value_str = ecma_op_to_string(value); in DumpPropertyPair() local
200 LogStrObj(value_str); in DumpPropertyPair()
338 ecma_string_t* value_str = ecma_op_to_string(values[i]); in DumpInfoObject() local
339 LogStrObj(value_str); in DumpInfoObject()
/third_party/spirv-tools/source/
Dname_mapper.cpp300 auto value_str = value.str(); in ParseInstruction() local
303 for (auto& c : value_str) in ParseInstruction()
305 SaveName(result_id, NameForId(inst.type_id) + "_" + value_str); in ParseInstruction()
/third_party/skia/third_party/externals/swiftshader/third_party/SPIRV-Tools/source/
Dname_mapper.cpp301 auto value_str = value.str(); in ParseInstruction() local
304 for (auto& c : value_str) in ParseInstruction()
306 SaveName(result_id, NameForId(inst.type_id) + "_" + value_str); in ParseInstruction()
/third_party/skia/third_party/externals/spirv-tools/source/
Dname_mapper.cpp301 auto value_str = value.str(); in ParseInstruction() local
304 for (auto& c : value_str) in ParseInstruction()
306 SaveName(result_id, NameForId(inst.type_id) + "_" + value_str); in ParseInstruction()
/third_party/node/src/
Dnode_env_var.cc249 Utf8Value value_str(isolate, value); in Set() local
250 if (*key_str != nullptr && key_str.length() > 0 && *value_str != nullptr) { in Set()
252 std::string(*value_str, value_str.length()); in Set()
/third_party/protobuf/src/google/protobuf/util/internal/
Ddatapiece.cc54 inline Status InvalidArgument(StringPiece value_str) { in InvalidArgument() argument
55 return Status(util::error::INVALID_ARGUMENT, value_str); in InvalidArgument()
/third_party/libcoap/src/
Dcoap_oscore.c1622 coap_str_const_t value_str; member
1750 value->u.value_str.s = (const uint8_t *)begin; in get_split_entry()
1751 value->u.value_str.length = end - begin; in get_split_entry()
1911 if (coap_string_equal(&value.u.value_str, in coap_parse_oscore_conf_mem()
1923 (int)value.u.value_str.length, in coap_parse_oscore_conf_mem()
1924 (const char *)value.u.value_str.s); in coap_parse_oscore_conf_mem()
/third_party/vk-gl-cts/external/vulkancts/scripts/
Dgen_framework_sc.py1751 value_str = splitted[1].strip()
1753 value = driverItems[value_str]
1755 value = value_str
1756 value_str = ""
1757 if value_str:
1758 value_str = "\t// " + value_str
1761 driverIdsString.append("\t{\"" + key + "\"" + ", " + value + "}," + value_str)
1763 driverIdsString.append("\t{\"" + key + "\"" + ", " + value + "}" + value_str)
/third_party/node/src/crypto/
Dcrypto_common.cc990 unsigned char* value_str; in GetX509NameObject() local
991 int value_str_size = ASN1_STRING_to_UTF8(&value_str, value); in GetX509NameObject()
995 auto free_value_str = OnScopeLeave([&]() { OPENSSL_free(value_str); }); in GetX509NameObject()
999 reinterpret_cast<const char*>(value_str), in GetX509NameObject()
/third_party/mesa3d/src/gtest/src/
Dgtest.cc5774 const char* const value_str = ParseFlagValue(str, flag, true); in ParseBoolFlag() local
5777 if (value_str == nullptr) return false; in ParseBoolFlag()
5780 *value = !(*value_str == '0' || *value_str == 'f' || *value_str == 'F'); in ParseBoolFlag()
5791 const char* const value_str = ParseFlagValue(str, flag, false); in ParseInt32Flag() local
5794 if (value_str == nullptr) return false; in ParseInt32Flag()
5798 value_str, value); in ParseInt32Flag()
5809 const char* const value_str = ParseFlagValue(str, flag, false); in ParseStringFlag() local
5812 if (value_str == nullptr) return false; in ParseStringFlag()
5815 *value = value_str; in ParseStringFlag()
/third_party/node/deps/googletest/src/
Dgtest.cc6379 const char* const value_str = ParseFlagValue(str, flag_name, true); in ParseFlag() local
6382 if (value_str == nullptr) return false; in ParseFlag()
6385 *value = !(*value_str == '0' || *value_str == 'f' || *value_str == 'F'); in ParseFlag()
6395 const char* const value_str = ParseFlagValue(str, flag_name, false); in ParseFlag() local
6398 if (value_str == nullptr) return false; in ParseFlag()
6401 return ParseInt32(Message() << "The value of flag --" << flag_name, value_str, in ParseFlag()
6412 const char* const value_str = ParseFlagValue(str, flag_name, false); in ParseFlag() local
6415 if (value_str == nullptr) return false; in ParseFlag()
6418 *value = value_str; in ParseFlag()

12