/base/usb/usb_manager/test/native/js_unittest/ |
D | DateAndTimeUtil.js | 85 const h = str.substr(2).split(':')[0]; 87 const time = '0' + ':' + str.substr(2).split(':')[1]; 90 return h + ':' + str.substr(2).split(':')[1]; 93 const h = str.substr(2).split(':')[0]; 96 const time = h1 + ':' + str.substr(2).split(':')[1]; 109 const minutes = str.split(':')[1];
|
/base/hiviewdfx/hiview/base/utility/ |
D | string_util.cpp | 31 std::string ConvertVectorToStr(const std::vector<std::string> &listStr, const std::string &split) in ConvertVectorToStr() argument 38 str += split + item; in ConvertVectorToStr() 207 string GetLeftSubstr(const string& input, const string& split) in GetLeftSubstr() argument 209 size_t pos = input.find(split, 0); in GetLeftSubstr() 216 string GetRightSubstr(const string& input, const string& split) in GetRightSubstr() argument 218 size_t pos = input.find(split, 0); in GetRightSubstr() 222 return input.substr(pos + split.size(), input.size() - pos); in GetRightSubstr() 225 string GetRleftSubstr(const string& input, const string& split) in GetRleftSubstr() argument 227 size_t pos = input.rfind(split, string::npos); in GetRleftSubstr() 234 string GetRrightSubstr(const string& input, const string& split) in GetRrightSubstr() argument [all …]
|
/base/hiviewdfx/hiview/base/utility/include/ |
D | string_util.h | 97 std::string ConvertVectorToStr(const std::vector<std::string> &listStr, const std::string &split); 127 std::string GetLeftSubstr(const std::string& input, const std::string& split); 131 std::string GetRightSubstr(const std::string& input, const std::string& split); 135 std::string GetRleftSubstr(const std::string& input, const std::string& split); 139 std::string GetRrightSubstr(const std::string& input, const std::string& split);
|
/base/telephony/sms_mms/services/sms/ |
D | sms_base_message.cpp | 353 void SmsBaseMessage::ConvertSpiltToUtf8(SplitInfo &split, const DataCodingScheme &codingType) in ConvertSpiltToUtf8() argument 355 if (split.encodeData.size() <= 0) { in ConvertSpiltToUtf8() 370 buff, MAX_MSG_TEXT_LEN, split.encodeData.data(), split.encodeData.size(), langInfo); in ConvertSpiltToUtf8() 375 buff, MAX_MSG_TEXT_LEN, split.encodeData.data(), split.encodeData.size()); in ConvertSpiltToUtf8() 379 if (split.encodeData.size() > sizeof(buff)) { in ConvertSpiltToUtf8() 383 … if (memcpy_s(buff, sizeof(buff), split.encodeData.data(), split.encodeData.size()) != EOK) { in ConvertSpiltToUtf8() 387 dataSize = static_cast<int>(split.encodeData.size()); in ConvertSpiltToUtf8() 393 split.text.insert(0, reinterpret_cast<char *>(buff), dataSize); in ConvertSpiltToUtf8()
|
/base/security/huks/services/huks_standard/huks_service/main/systemapi_wrap/hisysevent_wrapper/src/ |
D | hks_report_wrapper.c | 81 char split = ':'; in AppendToExtra() local 85 if (memcpy_s(extraOut + *index, EXTRA_DATA_SIZE - *index, &split, sizeof(char)) != EOK) { in AppendToExtra() 97 split = ';'; in AppendToExtra() 101 if (memcpy_s(extraOut + *index, EXTRA_DATA_SIZE - *index, &split, sizeof(char)) != EOK) { in AppendToExtra()
|
/base/global/i18n_lite/tools/i18n-dat-tool/src/main/java/ohos/global/i18n/ |
D | Utils.java | 63 String[] split = languageTag.split("-"); in getFallback() local 64 if ("en-US".equals(languageTag) || split.length == 1) { in getFallback() 67 if (split.length != 2) { in getFallback() 68 return split[0] + "-" + split[1]; in getFallback() 70 if ((split[1].length() != 4) && (!"en".equals(split[0]))) { in getFallback() 71 return split[0]; in getFallback() 86 String[] items = languageTag.split("-"); in isValidLanguageTag()
|
D | PluralFetcher.java | 114 String[] splits = trimedLine.split(" ", 2); // Split into 2 parts in getPluralItems() 124 String[] tags = languageTag.split("-"); in getPluralItems() 127 String[] resources = splits[1].split(", "); in getPluralItems()
|
D | MeasureFormatPatternFetcher.java | 91 String[] localeAndPatterns = trimedLine.split(" ", 2); // Split into 2 parts in getPatterns() 97 String[] patterns = localeAndPatterns[1].split(", "); in getPatterns()
|
D | DataFetcher.java | 215 String[] locale1Parts = locale1.split("-"); in localeCompare() 229 String[] locale2Parts = locale2.split("-"); in localeCompare() 287 String[] values = data.split("_", -1); in writeData() 306 String[] units = values[1].split("\\|"); in getMeasureDataUnit() 335 String[] values = data.split("_", -1); in writeMeasureData()
|
/base/startup/init/services/modules/seccomp/scripts/tools/ |
D | collect_elf_syscall.py | 44 elf_file_name = elf_path.split('/')[-1].split('.')[0] + suffix 49 process = subprocess.Popen(cmd.split(' '), stdout=output_file) 72 result_list = os.popen(cmd).read().split('\n') 85 for item in result.split('\n'): 98 for item in result.split('\n'): 274 file_name_tmp = file_name.split('/')[-1]
|
D | strace_log_analysis.py | 33 func_name = func_name.split(' ')[-1].strip() 65 file_name_tmp = file_name.split('/')[-1]
|
/base/request/request/services/service/rust/src/ |
D | utils.rs | 53 for item in str.split("\r\n") { in string_to_hashmap() 62 str.trim_matches(pat).split(", ") in split_string()
|
/base/inputmethod/imf/services/dialog/entry/src/main/ets/pages/ |
D | index.ets | 58 Text(item.split('.').length > 2 ? item.split('.')[2] : item.split('.')[-1])
|
/base/update/updater/services/rust/hash_signed_data/src/ |
D | hsd.rs | 36 let res: Vec<&str> = value.split('\n').filter(|&s| !s.is_empty()).collect(); in try_from() 51 let all_hash_data: Vec<&str> = value.split("\n\n").filter(|&s| !s.is_empty()).collect(); in try_from()
|
/base/update/updateservice/services/core/ability/utils/include/ |
D | string_utils.h | 84 size_t split = enumItem.find(enumSplit); in GetEnumValueString() local 85 if (split == std::string::npos) { in GetEnumValueString() 88 return enumItem.substr(split + enumSplit.length(), enumItem.length()); in GetEnumValueString()
|
/base/customization/enterprise_device_management/tools/edm/src/ |
D | edm_command.cpp | 118 std::vector<std::string> elementNameStr = split(argv_[ARR_INDEX_TWO], "/"); in RunAsEnableCommand() 134 std::vector<std::string> EdmCommand::split(const std::string &str, const std::string &pattern) in split() function in OHOS::EDM::EdmCommand 162 std::vector<std::string> elementNameStr = split(argv_[ARR_INDEX_TWO], "/"); in RunDisableNormalAdminCommand()
|
/base/global/i18n_lite/frameworks/i18n/src/ |
D | number_format_impl.cpp | 72 std::string split[NUM_PATTERN_SIZE]; in Init() local 73 Split(unprocessedNumberFormat, split, NUM_PATTERN_SIZE, NUM_PATTERN_SEP); in Init() 74 std::string decSign = split[NUM_DEC_SIGN_INDEX]; in Init() 75 std::string groupSign = split[NUM_GROUP_SIGN_INDEX]; in Init() 76 std::string perSign = split[NUM_PERCENT_SIGN_INDEX]; in Init() 87 std::string origin = split[NUM_PERCENT_PAT_INDEX]; in Init() 88 const char *pat = split[NUM_PAT_INDEX].c_str(); in Init()
|
/base/hiviewdfx/hidumper/frameworks/native/src/util/ |
D | string_utils.cpp | 31 void StringUtils::StringSplit(const string &content, const string &split, vector<string> &result) in StringSplit() argument 33 SplitStr(content, split, result, false, false); in StringSplit()
|
/base/hiviewdfx/hidumper/frameworks/native/ |
D | dump_utils.cpp | 107 std::string split = "/"; in FdToWrite() local 108 auto pos = file.find_last_of(split); in FdToWrite() 118 std::string fileName = path + split + name; in FdToWrite()
|
/base/customization/enterprise_device_management/tools/edm/include/ |
D | edm_command.h | 51 std::vector<std::string> split(const std::string &str, const std::string &pattern);
|
/base/hiviewdfx/hidumper/frameworks/native/include/util/ |
D | string_utils.h | 29 …void StringSplit(const std::string &str, const std::string &split, std::vector<std::string> &resul…
|
/base/update/update_app/common/src/main/ets/util/ |
D | FormatUtils.ts | 61 let segments = message.split(PLACE_HOLDER);
|
/base/update/sys_installer_lite/frameworks/source/updater/ |
D | hota_updater.c | 171 char split[] = ".| "; in IsLatestVersion() local 179 currentVerSplit = strtok_s(currentVerCopy, split, ¤tVerTemp); in IsLatestVersion() 180 pkgVerSplit = strtok_s(pkgVerCopy, split, &pkgVerTemp); in IsLatestVersion() 195 currentVerSplit = strtok_s(NULL, split, ¤tVerTemp); in IsLatestVersion() 196 pkgVerSplit = strtok_s(NULL, split, &pkgVerTemp); in IsLatestVersion()
|
/base/startup/init/scripts/ |
D | param_cfg_to_code.py | 29 strs = data.split('=') 56 strs = data.split(',')
|
/base/hiviewdfx/hiview/build/ |
D | run_oem_hook.py | 41 hiview_build_path = os.path.split(os.path.realpath(__file__))[0]
|