/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/request/request/download/ability/src/ |
D | uri_utils.cpp | 36 std::vector<std::string> tempVector = split(query, "&"); in getQueryParameter() 39 std::vector<std::string> childTempVector = split(tempVector[i], "="); in getQueryParameter() 52 std::vector<std::string> UriUtils::split(const std::string &str, const std::string &split) in split() function in OHOS::Request::Download::UriUtils 55 char *token = strtok_r(const_cast<char *>(str.c_str()), split.c_str(), &saveChar); in split() 59 token = strtok_r(nullptr, split.c_str(), &saveChar); in split()
|
/base/request/request/download/ability/include/ |
D | uri_utils.h | 30 std::vector<std::string> split(const std::string &str, const std::string &split);
|
/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/ |
D | sms_base_message.cpp | 347 void SmsBaseMessage::ConvertSpiltToUtf8(SplitInfo &split, const SmsCodingScheme &codingType) in ConvertSpiltToUtf8() argument 350 if (textCvt == nullptr || split.encodeData.size() <= 0) { in ConvertSpiltToUtf8() 365 … buff, MAX_MSG_TEXT_LEN, split.encodeData.data(), split.encodeData.size(), &langInfo); in ConvertSpiltToUtf8() 370 …textCvt->ConvertUCS2ToUTF8(buff, MAX_MSG_TEXT_LEN, split.encodeData.data(), split.encodeData.size(… in ConvertSpiltToUtf8() 374 if (split.encodeData.size() > sizeof(buff)) { in ConvertSpiltToUtf8() 378 … if (memcpy_s(buff, sizeof(buff), split.encodeData.data(), split.encodeData.size()) != EOK) { in ConvertSpiltToUtf8() 382 dataSize = static_cast<int>(split.encodeData.size()); in ConvertSpiltToUtf8() 388 split.text.insert(0, reinterpret_cast<char *>(buff), dataSize); in ConvertSpiltToUtf8()
|
/base/global/i18n_lite/tools/i18n-dat-tool/src/main/java/ohos/global/i18n/ |
D | Utils.java | 61 String[] split = languageTag.split("-"); in getFallback() local 62 if ("en-US".equals(languageTag) || split.length == 1) { in getFallback() 65 if (split.length != 2) { in getFallback() 66 return split[0] + "-" + split[1]; in getFallback() 68 if ((split[1].length() != 4) && (!"en".equals(split[0]))) { in getFallback() 69 return split[0]; in getFallback() 84 String[] items = languageTag.split("-"); in isValidLanguageTag()
|
D | PluralFetcher.java | 111 String[] splits = trimedLine.split(" ", 2); // Split into 2 parts in getPluralItems() 120 String[] tags = languageTag.split("-"); in getPluralItems() 123 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 | 204 String[] locale1Parts = locale1.split("-"); in localeCompare() 218 String[] locale2Parts = locale2.split("-"); in localeCompare() 276 String[] values = data.split("_", -1); in writeData() 295 String[] units = values[1].split("\\|"); in getMeasureDataUnit() 324 String[] values = data.split("_", -1); in writeMeasureData()
|
/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/inputmethod/imf/services/dialog/entry/src/main/ets/pages/ |
D | index.ets | 62 Text(item.split('.').length > 2 ? item.split('.')[2] : item.split('.')[-1])
|
/base/customization/enterprise_device_management/tools/edm/src/ |
D | edm_command.cpp | 120 std::vector<std::string> elementNameStr = split(argv_[ARR_INDEX_TWO], "/"); in RunAsEnableCommand() 136 std::vector<std::string> EdmCommand::split(const std::string &str, const std::string &pattern) in split() function in OHOS::EDM::EdmCommand 164 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/ota_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]
|
/base/security/selinux/interfaces/policycoreutils/src/ |
D | contexts_trie.c | 307 char split[] = " \t"; in LoadParameterContextsToSharedMem() local 308 char *paramName = strtok_r(buffer, split, &rest); in LoadParameterContextsToSharedMem() 312 char *context = strtok_r(NULL, split, &rest); in LoadParameterContextsToSharedMem()
|
/base/update/packaging_tools/ |
D | blocks_manager.py | 57 for split_content in text.split(): 60 (int(n) for n in split_content.split("-"))
|
D | build_update.py | 459 target_num = ''.join(target_ver.split(' ')[-1].replace('.', '')) 460 source_num = ''.join(source_ver.split(' ')[-1].replace('.', '')) 708 line.strip().replace("new ", "").split(",")[1:] 716 diff_list = diff_str.split('\n')[0].split(' ')
|
/base/notification/eventhandler/interfaces/inner_api/ |
D | event_handler.h | 51 size_t split = file_.find_last_of("/\\"); in ToString() local 52 if (split == std::string::npos) { in ToString() 53 split = 0; in ToString() 55 …std::string caller("[" + file_.substr(split + 1) + "(" + func_ + ":" + std::to_string(line_) + ")]… in ToString()
|