/external/google-benchmark/src/ |
D | commandlineflags.cc | 98 const char* const value_str = getenv(env_var.c_str()); in BoolFromEnv() local 99 return value_str == nullptr ? default_val : IsTruthyFlagValue(value_str); in BoolFromEnv() 104 const char* const value_str = getenv(env_var.c_str()); in Int32FromEnv() local 106 if (value_str == nullptr || in Int32FromEnv() 107 !ParseInt32(std::string("Environment variable ") + env_var, value_str, in Int32FromEnv() 116 const char* const value_str = getenv(env_var.c_str()); in DoubleFromEnv() local 118 if (value_str == nullptr || in DoubleFromEnv() 119 !ParseDouble(std::string("Environment variable ") + env_var, value_str, in DoubleFromEnv() 164 const char* const value_str = ParseFlagValue(str, flag, true); in ParseBoolFlag() local 167 if (value_str == nullptr) return false; in ParseBoolFlag() [all …]
|
/external/googletest/googlemock/src/ |
D | gmock.cc | 97 const char* const value_str = ParseGoogleMockFlagValue(str, flag, true); in ParseGoogleMockBoolFlag() local 100 if (value_str == nullptr) return false; in ParseGoogleMockBoolFlag() 103 *value = !(*value_str == '0' || *value_str == 'f' || *value_str == 'F'); in ParseGoogleMockBoolFlag() 116 const char* const value_str = ParseGoogleMockFlagValue(str, flag, false); in ParseGoogleMockStringFlag() local 119 if (value_str == nullptr) return false; in ParseGoogleMockStringFlag() 122 *value = value_str; in ParseGoogleMockStringFlag() 129 const char* const value_str = ParseGoogleMockFlagValue(str, flag, true); in ParseGoogleMockIntFlag() local 132 if (value_str == nullptr) return false; in ParseGoogleMockIntFlag() 136 value_str, value); in ParseGoogleMockIntFlag()
|
/external/llvm-project/llvm/utils/benchmark/src/ |
D | commandlineflags.cc | 163 const char* const value_str = ParseFlagValue(str, flag, true); in ParseBoolFlag() local 166 if (value_str == nullptr) return false; in ParseBoolFlag() 169 *value = IsTruthyFlagValue(value_str); in ParseBoolFlag() 175 const char* const value_str = ParseFlagValue(str, flag, false); in ParseInt32Flag() local 178 if (value_str == nullptr) return false; in ParseInt32Flag() 181 return ParseInt32(std::string("The value of flag --") + flag, value_str, in ParseInt32Flag() 187 const char* const value_str = ParseFlagValue(str, flag, false); in ParseDoubleFlag() local 190 if (value_str == nullptr) return false; in ParseDoubleFlag() 193 return ParseDouble(std::string("The value of flag --") + flag, value_str, in ParseDoubleFlag() 199 const char* const value_str = ParseFlagValue(str, flag, false); in ParseStringFlag() local [all …]
|
/external/libcxx/utils/google-benchmark/src/ |
D | commandlineflags.cc | 163 const char* const value_str = ParseFlagValue(str, flag, true); in ParseBoolFlag() local 166 if (value_str == nullptr) return false; in ParseBoolFlag() 169 *value = IsTruthyFlagValue(value_str); in ParseBoolFlag() 175 const char* const value_str = ParseFlagValue(str, flag, false); in ParseInt32Flag() local 178 if (value_str == nullptr) return false; in ParseInt32Flag() 181 return ParseInt32(std::string("The value of flag --") + flag, value_str, in ParseInt32Flag() 187 const char* const value_str = ParseFlagValue(str, flag, false); in ParseDoubleFlag() local 190 if (value_str == nullptr) return false; in ParseDoubleFlag() 193 return ParseDouble(std::string("The value of flag --") + flag, value_str, in ParseDoubleFlag() 199 const char* const value_str = ParseFlagValue(str, flag, false); in ParseStringFlag() local [all …]
|
/external/llvm-project/libcxx/utils/google-benchmark/src/ |
D | commandlineflags.cc | 163 const char* const value_str = ParseFlagValue(str, flag, true); in ParseBoolFlag() local 166 if (value_str == nullptr) return false; in ParseBoolFlag() 169 *value = IsTruthyFlagValue(value_str); in ParseBoolFlag() 175 const char* const value_str = ParseFlagValue(str, flag, false); in ParseInt32Flag() local 178 if (value_str == nullptr) return false; in ParseInt32Flag() 181 return ParseInt32(std::string("The value of flag --") + flag, value_str, in ParseInt32Flag() 187 const char* const value_str = ParseFlagValue(str, flag, false); in ParseDoubleFlag() local 190 if (value_str == nullptr) return false; in ParseDoubleFlag() 193 return ParseDouble(std::string("The value of flag --") + flag, value_str, in ParseDoubleFlag() 199 const char* const value_str = ParseFlagValue(str, flag, false); in ParseStringFlag() local [all …]
|
/external/icu/icu4c/source/common/ |
D | localebuilder.cpp | 222 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 …]
|
/external/llvm-project/llvm/utils/unittest/googlemock/src/ |
D | gmock.cc | 94 const char* const value_str = ParseGoogleMockFlagValue(str, flag, true); in ParseGoogleMockBoolFlag() local 97 if (value_str == NULL) return false; in ParseGoogleMockBoolFlag() 100 *value = !(*value_str == '0' || *value_str == 'f' || *value_str == 'F'); in ParseGoogleMockBoolFlag() 113 const char* const value_str = ParseGoogleMockFlagValue(str, flag, false); in ParseGoogleMockStringFlag() local 116 if (value_str == NULL) return false; in ParseGoogleMockStringFlag() 119 *value = value_str; in ParseGoogleMockStringFlag()
|
/external/grpc-grpc/src/core/lib/transport/ |
D | metadata.cc | 156 char* value_str = grpc_slice_to_c_string(md->value); in ref_md_locked() local 160 gpr_atm_no_barrier_load(&md->refcnt) + 1, key_str, value_str); in ref_md_locked() 162 gpr_free(value_str); in ref_md_locked() 256 char* value_str = grpc_slice_to_c_string(allocated->value); in grpc_mdelem_create() local 259 key_str, value_str); in grpc_mdelem_create() 261 gpr_free(value_str); in grpc_mdelem_create() 309 char* value_str = grpc_slice_to_c_string(md->value); in grpc_mdelem_create() local 311 gpr_atm_no_barrier_load(&md->refcnt), key_str, value_str); in grpc_mdelem_create() 313 gpr_free(value_str); in grpc_mdelem_create() 356 char* value_str = grpc_slice_to_c_string(md->value); in grpc_mdelem_ref() local [all …]
|
/external/libchrome/base/test/metrics/ |
D | histogram_enum_reader.cc | 36 std::string value_str; in ParseEnumFromHistogramsXml() local 38 const bool has_value = reader->NodeAttribute("value", &value_str); in ParseEnumFromHistogramsXml() 48 << entries_index << ", value_str='" << value_str in ParseEnumFromHistogramsXml() 54 if (has_value && !StringToInt(value_str, &value)) { in ParseEnumFromHistogramsXml() 57 << "', value_str='" << value_str in ParseEnumFromHistogramsXml() 64 << "', value_str='" << value_str in ParseEnumFromHistogramsXml() 65 << "'): duplicate value '" << value_str in ParseEnumFromHistogramsXml()
|
/external/llvm-project/lldb/source/Interpreter/ |
D | OptionValueFormatEntity.cpp | 65 Status OptionValueFormatEntity::SetValueFromString(llvm::StringRef value_str, in SetValueFromString() argument 81 llvm::StringRef trimmed_value_str = value_str.trim(); in SetValueFromString() 86 if (trimmed_len == 1 || value_str[trimmed_len - 1] != first_char) { in SetValueFromString() 90 value_str = trimmed_value_str.substr(1, trimmed_len - 2); in SetValueFromString() 94 error = FormatEntity::Parse(value_str, entry); in SetValueFromString() 97 m_current_format = std::string(value_str); in SetValueFromString() 108 error = OptionValue::SetValueFromString(value_str, op); in SetValueFromString()
|
D | OptionValueUInt64.cpp | 17 lldb::OptionValueSP OptionValueUInt64::Create(llvm::StringRef value_str, in Create() argument 20 error = value_sp->SetValueFromString(value_str); in Create() 49 std::string value_str = value_ref.trim().str(); in SetValueFromString() local 50 uint64_t value = StringConvert::ToUInt64(value_str.c_str(), 0, 0, &success); in SetValueFromString() 57 value_str.c_str()); in SetValueFromString()
|
D | OptionValueBoolean.cpp | 33 Status OptionValueBoolean::SetValueFromString(llvm::StringRef value_str, in SetValueFromString() argument 45 bool value = OptionArgParser::ToBoolean(value_str, false, &success); in SetValueFromString() 51 if (value_str.size() == 0) in SetValueFromString() 55 value_str.str().c_str()); in SetValueFromString() 64 error = OptionValue::SetValueFromString(value_str, op); in SetValueFromString()
|
D | OptionValueString.cpp | 48 std::string value_str = value.str(); in SetValueFromString() local 61 value_str = value.str(); in SetValueFromString() 70 error = m_validator(value_str.c_str(), m_validator_baton); in SetValueFromString() 82 Args::EncodeEscapeSequences(value_str.c_str(), str); in SetValueFromString() 104 error = m_validator(value_str.c_str(), m_validator_baton); in SetValueFromString() 110 Args::EncodeEscapeSequences(value_str.c_str(), m_current_value); in SetValueFromString() 112 SetCurrentValue(value_str); in SetValueFromString()
|
D | OptionValueArch.cpp | 47 std::string value_str = value.trim().str(); in SetValueFromString() local 48 if (m_current_value.SetTriple(value_str.c_str())) { in SetValueFromString() 53 value_str.c_str()); in SetValueFromString()
|
/external/llvm-project/libcxx/test/libcxx/gdb/ |
D | gdb_pretty_printer_test.py | 43 value_str = self._get_value_string(compare_frame, testcase_frame) 46 value = value_str[value_str.find("= ") + 2:-1] 82 value_str = str(compare_frame.read_var("value")) 83 clean_expression_str = value_str.strip("'\"")
|
/external/bcc/src/cc/api/ |
D | BPFTable.cc | 43 std::string& value_str) { in get_value() argument 56 return leaf_to_string(value, value_str); in get_value() 60 std::vector<std::string>& value_str) { in get_value() argument 74 value_str.resize(ncpus); in get_value() 77 r = leaf_to_string(value + i * desc.leaf_size, value_str.at(i)); in get_value() 85 const std::string& value_str) { in update_value() argument 95 r = string_to_leaf(value_str, value); in update_value() 106 const std::vector<std::string>& value_str) { in update_value() argument 117 if (value_str.size() != ncpus) in update_value() 121 r = string_to_leaf(value_str.at(i), value + i * desc.leaf_size); in update_value() [all …]
|
/external/llvm-project/llvm/utils/lit/tests/Inputs/test-data-micro/ |
D | dummy_format.py | 27 for key,value_str in cfg.items('results'): 28 value = eval(value_str) 41 for key,value_str in cfg.items('micro-results'): 42 value = eval(value_str)
|
/external/llvm-project/libcxx/test/std/input.output/filesystems/class.path/path.member/path.native.obs/ |
D | native.pass.cpp | 29 std::string value_str(value); in main() local 30 fs::path::string_type pathstr_value(value_str.begin(), value_str.end()); in main()
|
D | operator_string.pass.cpp | 31 std::string value_str(value); in main() local 32 fs::path::string_type pathstr_value(value_str.begin(), value_str.end()); in main()
|
/external/autotest/client/cros/a11y/ |
D | a11y_test_base.py | 68 value_str = 'true' if value else 'false' 73 feature, value_str, feature)) 76 poll_cmd = 'window.__result == %s;' % value_str 81 (feature, value_str)))
|
/external/rust/crates/grpcio-sys/grpc/src/core/lib/transport/ |
D | metadata.cc | 69 char* value_str = grpc_slice_to_c_string(value); in grpc_mdelem_trace_ref() local 72 refcnt, refcnt + 1, key_str, value_str); in grpc_mdelem_trace_ref() 74 gpr_free(value_str); in grpc_mdelem_trace_ref() 83 char* value_str = grpc_slice_to_c_string(value); in grpc_mdelem_trace_unref() local 86 refcnt, refcnt - 1, key_str, value_str); in grpc_mdelem_trace_unref() 88 gpr_free(value_str); in grpc_mdelem_trace_unref() 160 char* value_str = grpc_slice_to_c_string(value()); in TraceAtStart() local 162 RefValue(), key_str, value_str); in TraceAtStart() 164 gpr_free(value_str); in TraceAtStart() 259 char* value_str = grpc_slice_to_c_string(md->value()); in grpc_mdctx_global_shutdown() local [all …]
|
/external/python/oauth2client/tests/contrib/django_util/ |
D | test_django_models.py | 71 value_str = self.fake_model_field.value_to_string(self.fake_model) 72 self.assertEqual(value_str, self.pickle_str) 76 value_str = self.fake_model_field.value_to_string(self.fake_model) 77 self.assertIsNone(value_str)
|
/external/libtextclassifier/native/lang_id/common/fel/ |
D | feature-extractor.cc | 83 std::string value_str = GetParameter(name, ""); in GetIntParameter() local 84 if (value_str.empty()) { in GetIntParameter() 89 if (!LiteAtoi(value_str, &value)) { in GetIntParameter() 90 SAFTM_LOG(DFATAL) << "Unable to parse '" << value_str in GetIntParameter()
|
/external/tensorflow/tensorflow/python/profiler/ |
D | pprof_profiler.py | 71 def index_of(self, value_str): argument 82 if value_str is None: 83 value_str = '' 84 if value_str in self._string_to_index: 85 return self._string_to_index[value_str] 87 self._string_table.append(value_str) 88 self._string_to_index[value_str] = index
|
/external/rust/crates/criterion/src/html/ |
D | mod.rs | 158 fn value(output_directory: &Path, group_id: &str, value_str: &'a str) -> ReportLink<'a> { in value() 160 path.push(make_filename_safe(value_str)); in value() 163 name: value_str, in value() 203 let value = id.value_str.as_ref().map(String::as_str); in new() 430 if let Some(ref value_str) = id.value_str { in summarize() 431 value_strs.push(value_str); in summarize() 475 for value_str in value_strs { in summarize() 479 .filter(|&&(ref id, _)| id.value_str.as_ref() == Some(&value_str)) in summarize() 484 BenchmarkId::new(group_id.clone(), None, Some(value_str.clone()), None); in summarize() 501 id.value_str in summarize() [all …]
|