/third_party/skia/third_party/externals/angle2/src/compiler/translator/ |
H A D | util.cpp | 16 bool atoi_clamp(const char *str, unsigned int *value) in atoi_clamp() argument 18 bool success = angle::pp::numeric_lex_int(str, value); in atoi_clamp() 99 float NumericLexFloat32OutOfRangeToInfinity(const std::string &str) in NumericLexFloat32OutOfRangeToInfinity() argument 118 while (i < str.length()) in NumericLexFloat32OutOfRangeToInfinity() 120 const char c = str[i]; in NumericLexFloat32OutOfRangeToInfinity() 163 if (i < str.length()) in NumericLexFloat32OutOfRangeToInfinity() 165 ASSERT(str[i] == 'e' || str[i] == 'E'); in NumericLexFloat32OutOfRangeToInfinity() 169 if (str[i] == '-') in NumericLexFloat32OutOfRangeToInfinity() 174 else if (str[ in NumericLexFloat32OutOfRangeToInfinity() [all...] |
/foundation/ability/ability_runtime/test/unittest/frameworks_kits_ability_native_test/ |
H A D | data_ability_result_test.cpp | 165 std::string str = dataAbilityResult.ToString(); in HWTEST_F() local 167 result = str.find(search, pos); in HWTEST_F() 174 result = str.find(search, pos); in HWTEST_F() 183 result = str.find(search, pos); in HWTEST_F() 190 EXPECT_EQ(str.length(), pos); in HWTEST_F() 205 std::string str = dataAbilityResult.ToString(); in HWTEST_F() local 207 result = str.find(search, pos); in HWTEST_F() 214 result = str.find(search, pos); in HWTEST_F() 223 result = str.find(search, pos); in HWTEST_F() 230 EXPECT_EQ(str in HWTEST_F() [all...] |
/foundation/multimedia/player_framework/services/utils/ |
H A D | uri_helper.cpp | 58 bool StrToInt(const std::string_view& str, T& value) in StrToInt() argument 60 if (str.empty() || (!isdigit(str.front()) && (str.front() != '-'))) { in StrToInt() 63 std::string valStr(str); in StrToInt() 69 "call StrToInt func false, input str is: %{public}s!", valStr.c_str()); in StrToInt() 71 "call StrToInt func false, input str is: %{public}s!", valStr.c_str()); in StrToInt() 74 "call StrToInt func false, input str is: %{public}s!", valStr.c_str()); in StrToInt() 83 std::pair<std::string_view, std::string_view> SplitUriHeadAndBody(const std::string_view &str) in SplitUriHeadAndBody() argument 85 std::string_view::size_type start = str in SplitUriHeadAndBody() [all...] |
/foundation/communication/netmanager_ext/test/vpnmanager/unittest/vpn_manager_ext_test/ |
H A D | networkvpn_service_ext_test.cpp | 208 char *str = cJSON_Print(json); in HWTEST_F() local 209 if (str != nullptr) { in HWTEST_F() 210 josnStr = str; in HWTEST_F() 211 free(str); in HWTEST_F() 212 str = nullptr; in HWTEST_F() 233 char *str = cJSON_Print(json); in HWTEST_F() local 234 if (str != nullptr) { in HWTEST_F() 235 josnStr = str; in HWTEST_F() 236 free(str); in HWTEST_F() 237 str in HWTEST_F() [all...] |
/test/xts/device_attest_lite/services/core/utils/ |
H A D | attest_utils.c | 142 int32_t AnonymiseStr(char* str) in AnonymiseStr() argument 144 if (str == NULL || strlen(str) == 0) { in AnonymiseStr() 147 uint32_t strLen = strlen(str); in AnonymiseStr() 151 ret = memset_s((void*)str, strLen, '*', strLen); in AnonymiseStr() 156 ret = memset_s((void*)(str + endpointLen), (strLen - unAnonyStrLen), '*', (strLen - unAnonyStrLen)); in AnonymiseStr() 177 int32_t ToLowerStr(char* str, int len) in ToLowerStr() argument 179 if (str == NULL) { in ToLowerStr() 185 str[i] = tolower(str[ in ToLowerStr() [all...] |
/third_party/ffmpeg/libavcodec/mips/ |
H A D | h263dsp_msa.c | 35 v8i16 d0, a_d0, str_x2, str; in h263_h_loop_filter_msa() local 53 str = __msa_fill_h(-strength); in h263_h_loop_filter_msa() 54 temp0 = (diff2 < str); in h263_h_loop_filter_msa() 61 str = __msa_fill_h(strength); in h263_h_loop_filter_msa() 62 temp0 = (str < diff4); in h263_h_loop_filter_msa() 98 v8i16 d0, a_d0, str_x2, str; in h263_v_loop_filter_msa() local 113 str = __msa_fill_h(-strength); in h263_v_loop_filter_msa() 114 temp0 = (diff2 < str); in h263_v_loop_filter_msa() 121 str = __msa_fill_h(strength); in h263_v_loop_filter_msa() 122 temp0 = (str < diff in h263_v_loop_filter_msa() [all...] |
/third_party/elfutils/libdwelf/ |
H A D | dwelf_strtab.c | 148 newstring (Dwelf_Strtab *st, const char *str, size_t len) in newstring() argument 167 newstr->string = str; in newstring() 174 newstr->reverse[i] = str[len - 2 - i]; in newstring() 211 strtab_add (Dwelf_Strtab *st, const char *str, size_t len) in strtab_add() argument 219 Dwelf_Strent *newstr = newstring (st, str, len); in strtab_add() 280 dwelf_strtab_add (Dwelf_Strtab *st, const char *str) in dwelf_strtab_add() argument 282 return strtab_add (st, str, strlen (str) + 1); in dwelf_strtab_add() 286 dwelf_strtab_add_len (Dwelf_Strtab *st, const char *str, size_t len) in dwelf_strtab_add_len() argument 288 return strtab_add (st, str, le in dwelf_strtab_add_len() [all...] |
/third_party/gn/src/gn/ |
H A D | create_bundle_target_generator.cc | 120 std::string str = value->string_value(); in FillBundleDir() 121 if (!str.empty() && str[str.size() - 1] != '/') in FillBundleDir() 122 str.push_back('/'); in FillBundleDir() 123 if (!EnsureStringIsInOutputDir(GetBuildSettings()->build_dir(), str, in FillBundleDir() 126 if (str != bundle_root_dir.value() && in FillBundleDir() 127 !IsStringInOutputDir(bundle_root_dir, str)) { in FillBundleDir() 134 str.c_str())); in FillBundleDir() 137 *bundle_dir = SourceDir(std::move(str)); in FillBundleDir() [all...] |
/third_party/curl/lib/ |
H A D | memdebug.c | 187 ALLOC_FUNC char *curl_dbg_strdup(const char *str, in curl_dbg_strdup() argument 193 DEBUGASSERT(str != NULL); in curl_dbg_strdup() 198 len = strlen(str) + 1; in curl_dbg_strdup() 202 memcpy(mem, str, len); in curl_dbg_strdup() 206 source, line, (const void *)str, len, (const void *)mem); in curl_dbg_strdup() 212 ALLOC_FUNC wchar_t *curl_dbg_wcsdup(const wchar_t *str, in curl_dbg_wcsdup() argument 218 DEBUGASSERT(str != NULL); in curl_dbg_wcsdup() 223 wsiz = wcslen(str) + 1; in curl_dbg_wcsdup() 228 memcpy(mem, str, bsiz); in curl_dbg_wcsdup() 232 source, line, (void *)str, bsi in curl_dbg_wcsdup() [all...] |
/third_party/node/test/parallel/ |
H A D | test-querystring.js | 58 ['str=foo&arr=1&arr=2&arr=3&somenull=&undef=', 59 'str=foo&arr=1&arr=2&arr=3&somenull=&undef=', 60 { 'str': 'foo', 420 function demoDecode(str) { 421 return str + str; 428 qs.parse('a=a&b=b&c=c', null, '==', { decodeURIComponent: (str) => str }), 434 function errDecode(str) { 444 function demoEncode(str) { [all...] |
/third_party/node/deps/v8/tools/ |
H A D | eval_gc_nvp.py | 72 str(min_value), str(max_value), self.histogram[i])) 76 str(min_value), str(max_value), 0)) 125 ret = [str(x) for x in ret] 135 ret.append(str(self.histogram)) 152 parser.add_argument('keys', metavar='KEY', type=str, nargs='+', 155 type=str, nargs='?', default="linear", 175 type=str, nargs='?', 181 type=str, defaul [all...] |
/third_party/lwip/test/unit/ip6/ |
H A D | test_ip6.c | 211 char *str; in START_TEST() local 214 str = ip6addr_ntoa_r(ip_2_ip6(&addr), buf, sizeof(buf)); in START_TEST() 215 fail_unless(str == buf); in START_TEST() 216 fail_unless(!strcmp(str, "::FFFF:212.204.101.210")); in START_TEST() 222 const char *str; member 233 char *str; in START_TEST() local 238 str = ip6addr_ntoa_r(ip_2_ip6(&tests[i].addr), buf, sizeof(buf)); in START_TEST() 239 fail_unless(str == buf); in START_TEST() 240 fail_unless(!strcmp(str, tests[i].str)); in START_TEST() [all...] |
/third_party/node/deps/openssl/openssl/crypto/asn1/ |
H A D | tasn_new.c | 265 ASN1_STRING *str; in asn1_primitive_new() local 312 str = *(ASN1_STRING **)pval; in asn1_primitive_new() 313 memset(str, 0, sizeof(*str)); in asn1_primitive_new() 314 str->type = utype; in asn1_primitive_new() 315 str->flags = ASN1_STRING_FLAG_EMBED; in asn1_primitive_new() 317 str = ASN1_STRING_type_new(utype); in asn1_primitive_new() 318 *pval = (ASN1_VALUE *)str; in asn1_primitive_new() 320 if (it->itype == ASN1_ITYPE_MSTRING && str) in asn1_primitive_new() 321 str in asn1_primitive_new() [all...] |
/third_party/rust/crates/clap/clap_bench/benches/ |
H A D | 06_rustup.rs | 314 static RUSTUP_HELP: &str = r" 323 static SHOW_HELP: &str = r" 332 static UPDATE_HELP: &str = r" 343 static TOOLCHAIN_INSTALL_HELP: &str = r" 351 static DEFAULT_HELP: &str = r" 355 static TOOLCHAIN_HELP: &str = r" 390 static OVERRIDE_HELP: &str = r" 411 static OVERRIDE_UNSET_HELP: &str = r" 417 static RUN_HELP: &str = r" 431 static DOC_HELP: &str [all...] |
/third_party/python/Lib/ |
H A D | cmd.py | 118 self.stdout.write(str(self.intro)+"\n") 302 self.stdout.write("%s\n"%str(doc)) 306 self.stdout.write("%s\n"%str(self.nohelp % (arg,))) 333 self.stdout.write("%s\n"%str(self.doc_leader)) 340 self.stdout.write("%s\n"%str(header)) 342 self.stdout.write("%s\n"%str(self.ruler * len(header))) 357 if not isinstance(list[i], str)] 360 % ", ".join(map(str, nonstrings))) 363 self.stdout.write('%s\n'%str(list[0])) 401 self.stdout.write("%s\n"%str(" " [all...] |
/third_party/openssl/ohos_lite/crypto/ |
H A D | cryptlib.c | 65 static uint64_t ossl_strtouint64(const variant_char *str) in ossl_strtouint64() argument 70 if (*str == '0') { in ossl_strtouint64() 71 base = 8, str++; in ossl_strtouint64() 72 if (ossl_tolower(*str) == 'x') in ossl_strtouint64() 73 base = 16, str++; in ossl_strtouint64() 76 while((digit = todigit(*str++)) < base) in ossl_strtouint64() 82 static variant_char *ossl_strchr(const variant_char *str, char srch) in ossl_strchr() argument 85 while((c = *str)) { in ossl_strchr() 87 return (variant_char *)str; in ossl_strchr() 88 str in ossl_strchr() [all...] |
/third_party/openssl/crypto/asn1/ |
H A D | tasn_new.c | 265 ASN1_STRING *str; in asn1_primitive_new() local 312 str = *(ASN1_STRING **)pval; in asn1_primitive_new() 313 memset(str, 0, sizeof(*str)); in asn1_primitive_new() 314 str->type = utype; in asn1_primitive_new() 315 str->flags = ASN1_STRING_FLAG_EMBED; in asn1_primitive_new() 317 str = ASN1_STRING_type_new(utype); in asn1_primitive_new() 318 *pval = (ASN1_VALUE *)str; in asn1_primitive_new() 320 if (it->itype == ASN1_ITYPE_MSTRING && str) in asn1_primitive_new() 321 str in asn1_primitive_new() [all...] |
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/Object/ |
H A D | IRSymtab.h | 240 StringRef str(storage::Str S) const { return S.get(Strtab); } in str() function in llvm::irsymtab::Reader 276 StringRef getTargetTriple() const { return str(header().TargetTriple); } in getTargetTriple() 279 StringRef getSourceFileName() const { return str(header().SourceFileName); } in getSourceFileName() 286 ComdatTable.push_back(str(C.Name)); in getComdatTable() 291 StringRef getCOFFLinkerOpts() const { return str(header().COFFLinkerOpts); } in getCOFFLinkerOpts() 298 Specifiers.push_back(str(S)); in getDependentLibraries() 315 Name = R->str(SymI->Name); in read() 316 IRName = R->str(SymI->IRName); in read() 323 COFFWeakExternFallbackName = R->str(UncI->COFFWeakExternFallbackName); in read() 324 SectionName = R->str(Unc in read() [all...] |
/third_party/skia/third_party/externals/tint/src/reader/spirv/ |
H A D | usage_test.cc | 46 EXPECT_THAT(ss.str(), Eq("Usage()")); in TEST_F() 96 EXPECT_THAT(ss.str(), Eq("Usage(Sampler( comparison )Texture( read ))")); in TEST_F() 116 EXPECT_THAT(ss.str(), Eq("Usage(Sampler( ))")); in TEST_F() 141 EXPECT_THAT(ss.str(), Eq("Usage(Sampler( comparison ))")); in TEST_F() 165 EXPECT_THAT(ss.str(), Eq("Usage(Texture( ))")); in TEST_F() 189 EXPECT_THAT(ss.str(), Eq("Usage(Texture( is_sampled ))")); in TEST_F() 213 EXPECT_THAT(ss.str(), Eq("Usage(Texture( is_sampled ms ))")); in TEST_F() 237 EXPECT_THAT(ss.str(), Eq("Usage(Texture( is_sampled depth ))")); in TEST_F() 261 EXPECT_THAT(ss.str(), Eq("Usage(Texture( read ))")); in TEST_F() 285 EXPECT_THAT(ss.str(), E in TEST_F() [all...] |
/third_party/skia/third_party/externals/tint/src/writer/glsl/ |
H A D | generator_impl_import_test.cc | 45 EXPECT_EQ(out.str(), std::string(param.glsl_name) + "(1.0f)"); in TEST_P() 84 EXPECT_EQ(out.str(), std::string(param.glsl_name) + "(1)"); in TEST_P() 102 EXPECT_EQ(out.str(), in TEST_P() 144 EXPECT_EQ(out.str(), std::string(param.glsl_name) + "(1.0f, 2.0f)"); in TEST_P() 167 EXPECT_EQ(out.str(), std::string(param.glsl_name) + in TEST_P() 192 EXPECT_EQ(out.str(), std::string(param.glsl_name) + "(1, 2)"); in TEST_P() 210 EXPECT_EQ(out.str(), std::string(param.glsl_name) + "(1.0f, 2.0f, 3.0f)"); in TEST_P() 233 out.str(), in TEST_P() 260 EXPECT_EQ(out.str(), std::string(param.glsl_name) + "(1, 2, 3)"); in TEST_P() 276 EXPECT_EQ(out.str(), st in TEST_F() [all...] |
/third_party/skia/third_party/externals/tint/src/writer/hlsl/ |
H A D | generator_impl_import_test.cc | 45 EXPECT_EQ(out.str(), std::string(param.hlsl_name) + "(1.0f)"); in TEST_P() 84 EXPECT_EQ(out.str(), std::string(param.hlsl_name) + "(1)"); in TEST_P() 102 EXPECT_EQ(out.str(), in TEST_P() 144 EXPECT_EQ(out.str(), std::string(param.hlsl_name) + "(1.0f, 2.0f)"); in TEST_P() 167 EXPECT_EQ(out.str(), in TEST_P() 193 EXPECT_EQ(out.str(), std::string(param.hlsl_name) + "(1, 2)"); in TEST_P() 211 EXPECT_EQ(out.str(), std::string(param.hlsl_name) + "(1.0f, 2.0f, 3.0f)"); in TEST_P() 234 out.str(), in TEST_P() 261 EXPECT_EQ(out.str(), std::string(param.hlsl_name) + "(1, 2, 3)"); in TEST_P() 277 EXPECT_EQ(out.str(), st in TEST_F() [all...] |
/third_party/skia/third_party/externals/tint/src/writer/msl/ |
H A D | generator_impl_import_test.cc | 86 EXPECT_EQ(out.str(), R"(abs(1))"); in TEST_F() 97 EXPECT_EQ(out.str(), R"(fabs(2.0f))"); in TEST_F() 111 EXPECT_EQ(out.str(), std::string(param.msl_name) + "(1.0f, 2.0f)"); in TEST_P() 129 EXPECT_EQ(out.str(), R"(fabs(2.0f - 3.0f))"); in TEST_F() 144 EXPECT_EQ(out.str(), in TEST_P() 170 EXPECT_EQ(out.str(), std::string(param.msl_name) + "(1, 2)"); in TEST_P() 188 EXPECT_EQ(out.str(), std::string(param.msl_name) + "(1.0f, 2.0f, 3.0f)"); in TEST_P() 211 out.str(), in TEST_P() 234 EXPECT_EQ(out.str(), std::string(param.msl_name) + "(1, 2, 3)"); in TEST_P() 252 EXPECT_EQ(out.str(), st in TEST_F() [all...] |
/third_party/skia/third_party/externals/angle2/src/common/ |
H A D | string_utils_unittest.cpp | 36 for (auto str : r) in TEST() 37 ASSERT_TRUE(str.empty()); in TEST() 223 bool runBeginsWith(const char *str, const char *prefix) in runBeginsWith() argument 227 return BeginsWith(str, prefix); in runBeginsWith() 231 return BeginsWith(std::string(str), prefix); in runBeginsWith() 233 return BeginsWith(std::string(str), std::string(prefix)); in runBeginsWith() 287 bool runEndsWith(const char *str, const char *suffix) in runEndsWith() argument 291 return EndsWith(str, suffix); in runEndsWith() 295 return EndsWith(std::string(str), suffix); in runEndsWith() 297 return EndsWith(std::string(str), st in runEndsWith() [all...] |
/third_party/libabigail/src/ |
H A D | abg-tools-utils.cc | 300 return o.str(); in value_as_string() 881 /// @param str the string to consider. 885 /// @return true iff string @p str ends with suffix @p suffix. 887 string_ends_with(const string& str, const string& suffix) in string_ends_with() argument 889 string::size_type str_len = str.length(), suffix_len = suffix.length(); in string_ends_with() 893 return str.compare(str_len - suffix_len, suffix_len, suffix) == 0; in string_ends_with() 898 /// @param str the string consider. 902 /// @return true iff string @p str begins with prefix @p prefix. 904 string_begins_with(const string& str, const string& prefix) in string_begins_with() argument 906 if (str in string_begins_with() 925 string_is_ascii(const string& str) string_is_ascii() argument 950 string_is_ascii_identifier(const string& str) string_is_ascii_identifier() argument 1241 trim_white_space(const string& str) trim_white_space() argument 1279 string str = from; trim_leading_string() local 1626 get_deb_name(const string& str, string& name) get_deb_name() argument 1656 get_rpm_name(const string& str, string& name) get_rpm_name() argument 1690 get_rpm_arch(const string& str, string& arch) get_rpm_arch() argument [all...] |
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/memory_model/ |
H A D | vktMemoryModelMessagePassing.cpp | 368 storageSemanticsAcquire << storageSemanticsRelease.str(); in initPrograms() 498 if (pushConstMembers.str().size() != 0) { in initPrograms() 499 css << "layout (push_constant, std430) uniform PC {\n" << pushConstMembers.str() << "};\n"; in initPrograms() 684 css << " memoryBarrier(" << scopeStr << ", " << storageSemanticsRelease.str() << ", " << semanticsRelease.str() << ");\n" in initPrograms() 686 " memoryBarrier(" << scopeStr << ", " << storageSemanticsAcquire.str() << ", " << semanticsAcquire.str() << ");\n"; in initPrograms() 692 << storageSemanticsRelease.str() << " | " << storageSemanticsAcquire.str() << ", " in initPrograms() 693 << semanticsAcquireRelease.str() << ");\ in initPrograms() [all...] |