Home
last modified time | relevance | path

Searched refs:EndsWith (Results 1 - 25 of 70) sorted by relevance

123

/foundation/ability/idl_tool/test/unittest/util_string_test/
H A Dutil_string_test.cpp105 * @tc.desc: Verify the EndsWith function.
113 EXPECT_FALSE(String().EndsWith(String("name"))); in HWTEST_F()
114 EXPECT_FALSE(String("name").EndsWith(String())); in HWTEST_F()
115 EXPECT_FALSE(String("name").EndsWith(String("names"))); in HWTEST_F()
116 EXPECT_FALSE(String("name").EndsWith(String("ma"))); in HWTEST_F()
118 EXPECT_TRUE(String("name").EndsWith(String(""))); in HWTEST_F()
119 EXPECT_TRUE(String("name").EndsWith(String("me"))); in HWTEST_F()
120 EXPECT_TRUE(String("n.a.m.e").EndsWith(String("m.e"))); in HWTEST_F()
/foundation/ability/idl_tool/util/
H A Dstring.h83 bool EndsWith(const char* string) const;
85 bool EndsWith(const String& other) const;
/foundation/multimedia/media_library/frameworks/services/media_cloud_enhancement/src/utils/
H A Ddynamic_loader.cpp47 if (!EndsWith(dynamicLibrary, K_LIBRARY_SUFFIX)) { in OpenDynamicHandle()
90 if (!EndsWith(dynamicLibrary, K_LIBRARY_SUFFIX)) { in CloseDynamicHandle()
/foundation/filemanagement/dfs_service/test/unittests/utils/cloud_disk/
H A Dcloud_file_utils_test.cpp138 EXPECT_EQ(CloudFileUtils::EndsWith(fullString, ending), true); in HWTEST_F()
141 EXPECT_EQ(CloudFileUtils::EndsWith(fullString, ending), true); in HWTEST_F()
148 EXPECT_EQ(CloudFileUtils::EndsWith(fullString, ending), false); in HWTEST_F()
/foundation/multimedia/image_effect/frameworks/native/utils/common/
H A Dstring_helper.h27 IMAGE_EFFECT_EXPORT static bool EndsWith(const std::string &input, const std::string &suffix);
H A Dstring_helper.cpp23 bool StringHelp::EndsWith(const std::string &input, const std::string &suffix) in EndsWith() function in OHOS::Media::Effect::StringHelp
/foundation/communication/netmanager_ext/frameworks/native/mdnsclient/src/
H A Dmdns_common.cpp33 bool EndsWith(const std::string_view &str, const std::string_view &pat) in EndsWith() function
95 return domain.size() + static_cast<size_t>(!EndsWith(domain, MDNS_DOMAIN_SPLITER_STR)) <= MDNS_MAX_DOMAIN; in IsDomainValid()
/foundation/bundlemanager/bundle_framework/interfaces/kits/cj/src/
H A Dcj_zip.cpp94 if (EndsWith(path, SEPARATOR)) { in CreateDirectory()
103 if (EndsWith(extractDir.Value(), SEPARATOR)) { in CreateFilePathWriterDelegate()
112 bool endIsSeparator = EndsWith(paramPath.Value(), SEPARATOR); in FilePathEndIsSeparator()
130 if (EndsWith(paramPath.Value(), SEPARATOR)) { in Zip()
/foundation/filemanagement/app_file_service/frameworks/native/backup_ext/src/
H A Dext_backup_context.cpp32 if (BFile::EndsWith(bundleName, BConstants::BUNDLE_FILE_MANAGER) && bundleName.size() == BConstants::FM_LEN) { in GetBackupDir()
/foundation/filemanagement/app_file_service/utils/include/b_filesystem/
H A Db_file.h94 static bool EndsWith(const string &str, const string &suffix);
/foundation/multimedia/media_library/frameworks/services/media_cloud_enhancement/include/utils/
H A Ddynamic_loader.h38 inline bool EndsWith(const std::string& str, const std::string& suffix) in EndsWith() function in OHOS::Media::DynamicLoader
/foundation/communication/netmanager_ext/interfaces/innerkits/mdnsclient/include/
H A Dmdns_common.h42 bool EndsWith(const std::string_view &str, const std::string_view &pat);
/foundation/arkui/ace_engine/frameworks/core/image/
H A Dimage_file_cache.cpp42 bool EndsWith(const std::string& str, const std::string& substr) in EndsWith() function
50 return (fileNameStr.length() >= ASTC_SUFFIX.length()) && EndsWith(fileNameStr, ASTC_SUFFIX); in IsAstcFile()
241 if ((suffix.empty() || EndsWith(infoIter->fileName, suffix)) && IsFileExists(writeFilePath.c_str())) { in WriteCacheFile()
344 if (iter != fileNameToFileInfoPos_.end() && (suffix == "" || EndsWith(iter->second->fileName, suffix))) { in GetCacheFilePathInner()
/foundation/bundlemanager/bundle_framework/interfaces/kits/js/zip/src/
H A Dzip.cpp94 if (EndsWith(path, SEPARATOR)) { in CreateDirectory()
104 if (EndsWith(extractDir.Value(), SEPARATOR)) { in CreateFilePathWriterDelegate()
122 bool endIsSeparator = EndsWith(paramPath.Value(), SEPARATOR); in FilePathEndIsSeparator()
140 if (EndsWith(paramPath.Value(), SEPARATOR)) { in Zip()
210 if (!EndsWith(paramPath.Value(), SEPARATOR)) { in GetZipsAllRelativeFiles()
H A Dzip_utils.cpp59 bool EndsWith(const std::string &str, const std::string &searchFor) in EndsWith() function
/foundation/distributeddatamgr/relational_store/interfaces/inner_api/rdb_data_share_adapter/include/
H A Drdb_utils.h122 static void EndsWith(const OperationItem &item, RdbPredicates &predicates);
163 [DataShare::END_WITH] = &RdbUtils::EndsWith,
/foundation/bundlemanager/bundle_framework/interfaces/kits/js/zip/include/
H A Dzip_utils.h133 bool EndsWith(const std::string &str, const std::string &searchFor);
/foundation/distributeddatamgr/relational_store/frameworks/cj/include/
H A Drelational_store_impl_rdbpredicatesproxy.h55 void EndsWith(const char* field, const char* value);
/foundation/communication/netstack/utils/common_utils/include/
H A Dnetstack_common_utils.h55 bool EndsWith(const std::string &str, const std::string &suffix);
/foundation/distributeddatamgr/data_share/frameworks/js/napi/common/include/
H A Ddatashare_predicates_proxy.h53 static napi_value EndsWith(napi_env env, napi_callback_info info);
/foundation/filemanagement/dfs_service/test/unittests/cloudsync_sa/mock/
H A Dcloud_file_utils_mock.cpp91 bool CloudFileUtils::EndsWith(const string &fullString, const string &ending) in EndsWith() function in OHOS::FileManagement::CloudDisk::CloudFileUtils
/foundation/filemanagement/dfs_service/utils/inner_api/
H A Dcloud_file_utils.h72 static bool EndsWith(const std::string &fullString, const std::string &ending);
/foundation/distributeddatamgr/relational_store/frameworks/native/rdb_data_share_adapter/src/
H A Drdb_utils.cpp187 void RdbUtils::EndsWith(const DataShare::OperationItem &item, RdbPredicates &predicates) in EndsWith() function in RdbUtils
189 predicates.EndsWith(item.GetSingle(0), ToValueObject(item.singleParams[1])); in EndsWith()
/foundation/distributeddatamgr/relational_store/frameworks/cj/src/
H A Drelational_store_impl_rdbpredicatesproxy.cpp92 void RdbPredicatesImpl::EndsWith(const char* field, const char* value) in EndsWith() function in OHOS::Relational::RdbPredicatesImpl
96 predicates_->EndsWith(cfield, cvalue); in EndsWith()
/foundation/filemanagement/dfs_service/utils/cloud_disk/src/
H A Dcloud_file_utils.cpp168 if (EndsWith(path, TMP_SUFFIX)) { in GetPathWithoutTmp()
174 bool CloudFileUtils::EndsWith(const string &fullString, const string &ending) in EndsWith() function in OHOS::FileManagement::CloudDisk::CloudFileUtils

Completed in 10 milliseconds

123