/foundation/graphic/graphic_3d/lume/metaobject/src/loaders/ |
H A D | csv_parser.cpp | 38 * @param sv The string to trim. 43 BASE_NS::string_view CsvParser::Trimmed(BASE_NS::string_view sv, State state) in Trimmed() argument 46 return sv; in Trimmed() 49 sv.remove_suffix(std::distance(std::find_if(sv.rbegin(), sv.rend(), nspace).base(), sv.end())); in Trimmed() 50 sv.remove_prefix(std::find_if(sv.begin(), sv in Trimmed() [all...] |
H A D | csv_parser.h | 62 BASE_NS::string_view Trimmed(BASE_NS::string_view sv, State state);
|
/foundation/filemanagement/app_file_service/utils/include/b_json/ |
H A D | b_json_cached_entity.h | 78 std::string_view sv(rawBuf.get()); in ReloadFromFile() 80 if (sv.empty()) { in ReloadFromFile() 85 bool res = jsonReader->parse(sv.data(), sv.data() + sv.length(), &jValue, &errs); in ReloadFromFile() 99 void ReloadFromString(std::string_view sv) in ReloadFromString() argument 106 bool res = jsonReader->parse(sv.data(), sv.data() + sv.length(), &jValue, &errs); in ReloadFromString() 147 * @param sv 用于加载/持久化JSo 150 BJsonCachedEntity(std::string_view sv, std::any option = std::any()) BJsonCachedEntity() argument [all...] |
/foundation/filemanagement/app_file_service/tests/unittests/backup_utils/b_json/ |
H A D | b_json_entity_extension_config_test.cpp | 309 string_view sv = R"({"allowToBackupRestore":false})"; in HWTEST_F() local 311 BJsonCachedEntity<BJsonEntityExtensionConfig> cachedEntity(sv); in HWTEST_F() 313 string jsonRead = cache.GetJSonSource(sv, any()); in HWTEST_F() 345 string_view sv = R"({"allowToBackupRestore":false})"; in HWTEST_F() local 347 BJsonCachedEntity<BJsonEntityExtensionConfig> cachedEntity(sv, bundleName); in HWTEST_F() 349 string jsonRead = cache.GetJSonSource(sv, bundleName); in HWTEST_F() 372 string_view sv = R"({"allowToBackupRestore":false})"; in HWTEST_F() local 374 BJsonCachedEntity<BJsonEntityExtensionConfig> cachedEntity(sv); in HWTEST_F() 376 string jsonRead = cache.GetJSonSource(sv, any()); in HWTEST_F() 377 EXPECT_EQ(jsonRead, string(sv)); in HWTEST_F() 398 string_view sv = R"({"includes":1})"; HWTEST_F() local 423 string_view sv = R"({"includes":[1]})"; HWTEST_F() local 448 string_view sv = R"({"excludes":1})"; HWTEST_F() local 473 string_view sv = R"({"excludes":[1]})"; HWTEST_F() local 521 string_view sv = R"({"allowToBackupRestore_":true})"; HWTEST_F() local 545 string_view sv = R"({"allowToBackupRestore":1})"; HWTEST_F() local 569 string_view sv = R"({"allowToBackupRestore":true})"; HWTEST_F() local 616 string_view sv = R"({"fullBackupOnly_":true})"; HWTEST_F() local 640 string_view sv = R"({"fullBackupOnly":1})"; HWTEST_F() local 664 string_view sv = R"({"fullBackupOnly":true})"; HWTEST_F() local 711 string_view sv = R"({"restoreDeps_":true})"; HWTEST_F() local 735 string_view sv = R"({"restoreDeps":1})"; HWTEST_F() local 759 string_view sv = R"({"restoreDeps":"true"})"; HWTEST_F() local 783 string_view sv = R"({"includes":[]})"; HWTEST_F() local 808 string_view sv = R"({"excludes":[]})"; HWTEST_F() local 834 string_view sv = R"({"fullBackupOnly":1})"; HWTEST_F() local 858 string_view sv = R"({"fullBackupOnly":true})"; HWTEST_F() local 905 string_view sv = R"({"restoreDeps":1})"; HWTEST_F() local 930 string_view sv = R"({"restoreDeps_":true})"; HWTEST_F() local 955 string_view sv = R"({"":true})"; HWTEST_F() local [all...] |
H A D | b_json_entity_ext_manage_test.cpp | 417 string_view sv = R"({"key":1})"; in HWTEST_F() local 418 BJsonCachedEntity<BJsonEntityExtManage> cachedEntity(sv); in HWTEST_F() 442 string_view sv = R"([{"key":1}])"; in HWTEST_F() local 443 BJsonCachedEntity<BJsonEntityExtManage> cachedEntity(sv); in HWTEST_F() 467 string_view sv = R"([{"path":1}])"; in HWTEST_F() local 468 BJsonCachedEntity<BJsonEntityExtManage> cachedEntity(sv); in HWTEST_F() 492 string_view sv = R"([{"path":1}, {"fileName":1}])"; in HWTEST_F() local 493 BJsonCachedEntity<BJsonEntityExtManage> cachedEntity(sv); in HWTEST_F() 517 string_view sv = R"([{"":1}])"; in HWTEST_F() local 518 BJsonCachedEntity<BJsonEntityExtManage> cachedEntity(sv); in HWTEST_F() 542 string_view sv = R"([{"isBigFile":false}, {"fileName":"test"}])"; HWTEST_F() local [all...] |
H A D | b_json_cached_entity_test.cpp | 334 std::string_view sv = R"({"key":1})";
in HWTEST_F() local 336 jce.ReloadFromString(sv);
in HWTEST_F()
|
/foundation/graphic/graphic_3d/lume/LumeRender/src/loader/ |
H A D | shader_data_loader.cpp | 127 ShaderDataLoader::ShaderVariant sv; in LoadFunc() local 128 LoadSingleShaderVariant(variantRef, sv, result); in LoadFunc() 130 shaderVariants.push_back(move(sv)); in LoadFunc() 135 ShaderDataLoader::ShaderVariant sv; in LoadFunc() local 136 LoadSingleShaderVariant(jsonData, sv, result); in LoadFunc() 138 shaderVariants.push_back(move(sv)); in LoadFunc()
|
/foundation/filemanagement/file_api/interfaces/kits/rust/src/ |
H A D | ffi.rs | 27 Ok(sv) => sv,
|
/foundation/graphic/graphic_3d/lume/LumeBase/api/base/containers/ |
H A D | string_view.h | 142 constexpr bool starts_with(basic_string_view sv) const noexcept; 147 constexpr bool ends_with(basic_string_view sv) const noexcept; 312 basic_string_view sv(v); 314 *this = sv; 766 constexpr bool basic_string_view<CharT>::starts_with(basic_string_view sv) const noexcept 768 return compare(0U, sv.size_, sv) == 0; 795 constexpr bool basic_string_view<CharT>::ends_with(basic_string_view sv) const noexcept 797 return (size_ >= sv.size_) && (compare(size_ - sv [all...] |
H A D | string.h | 736 bool starts_with(basic_string_view<CharT> sv) const noexcept 738 return operator basic_string_view<CharT>().starts_with(sv); 752 bool ends_with(basic_string_view<CharT> sv) const noexcept 754 return operator basic_string_view<CharT>().ends_with(sv); 973 const auto sv = string_view(b); in operator +() local 974 res.reserve(a.length() + sv.length()); in operator +() 976 res += sv; in operator +() 992 const auto sv = string_view(a); in operator +() local 993 res.reserve(sv.length() + b.length()); in operator +() 994 res = sv; in operator +() [all...] |
/foundation/arkui/ace_engine/frameworks/core/components/scene_viewer/ |
H A D | render_scene_viewer.cpp | 51 auto sv = wp.Upgrade(); in Initialize() 52 if (sv) { in Initialize() 53 sv->HandleEvent(event); in Initialize()
|
/foundation/multimodalinput/input/libudev/src/ |
H A D | udev_device.cpp | 63 constexpr auto backStr = "../"sv; in ResolveSymLink() 301 AddProperty("DEVPATH", syspath.substr(0, "/sys"sv.size())); in SetSyspath()
|
/foundation/distributeddatamgr/data_share/test/native/unittest/mediadatashare_test/src/ |
H A D | mediadatashare_unit_test.cpp | 752 DataShare::SingleValue sv(base); in HWTEST_F() 753 int value = sv; in HWTEST_F() 776 DataShare::SingleValue svCopy(sv); in HWTEST_F() 780 DataShare::SingleValue svMove(std::move(sv)); in HWTEST_F()
|