/ohos5.0/foundation/arkui/ui_lite/interfaces/kits/common/ |
H A D | image.h | 179 bool IsImgValid(const char* suffix) in IsImgValid() argument 181 return (!strcmp(suffix, ".png") || !strcmp(suffix, ".PNG") || !strcmp(suffix, ".jpg") || in IsImgValid() 182 !strcmp(suffix, ".JPG") || !strcmp(suffix, ".jpeg") || !strcmp(suffix, ".JPEG") || in IsImgValid() 183 …!strcmp(suffix, ".BMP") || !strcmp(suffix, ".bmp") || !strcmp(suffix, ".GIF") || !strcmp(suffix, "… in IsImgValid()
|
/ohos5.0/base/hiviewdfx/faultloggerd/common/dfxutil/ |
H A D | string_util.h | 61 inline bool EndsWith(const std::string& s, const std::string& suffix) in EndsWith() argument 63 return s.size() >= suffix.size() && in EndsWith() 64 s.substr(s.size() - suffix.size(), suffix.size()) == suffix; in EndsWith() 67 inline bool EndsWith(const std::string& s, char suffix) in EndsWith() argument 69 return !s.empty() && s.back() == suffix; in EndsWith() 72 inline bool EndsWithIgnoreCase(const std::string& s, const std::string& suffix) in EndsWithIgnoreCase() argument 74 return s.size() >= suffix.size() && in EndsWithIgnoreCase() 75 strncasecmp(s.data() + (s.size() - suffix.size()), suffix.data(), suffix.size()) == 0; in EndsWithIgnoreCase()
|
/ohos5.0/foundation/multimedia/image_effect/frameworks/native/utils/common/ |
H A D | string_helper.cpp | 23 bool StringHelp::EndsWith(const std::string &input, const std::string &suffix) in EndsWith() argument 25 if (input.length() < suffix.length()) { in EndsWith() 28 return input.compare(input.length() - suffix.length(), suffix.length(), suffix) == 0; in EndsWith() 31 bool StringHelp::EndsWithIgnoreCase(const std::string &input, const std::string &suffix) in EndsWithIgnoreCase() argument 33 if (input.length() < suffix.length()) { in EndsWithIgnoreCase() 37 std::string inputEnd = input.substr(input.length() - suffix.length(), suffix.length()); in EndsWithIgnoreCase() 40 std::string suffixLower = suffix; in EndsWithIgnoreCase()
|
/ohos5.0/foundation/bundlemanager/bundle_framework/interfaces/inner_api/appexecfwk_base/src/ |
H A D | mime_type_mgr.cpp | 75 bool MimeTypeMgr::GetUriSuffix(const std::string &uri, std::string &suffix) in GetUriSuffix() argument 78 suffix = ZIP_SUFFIX; in GetUriSuffix() 82 suffix = FILE_7Z_SUFFIX; in GetUriSuffix() 90 suffix = uri.substr(suffixIndex); in GetUriSuffix() 91 std::transform(suffix.begin(), suffix.end(), suffix.begin(), in GetUriSuffix() 99 std::string suffix; in GetUtdVectorByUri() local 100 if (!GetUriSuffix(uri, suffix)) { in GetUtdVectorByUri() 104 …auto ret = UDMF::UtdClient::GetInstance().GetUniformDataTypesByFilenameExtension(suffix, utdVector… in GetUtdVectorByUri() 106 APP_LOGD("Get utd vector by suffix %{public}s failed. err %{public}d", suffix.c_str(), ret); in GetUtdVectorByUri()
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/bridge/common/manifest/ |
H A D | manifest_router.cpp | 23 std::string ManifestRouter::GetEntry(const std::string& suffix) const in GetEntry() 28 return pages_.front() + suffix; in GetEntry() 33 const std::string suffix = ".js"; in GetPagePath() local 43 return pages_.front() + suffix; in GetPagePath() 46 return uri + suffix; in GetPagePath() 52 std::string ManifestRouter::GetPagePath(const std::string& uri, const std::string& suffix) const in GetPagePath() 60 return pages_.front() + suffix; in GetPagePath() 64 return uri + suffix; in GetPagePath() 67 if (uri.rfind(suffix) != std::string::npos) { in GetPagePath()
|
/ohos5.0/base/update/updater/interfaces/kits/slot_info/ |
H A D | slot_info.cpp | 25 void GetPartitionSuffix(std::string &suffix) in GetPartitionSuffix() argument 27 suffix = ""; in GetPartitionSuffix() 33 void GetPartitionSuffix(std::string &suffix) 41 suffix = ""; 46 ret = psMgr.GetSlotSuffix(updateSlot, suffix); 48 LOG(ERROR) << "Get slot suffix error, partitionPath: " << suffix; 49 suffix = "";
|
/ohos5.0/drivers/peripheral/pin_auth/hdi_service/database/src/ |
H A D | pin_db_ops_base.c | 61 ResultCode GenerateFileName(uint64_t templateId, const char *prefix, const char *suffix, in GenerateFileName() argument 64 if (prefix == NULL || suffix == NULL || fileName == NULL) { in GenerateFileName() 88 …if (GetBufFromData((uint8_t *)suffix, strlen(suffix), (uint8_t **)&buf, &bufLen) != RESULT_SUCCESS… in GenerateFileName() 102 ResultCode ReadPinFile(uint8_t *data, uint32_t dataLen, uint64_t templateId, const char *suffix) in ReadPinFile() argument 104 if (data == NULL || suffix == NULL) { in ReadPinFile() 115 …ResultCode ret = GenerateFileName(templateId, DEFAULT_FILE_HEAD, suffix, fileName, MAX_FILE_NAME_L… in ReadPinFile() 130 …ltCode WritePinFile(const uint8_t *data, uint32_t dataLen, uint64_t templateId, const char *suffix) in WritePinFile() argument 132 if (data == NULL || suffix == NULL) { in WritePinFile() 143 …ResultCode ret = GenerateFileName(templateId, DEFAULT_FILE_HEAD, suffix, fileName, MAX_FILE_NAME_L… in WritePinFile()
|
/ohos5.0/docs/zh-cn/contribute/ |
H A D | OpenHarmony-build-rule.md | 101 |---build.suffix 104 |---build.suffix 107 |---build.suffix 111 base_dir/build.suffix clean 252 - build.suffix脚本文件,该文件是一键式构建入口,仅调用该脚本即可完成构建。".suffix"表示对应的构建脚本语言后缀,譬如".bat",".sh",".py"等。 253 - config.suffix配置文件,该文件用于存放构建配置项,是唯一的配置文件入口。 256 - 上述文件和目录,只有CMakeLists.txt、build.suffix、config.suffix这三个文件是必需的,其它文件或者目录仅用作示例,不强制要求。 276 |---build.suffix | 277 |---config.suffix | 292 |---build.suffix | [all …]
|
/ohos5.0/drivers/peripheral/nfc/vendor_adaptor/ |
H A D | nfc_vendor_adaptions.cpp | 86 string suffix = DEFAULT_FUNC_NAME_SUFFIX; in GetNfcHalFuncNameSuffix() local 88 suffix = string(nfcExtInf.getNfcHalFuncNameSuffix(chipType.c_str())); in GetNfcHalFuncNameSuffix() 90 return suffix; in GetNfcHalFuncNameSuffix() 120 suffix = DEFAULT_FUNC_NAME_SUFFIX; in InitNfcHalInterfaces() 129 (dlsym(nfcHalHandle, (HAL_OPEN_FUNC_NAME + suffix).c_str())); in InitNfcHalInterfaces() 132 (dlsym(nfcHalHandle, (HAL_WRITE_FUNC_NAME + suffix).c_str())); in InitNfcHalInterfaces() 135 (dlsym(nfcHalHandle, (HAL_CORE_INIT_FUNC_NAME + suffix).c_str())); in InitNfcHalInterfaces() 138 (dlsym(nfcHalHandle, (HAL_PRE_DISC_FUNC_NAME + suffix).c_str())); in InitNfcHalInterfaces() 141 (dlsym(nfcHalHandle, (HAL_CLOSE_FUNC_NAME + suffix).c_str())); in InitNfcHalInterfaces() 150 (dlsym(nfcHalHandle, (HAL_IOCTL_FUNC_NAME + suffix).c_str())); in InitNfcHalInterfaces() [all …]
|
/ohos5.0/foundation/ability/ability_runtime/frameworks/native/runtime/ |
H A D | js_module_reader.cpp | 91 std::string suffix = std::string(SHARED_FILE_SUFFIX); in GetFormAppHspPath() local 99 realHapPath.length() < suffix.length() || in GetFormAppHspPath() 100 realHapPath.compare(realHapPath.length() - suffix.length(), suffix.length(), suffix) != 0) { in GetFormAppHspPath() 114 std::string suffix = std::string(SHARED_FILE_SUFFIX); in GetCommonAppHspPath() local 117 realHapPath = std::string(ABS_CODE_PATH) + inputPath + suffix; in GetCommonAppHspPath() 122 realHapPath.length() < suffix.length() || in GetCommonAppHspPath() 123 realHapPath.compare(realHapPath.length() - suffix.length(), suffix.length(), suffix) != 0) { in GetCommonAppHspPath()
|
/ohos5.0/foundation/multimedia/media_library/frameworks/services/media_cloud_enhancement/include/utils/ |
H A D | dynamic_loader.h | 38 inline bool EndsWith(const std::string& str, const std::string& suffix) in EndsWith() argument 40 if (str.length() >= suffix.length()) { in EndsWith() 41 return str.compare(str.length() - suffix.length(), suffix.length(), suffix) == 0; in EndsWith()
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/image/ |
H A D | image_file_cache.cpp | 103 const std::string& fileCacheKey, const std::string& suffix) in WriteFile() argument 105 std::string writeFilePath = ConstructCacheFilePath(fileCacheKey + suffix); in WriteFile() 153 auto filePath = GetCacheFilePathInner(url, suffix); in GetDataFromCacheFile() 169 auto cacheFileName = cacheKey + suffix; in SaveCacheInner() 185 suffix == ASTC_SUFFIX ? convertAstcThreshold : 1); in SaveCacheInner() 234 auto writeFilePath = ConstructCacheFilePath(fileCacheKey + suffix); in WriteCacheFile() 242 …if ((suffix.empty() || EndsWith(infoIter->fileName, suffix)) && IsFileExists(writeFilePath.c_str()… in WriteCacheFile() 251 if (!WriteFile(url, data, size, fileCacheKey, suffix)) { in WriteCacheFile() 259 SaveCacheInner(fileCacheKey, suffix, size, removeVector); in WriteCacheFile() 340 std::string ImageFileCache::GetCacheFilePathInner(const std::string& url, const std::string& suffix) in GetCacheFilePathInner() argument [all …]
|
/ohos5.0/foundation/filemanagement/file_api/interfaces/kits/cj/src/ |
H A D | list_file.cpp | 34 for (string suffix : suffixs) { in CheckSuffix() local 35 if (suffix.length() <= 1 || suffix.length() > MAX_SUFFIX_LENGTH) { in CheckSuffix() 38 if (suffix[0] != '.') { in CheckSuffix() 41 for (size_t i = 1; i < suffix.length(); i++) { in CheckSuffix() 42 if (!isalnum(suffix[i])) { in CheckSuffix() 64 if (cFilter.suffix.size != 0) { in GetFileFilterParam() 65 auto suffix = CArrStringToVector(cFilter.suffix); in GetFileFilterParam() local 66 if (!CheckSuffix(suffix) || suffix.size() == 0) { in GetFileFilterParam() 70 filter->SetSuffix(suffix); in GetFileFilterParam()
|
/ohos5.0/foundation/multimedia/camera_framework/common/utils/ |
H A D | camera_dynamic_loader.h | 42 inline bool EndsWith(const std::string& str, const std::string& suffix) in EndsWith() argument 44 if (str.length() >= suffix.length()) { in EndsWith() 45 return str.compare(str.length() - suffix.length(), suffix.length(), suffix) == 0; in EndsWith()
|
/ohos5.0/drivers/peripheral/pin_auth/test/unittest/pin_auth/database/src/ |
H A D | pin_db_ops_base_test.cpp | 114 const char *suffix = "we"; variable 117 ResultCode result = GenerateFileName(templateId, nullptr, suffix, fileName, fileNameLen); 123 result = GenerateFileName(templateId, prefix, suffix, nullptr, fileNameLen); 126 result = GenerateFileName(templateId, prefix, suffix, fileName, fileNameLen); 141 const char *suffix = "test"; variable 142 ResultCode result = ReadPinFile(nullptr, dataLen, 1, suffix); 148 result = ReadPinFile(data, dataLen, 1, suffix);
|
/ohos5.0/base/web/webview/ohos_interface/ohos_glue/scripts/ |
H A D | make_ctocpp_impl.py | 160 suffix = '' 162 suffix = str(new_list.count(func.get_capi_name())) 178 def ctocpp_get_static_funcion(cls, func, suffix, dir_name, retval_default): argument 179 func_name, func_type = make_file_base.get_func_pointer_name(cls, func, '', suffix) 203 def ctocpp_get_virtual_funcion(cls, func, suffix, dir_name, macro_retval_default): argument 215 var_name = make_file_base.get_func_variable_name(func, suffix) 216 func_name, func_type = make_file_base.get_func_pointer_name(cls, func, prefix, suffix) 249 def ctocpp_make_function_impl(cls, func, suffix, dir_name): argument 338 suffix = '' 340 suffix = str(new_list.count(func.get_capi_name())) [all …]
|
H A D | make_file_base.py | 196 def get_func_pointer_name(cls, func, prefix, suffix): argument 198 func_name = func.get_capi_name() + suffix 200 func_name = prefix + '_' + func.get_capi_name() + suffix 201 func_type = cls.get_name() + func.get_name() + 'Func' + suffix 208 def get_func_variable_name(func, suffix): argument 210 if len(suffix) == 0: 213 var_name = func.get_capi_name() + suffix 215 var_name = func.get_capi_name() + suffix
|
H A D | make_capi_header.py | 36 suffix = '' 39 suffix = str(new_list.count(func.get_capi_name())) 41 result += '\n' + indent + 'ARK_WEB_EXPORT ' + func.get_capi_proto(defined_names, suffix) + ';\n' 57 suffix = '' 60 suffix = str(new_list.count(func.get_capi_name())) 62 suffix = '0' 65 result += indent+parts['retval']+' (ARK_WEB_CALLBACK *'+parts['name'] + suffix + \
|
/ohos5.0/drivers/hdf_core/framework/tools/hdi-gen/util/ |
H A D | string_helper.cpp | 57 bool StringHelper::EndWith(const std::string &value, char suffix) in EndWith() argument 62 return value.back() == suffix; in EndWith() 65 bool StringHelper::EndWith(const std::string &value, const std::string &suffix) in EndWith() argument 67 size_t index = value.rfind(suffix); in EndWith() 72 return index + suffix.size() == value.size(); in EndWith() 110 std::string suffix = value.substr(position); in Replace() local 111 return prefix + Replace(suffix, substr, newstr); in Replace() 121 std::string suffix = value.substr(position); in Replace() local 122 return prefix + newStr + suffix; in Replace()
|
/ohos5.0/foundation/ability/idl_tool/idl_tool_2/util/ |
H A D | string_helper.cpp | 64 bool StringHelper::EndWith(const std::string &value, char suffix) in EndWith() argument 69 return value.back() == suffix; in EndWith() 72 bool StringHelper::EndWith(const std::string &value, const std::string &suffix) in EndWith() argument 74 size_t index = value.rfind(suffix); in EndWith() 79 return index + suffix.size() == value.size(); in EndWith() 117 std::string suffix = value.substr(position); in Replace() local 118 return prefix + Replace(suffix, substr, newstr); in Replace() 128 std::string suffix = value.substr(position); in Replace() local 129 return prefix + newStr + suffix; in Replace()
|
/ohos5.0/docs/zh-cn/application-dev/tools/ |
H A D | app-check-tool.md | 129 java -jar app_check_tool.jar --input ./test.app --out-path ./test --stat-suffix true 138 | --stat-suffix | 否 | 是否统计各类型文件大小及占比。默认为false。<br>true:启用。<br>false:不启用。| 145 "taskDesc":"show files group by file type[.suffix]", 146 "param":"--stat-suffix", 154 "suffix":"so", 163 "suffix":"abc", 195 | suffix | String | 同类型文件后缀名。 |
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/theme/ |
H A D | shadow_theme.h | 75 const std::string suffix = isDark ? "_dark" : ""; in ParseShadowParam() local 79 auto elevationName = prefix + std::string(attrs[0]) + suffix; in ParseShadowParam() 82 auto offsetXName = prefix + std::string(attrs[1]) + suffix; in ParseShadowParam() 84 auto offsetYName = prefix + std::string(attrs[2]) + suffix; in ParseShadowParam() 88 auto colorName = prefix + std::string(attrs[3]) + suffix; in ParseShadowParam() 90 auto radiusName = prefix + std::string(attrs[4]) + suffix; in ParseShadowParam()
|
/ohos5.0/foundation/multimedia/camera_framework/frameworks/native/camera/test/ndktest/camera_ndk_demo/entry/src/main/ets/model/ |
H A D | MediaUtils.ts | 39 let displayName = `${info.prefix}${name}${info.suffix}` 47 displayName = `${info.prefix}${name}_${this.num}${info.suffix}` 181 prefix: '', suffix: '', directory: 0 186 result.suffix = '.txt' 192 result.suffix = `.${this.onChangePhotoFormat()}` 197 result.suffix = '.mp4' 202 result.suffix = '.wav'
|
/ohos5.0/base/security/asset/test/unittest/inner_kits_rust/src/ |
H A D | query.rs | 187 for item in suffix.iter().take(asset_num) { in query_with_order() 209 alias_new.extend_from_slice(suffix[i]); in query_with_order() 226 suffix.sort_by(|a, b| b.cmp(a)); in query_with_order_with_english() 227 query_with_order(order, &suffix); in query_with_order_with_english() 234 suffix.sort_by(|a, b| b.cmp(a)); in query_with_order_with_chinese() 235 query_with_order(order, &suffix); in query_with_order_with_chinese() 242 suffix.sort_by(|a, b| b.cmp(a)); in query_with_order_with_number() 243 query_with_order(order, &suffix); in query_with_order_with_number() 251 let mut suffix: Vec<&[u8]> = suffix.iter().map(|s| s as &[u8]).collect(); in query_with_order_with_unreadible() localVariable 252 suffix.sort_by(|a, b| b.cmp(a)); in query_with_order_with_unreadible() [all …]
|
/ohos5.0/build/test/example/ |
H A D | mylogger.py | 30 def __init__(self, filename, mode="a", encoding="utf-8", delay=0, suffix="%Y-%m-%d_%H"): argument 33 current_time = time.strftime(suffix, time.localtime()) 40 self.suffix = suffix 55 if self.suftime != time.strftime(self.suffix, time_tuple) or not os.path.exists( 73 self.suftime = time.strftime(self.suffix, cur_time)
|