Home
last modified time | relevance | path

Searched refs:pos (Results 1 – 25 of 101) sorted by relevance

12345

/base/miscservices/request/download/ability/src/
Dsql_analyzer.cpp54 bool SqlAnalyzer::CharCheck(char &ch, std::string sql, std::size_t &pos) in CharCheck() argument
57 pos++; in CharCheck()
58 std::size_t found = sql.find(']', pos); in CharCheck()
62 pos++; in CharCheck()
64 if (ch == '-' && PickChar(sql, pos + 1) == '-') { in CharCheck()
65 pos += POS_ADD_TWO; in CharCheck()
66 std::size_t found = sql.find('\n', pos); in CharCheck()
70 pos++; in CharCheck()
72 if (ch == '/' && PickChar(sql, pos + 1) == '*') { in CharCheck()
73 pos += POS_ADD_TWO; in CharCheck()
[all …]
/base/compileruntime/js_api_module/uri/
Djs_uri.cpp85 size_t pos = data_.find('#'); // Fragment in AnalysisUri() local
86 if (pos != std::string::npos) { in AnalysisUri()
87 AnalysisFragment(pos); in AnalysisUri()
92 pos = data_.find('?'); // Query in AnalysisUri()
93 if (pos != std::string::npos) { in AnalysisUri()
94 AnalysisQuery(pos); in AnalysisUri()
99 pos = data_.find(':'); // Scheme in AnalysisUri()
100 if (pos != std::string::npos) { in AnalysisUri()
101 AnalysisScheme(pos); in AnalysisUri()
113 pos = data_.find("//"); // userInfo path host port ipv4 or ipv6 in AnalysisUri()
[all …]
Djs_uri.h131 void AnalysisFragment(size_t pos);
132 void AnalysisQuery(size_t pos);
133 void AnalysisScheme(size_t pos);
135 void AnalysisPath(size_t pos);
136 void AnalysisUserInfo(size_t pos);
140 bool AnalysisPort(size_t pos);
/base/hiviewdfx/hiview/base/utility/
Dstring_util.cpp50 string::size_type pos = 0; in ReplaceStr() local
52 while ((pos = strTmp.find(src, pos)) != string::npos) { in ReplaceStr()
53 strTmp.replace(pos, src.length(), dst); in ReplaceStr()
54 pos += dst.length(); in ReplaceStr()
75 string::size_type pos = strTmp.find(sep); in SplitStr() local
76 if (string::npos == pos || sep.empty()) { in SplitStr()
83 strPart = needTrim ? TrimStr(strTmp.substr(0, pos)) : strTmp.substr(0, pos); in SplitStr()
87 strTmp = strTmp.substr(sep.size() + pos, strTmp.size() - sep.size() - pos); in SplitStr()
209 size_t pos = input.find(split, 0); in GetLeftSubstr() local
210 if (pos == string::npos) { in GetLeftSubstr()
[all …]
/base/security/access_token/interfaces/innerkits/nativetoken/test/unittest/src/
Dnativetoken_kit_test.cpp230 char *pos = strstr(fileBuff, s.c_str()); variable
231 ASSERT_NE(pos, nullptr);
255 char *pos = strstr(fileBuff, processName[i]); variable
256 ASSERT_NE(pos, nullptr);
289 char *pos = strstr(fileBuff, "process1"); variable
290 ASSERT_NE(pos, nullptr);
291 pos = strstr(fileBuff, "process2");
292 ASSERT_NE(pos, nullptr);
293 pos = strstr(fileBuff, "process3");
294 ASSERT_NE(pos, nullptr);
[all …]
/base/account/os_account/frameworks/common/log/src/
Daccount_log_wrapper.cpp30 auto pos = file.find_last_of("/"); in GetBriefFileName() local
31 if (pos != std::string::npos) { in GetBriefFileName()
32 return file.substr(pos + 1); in GetBriefFileName()
35 pos = file.find_last_of("\\"); in GetBriefFileName()
36 if (pos != std::string::npos) { in GetBriefFileName()
37 return file.substr(pos + 1); in GetBriefFileName()
/base/telephony/data_storage/common/src/
Ddata_storage_log_wrapper.cpp34 auto pos = file.find_last_of("/"); in GetBriefFileName() local
35 if (pos != std::string::npos) { in GetBriefFileName()
36 return file.substr(pos + 1); in GetBriefFileName()
39 pos = file.find_last_of("\\"); in GetBriefFileName()
40 if (pos != std::string::npos) { in GetBriefFileName()
41 return file.substr(pos + 1); in GetBriefFileName()
/base/hiviewdfx/hilog/interfaces/js/kits/napi/src/hilog/src/
Dhilog_napi_base.cpp50 uint32_t pos = 0; in ParseLogContent() local
55 for (; pos < len; ++pos) { in ParseLogContent()
60 if (formatStr[pos] == '%') { in ParseLogContent()
61 if (formatStr[pos + 1] == '{') { in ParseLogContent()
62 if (formatStr.substr(pos + PROPERTY_POS, PUBLIC_LEN) == "public") { in ParseLogContent()
63 pos += (PUBLIC_LEN + PROPERTY_POS); in ParseLogContent()
65 if (formatStr.substr(pos + PROPERTY_POS, PRIVATE_LEN) == "private") { in ParseLogContent()
66 pos += (PRIVATE_LEN + PROPERTY_POS); in ParseLogContent()
72 if (pos + 1 >= len) { in ParseLogContent()
76 switch (formatStr[pos + 1]) { in ParseLogContent()
[all …]
/base/hiviewdfx/hicollie/frameworks/native/
Dtimer_ring.cpp53 taskNode->pos = 0; in InitTaskNode()
94 node->pos = CALC_RING_POS(node->timerTask.timeout); in TryRecycle()
96 ringTaskNodes_[node->pos].push_back(node); in TryRecycle()
113 node->pos = -1; in DoTimeoutTask()
187 taskNode->pos = CALC_RING_POS(timeout); in AddTask()
189 taskNode->pos = CALC_RING_POS(timeout - TIMER_RING_CHECK_INTERVAL); in AddTask()
193 ringPos_, taskNode->pos, taskNode->round, timeout, in AddTask()
195 ringTaskNodes_[taskNode->pos].push_back(taskNode); in AddTask()
220 if ((taskNode->id != id) || (taskNode->pos == -1)) { in CancelTask()
225 taskNode->pos, taskNode->id, taskNode->timerTask.name.c_str()); in CancelTask()
[all …]
/base/compileruntime/js_api_module/url/
Djs_url.cpp48 size_t pos = 0; in ReplaceSpecialSymbols() local
49 if ((pos = input.find(oldstr)) != std::string::npos) { in ReplaceSpecialSymbols()
50 input.replace(pos, oldlen, newstr); in ReplaceSpecialSymbols()
200 int pos = static_cast<int>(input.size()) - 1; in AnalysisUsernameAndPasswd() local
201 for (; pos >= 0; pos--) { in AnalysisUsernameAndPasswd()
202 if (input[pos] == '@') { in AnalysisUsernameAndPasswd()
206 std::string userAndPasswd = input.substr(0, pos); in AnalysisUsernameAndPasswd()
207 input = input.substr(pos + 1); in AnalysisUsernameAndPasswd()
213 size_t pos = 0; in AnalysisUsernameAndPasswd() local
214 if ((pos = userAndPasswd.find('@')) != std::string::npos) { in AnalysisUsernameAndPasswd()
[all …]
/base/usb/usb_manager/services/native/src/
Dusb_function_manager.cpp59 size_t pos = 0; in FromStringFunctions() local
60 while (pos < len) { in FromStringFunctions()
61 int32_t find_pos = strFun.find(",", pos); in FromStringFunctions()
63 vModeStr.push_back(strFun.substr(pos, len - pos)); in FromStringFunctions()
66 vModeStr.push_back(strFun.substr(pos, find_pos - pos)); in FromStringFunctions()
67 pos = find_pos + 1; in FromStringFunctions()
/base/powermgr/thermal_manager/utils/native/src/
Dstring_operation.cpp32 std::string::size_type pos = 0; in SplitString() local
34 pos = str.find(sep, begin); in SplitString()
35 if (pos != std::string::npos) { in SplitString()
36 temp = str.substr(begin, pos - begin); in SplitString()
37 begin = pos + sep.length(); in SplitString()
40 begin = pos; in SplitString()
/base/account/os_account/services/accountmgr/test/unittest/account_dump_helper_test/
Daccount_dump_helper_test.cpp75 auto pos = out.find("Ohos account name: ", 0); variable
77 pos = out.find("Ohos account openId: ", 0);
79 pos = out.find("Local user Id: ", 0);
81 pos = out.find("Ohos account status: ", 0);
83 pos = out.find("Ohos account bind time: ", 0);
109 auto pos = out.find(prompt, 0); variable
111 logLevel = out.substr(pos + prompt.length());
/base/update/updater/services/applypatch/
Dblock_set.cpp129 size_t pos = 0; in ReadDataFromBlock() local
136 … UPDATER_ERROR_CHECK(utils::ReadFully(fd, buffer.data() + pos, size), "Fail to read", return -1); in ReadDataFromBlock()
137 pos += size; in ReadDataFromBlock()
139 return pos; in ReadDataFromBlock()
144 size_t pos = 0; in WriteDataToBlock() local
157 if (utils::WriteFully(fd, buffer.data() + pos, writeSize) == false) { in WriteDataToBlock()
161 pos += writeSize; in WriteDataToBlock()
164 return pos; in WriteDataToBlock()
215 int32_t BlockSet::LoadSourceBuffer(const Command &cmd, size_t &pos, std::vector<uint8_t> &sourceBuf… in LoadSourceBuffer() argument
218 std::string blockLen = cmd.GetArgumentByPos(pos++); in LoadSourceBuffer()
[all …]
Dcommand_process.cpp104 size_t pos = H_DIFF_CMD_ARGS_START; in Execute() local
107 pos = H_MOVE_CMD_ARGS_START; in Execute()
112 std::string cmdTmp = params.GetArgumentByPos(pos++); in Execute()
116 tgtHash = params.GetArgumentByPos(pos++); in Execute()
121 cmdTmp = params.GetArgumentByPos(pos++); in Execute()
130 auto ret = targetBlock.LoadTargetBuffer(params, buffer, tgtBlockSize, pos, srcHash); in Execute()
164 size_t pos = 1; in Execute() local
165 const std::string shaStr = params.GetArgumentByPos(pos++); in Execute()
168 srcBlk.ParserAndInsert(params.GetArgumentByPos(pos++)); in Execute()
/base/miscservices/request/download/interfaces/kits/js/napi/download_single/src/
Dasync_call.cpp22 …ll(napi_env env, napi_callback_info info, std::shared_ptr<Context> context, size_t pos) : env_(env) in AsyncCall() argument
29 NAPI_ASSERT_BASE(env, pos <= argc, " Invalid Args!", NAPI_RETVAL_NOTHING); in AsyncCall()
30 pos = ((pos == ASYNC_DEFAULT_POS) ? (argc - 1) : pos); in AsyncCall()
31 if (pos >= 0 && pos < argc) { in AsyncCall()
33 napi_typeof(env, argv[pos], &valueType); in AsyncCall()
35 napi_create_reference(env, argv[pos], 1, &context_->callback); in AsyncCall()
36 argc = pos; in AsyncCall()
/base/security/selinux/interfaces/policycoreutils/src/
Dcontexts_trie.cpp23 size_t pos; in StringSplit() local
25 while ((pos = paraName.find(split)) != std::string::npos) { in StringSplit()
26 std::string element = paraName.substr(0, pos); in StringSplit()
30 paraName.erase(0, pos + split.length()); in StringSplit()
40 size_t pos; in GetFirstElement() local
41 if ((pos = paraName.find(split)) != std::string::npos) { in GetFirstElement()
42 std::string element = paraName.substr(0, pos); in GetFirstElement()
43 paraName.erase(0, pos + split.length()); in GetFirstElement()
/base/miscservices/screenlock/interfaces/kits/napi/src/
Dasync_call.cpp22 …ll(napi_env env, napi_callback_info info, std::shared_ptr<Context> context, size_t pos) : env_(env) in AsyncCall() argument
34 NAPI_ASSERT_BASE(env, pos <= argc, " Invalid Args!", NAPI_RETVAL_NOTHING); in AsyncCall()
35 pos = ((pos == ASYNC_DEFAULT_POS) ? (argc - 1) : pos); in AsyncCall()
36 if (pos >= 0 && pos < argc) { in AsyncCall()
38 napi_typeof(env, argv[pos], &valueType); in AsyncCall()
40 napi_create_reference(env, argv[pos], 1, &context_->callback); in AsyncCall()
41 argc = pos; in AsyncCall()
/base/miscservices/request/download/ability/include/
Dsql_analyzer.h33 bool StrCheck(char &ch, std::size_t strlen, std::string sql, std::size_t &pos);
34 bool CharCheck(char &ch, std::string sql, std::size_t &pos);
58 std::size_t pos = str.find(ch); in IsInStr() local
59 if (pos == std::string::npos) { in IsInStr()
/base/hiviewdfx/hidumper/frameworks/native/src/util/
Dfile_utils.cpp33 size_t pos = path.rfind("/"); in CreateFolder() local
34 if (pos == string::npos) { in CreateFolder()
38 string upperPath = path.substr(0, pos); in CreateFolder()
/base/miscservices/wallpaper/interfaces/kits/napi/
Dasync_call.cpp21 …all::AsyncCall(napi_env env, napi_callback_info info, std::shared_ptr<Context> context, size_t pos) in AsyncCall() argument
29 NAPI_ASSERT_BASE(env, pos <= argc, " Invalid Args!", NAPI_RETVAL_NOTHING); in AsyncCall()
30 pos = ((pos == ASYNC_DEFAULT_POS) ? (argc - 1) : pos); in AsyncCall()
31 if (pos >= 0 && pos < argc) { in AsyncCall()
33 napi_typeof(env, argv[pos], &valueType); in AsyncCall()
35 napi_create_reference(env, argv[pos], 1, &context_->callback); in AsyncCall()
36 argc = pos; in AsyncCall()
/base/notification/ces_standard/frameworks/common/log/src/
Devent_log_wrapper.cpp38 size_t pos = fullPath.find_last_of("/"); in GetBriefFileName() local
39 if (pos == std::string::npos) { in GetBriefFileName()
42 return fullPath.substr(pos + 1); in GetBriefFileName()
/base/notification/ans_standard/frameworks/ans/core/common/src/
Dans_log_wrapper.cpp36 size_t pos = fullPath.find_last_of("/"); in GetBriefFileName() local
37 if (pos == std::string::npos) { in GetBriefFileName()
40 return fullPath.substr(pos + 1); in GetBriefFileName()
/base/security/deviceauth/frameworks/deviceauth_lite/source/key_agreement/
Dsts_client.c157 int32_t pos = 0; in generate_sign_message() local
158 …(void)memcpy_s(info + pos, len - pos, sts_client->peer_public_key.stpk, sts_client->peer_public_ke… in generate_sign_message()
159 pos += sts_client->peer_public_key.length; in generate_sign_message()
160 (void)memcpy_s(info + pos, len - pos, sts_client->peer_id.auth_id, sts_client->peer_id.length); in generate_sign_message()
161 pos += sts_client->peer_id.length; in generate_sign_message()
162 …(void)memcpy_s(info + pos, len - pos, sts_client->self_public_key.stpk, sts_client->self_public_ke… in generate_sign_message()
163 pos += sts_client->self_public_key.length; in generate_sign_message()
164 (void)memcpy_s(info + pos, len - pos, sts_client->self_id.auth_id, sts_client->self_id.length); in generate_sign_message()
224 int32_t pos = 0; in generate_sts_request_sign() local
225 …(void)memcpy_s(info + pos, len - pos, sts_client->self_public_key.stpk, sts_client->self_public_ke… in generate_sts_request_sign()
[all …]
/base/hiviewdfx/hiview/base/
Ddefault_logger.cpp24 std::string::size_type pos = 0; in StringReplace() local
25 while ((pos = sourceStr.find(subStr)) != std::string::npos) { in StringReplace()
26 sourceStr.replace(pos, subStr.length(), newStr); in StringReplace()

12345