Home
last modified time | relevance | path

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

1234567

/base/request/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/account/os_account/services/accountmgr/test/unittest/account_mgr_service_test/
Daccount_dump_helper_test.cpp111 auto pos = out.find("Account Manager service, enter '-h' for usage", 0); variable
112 EXPECT_NE(std::string::npos, pos);
144 auto pos = out.find("OhosAccount name", 0); variable
145 EXPECT_NE(std::string::npos, pos);
146 pos = out.find("OhosAccount uid", 0);
147 EXPECT_NE(std::string::npos, pos);
148 pos = out.find("OhosAccount status", 0);
149 EXPECT_NE(std::string::npos, pos);
150 pos = out.find("OhosAccount bind time", 0);
151 EXPECT_NE(std::string::npos, pos);
[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.cpp36 auto pos = file.find_last_of("/"); in GetBriefFileName() local
37 if (pos != std::string::npos) { in GetBriefFileName()
38 return file.substr(pos + 1); in GetBriefFileName()
41 pos = file.find_last_of("\\"); in GetBriefFileName()
42 if (pos != std::string::npos) { in GetBriefFileName()
43 return file.substr(pos + 1); in GetBriefFileName()
/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/hiviewdfx/hilog/interfaces/js/kits/napi/src/hilog/src/
Dhilog_napi_base.cpp52 uint32_t pos = 0; in ParseLogContent() local
59 for (; pos < len; ++pos) { in ParseLogContent()
64 if (formatStr[pos] != '%') { in ParseLogContent()
65 ret += formatStr[pos]; in ParseLogContent()
69 if (((pos + PUBLIC_LEN + PROPERTY_POS) < len) && in ParseLogContent()
70 formatStr.substr(pos + PROPERTY_POS, PUBLIC_LEN) == "public") { in ParseLogContent()
71 pos += (PUBLIC_LEN + PROPERTY_POS); in ParseLogContent()
73 } else if (((pos + PRIVATE_LEN + PROPERTY_POS) < len) && in ParseLogContent()
74 formatStr.substr(pos + PROPERTY_POS, PRIVATE_LEN) == "private") { in ParseLogContent()
75 pos += (PRIVATE_LEN + PROPERTY_POS); 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/update/updater/services/flashd/daemon/
Dflashd_utils.cpp39 auto pos = path.find_first_of('/', 1); in GetPathRoot() local
40 return path.substr(0, pos); in GetPathRoot()
45 auto pos = path.find_last_of('/'); in GetFileName() local
46 if (pos == std::string::npos) { in GetFileName()
47 pos = path.find_last_of('\\'); in GetFileName()
48 if (pos == std::string::npos) { in GetFileName()
52 return path.substr(pos + 1); in GetFileName()
/base/hiviewdfx/hidumper/frameworks/native/src/executor/
Dfile_format_dump_filter.cpp73 for (size_t pos = 0; pos < sum; pos++) { in FilterControlChar() local
74 char &c = str.at(pos); in FilterControlChar()
76 if ((!skip) && (c == ASCII_ESC) && ((pos + 1) < sum)) { in FilterControlChar()
77 char &next_c = str.at(pos + 1); in FilterControlChar()
/base/hiviewdfx/hilog_lite/frameworks/js/builtin/src/
Dhilog_module.cpp56 size_t pos = 0; in ParseLogContent() local
59 for (; pos < len; ++pos) { in ParseLogContent()
64 if (format[pos] != '%') { in ParseLogContent()
65 HilogString::Putc(format[pos], logContent); in ParseLogContent()
69 if (((pos + PUBLIC_LEN + PROPERTY_POS) < len) && in ParseLogContent()
70 (strncmp(format + pos + PROPERTY_POS, "public", PUBLIC_LEN) == 0)) { in ParseLogContent()
71 pos += (PUBLIC_LEN + PROPERTY_POS); in ParseLogContent()
73 } else if (((pos + PRIVATE_LEN + PROPERTY_POS) < len) && in ParseLogContent()
74 (strncmp(format + pos + PROPERTY_POS, "private", PRIVATE_LEN) == 0)) { in ParseLogContent()
75 pos += (PRIVATE_LEN + PROPERTY_POS); in ParseLogContent()
[all …]
/base/security/crypto_framework/common/src/
Dparams_parser.c110 uint32_t pos = 0; in ParseAndSetParameter() local
112 int findPos = StringFind(&str, '|', pos); in ParseAndSetParameter()
114 if (!StringSubString(&str, pos, findPos - pos, &subStr)) { in ParseAndSetParameter()
122 pos = findPos + 1; in ParseAndSetParameter()
125 if (strLen < pos) { in ParseAndSetParameter()
128 if (!StringSubString(&str, pos, strLen - pos, &subStr)) { in ParseAndSetParameter()
/base/web/webview/test/unittest/common/
Dnweb_create_window.cpp71 uint32_t pos = 0; in GetWebEngineArgs() local
72 while (pos < webEngineArgValue.size()) { in GetWebEngineArgs()
73 if (webEngineArgValue[pos] == ',') { in GetWebEngineArgs()
74 webEngineArgList.emplace_back(webEngineArgValue.substr(start, pos - start)); in GetWebEngineArgs()
75 pos++; in GetWebEngineArgs()
76 start = pos; in GetWebEngineArgs()
78 pos++; in GetWebEngineArgs()
81 webEngineArgList.emplace_back(webEngineArgValue.substr(start, pos - start)); in GetWebEngineArgs()
/base/web/webview/test/fuzztest/dispatchkeyevent_fuzzer/
Ddispatchkeyevent_fuzzer.cpp77 uint32_t pos = 0; in GetWebEngineArgs() local
78 while (pos < webEngineArgValue.size()) { in GetWebEngineArgs()
79 if (webEngineArgValue[pos] == ',') { in GetWebEngineArgs()
80 webEngineArgList.emplace_back(webEngineArgValue.substr(start, pos - start)); in GetWebEngineArgs()
81 pos++; in GetWebEngineArgs()
82 start = pos; in GetWebEngineArgs()
84 pos++; in GetWebEngineArgs()
87 webEngineArgList.emplace_back(webEngineArgValue.substr(start, pos - start)); in GetWebEngineArgs()
/base/web/webview/test/fuzztest/ohos_nweb/requestvsync_fuzzer/
Drequestvsync_fuzzer.cpp80 uint32_t pos = 0; in GetWebEngineArgs() local
81 while (pos < webEngineArgValue.size()) { in GetWebEngineArgs()
82 if (webEngineArgValue[pos] == ',') { in GetWebEngineArgs()
83 webEngineArgList.emplace_back(webEngineArgValue.substr(start, pos - start)); in GetWebEngineArgs()
84 pos++; in GetWebEngineArgs()
85 start = pos; in GetWebEngineArgs()
87 pos++; in GetWebEngineArgs()
90 webEngineArgList.emplace_back(webEngineArgValue.substr(start, pos - start)); in GetWebEngineArgs()
/base/web/webview/test/fuzztest/oninputaxisevent_fuzzer/
Doninputaxisevent_fuzzer.cpp75 uint32_t pos = 0; in GetWebEngineArgs() local
76 while (pos < webEngineArgValue.size()) { in GetWebEngineArgs()
77 if (webEngineArgValue[pos] == ',') { in GetWebEngineArgs()
78 webEngineArgList.emplace_back(webEngineArgValue.substr(start, pos - start)); in GetWebEngineArgs()
79 pos++; in GetWebEngineArgs()
80 start = pos; in GetWebEngineArgs()
82 pos++; in GetWebEngineArgs()
85 webEngineArgList.emplace_back(webEngineArgValue.substr(start, pos - start)); in GetWebEngineArgs()
/base/web/webview/test/fuzztest/oninputkeyevent_fuzzer/
Doninputkeyevent_fuzzer.cpp75 uint32_t pos = 0; in GetWebEngineArgs() local
76 while (pos < webEngineArgValue.size()) { in GetWebEngineArgs()
77 if (webEngineArgValue[pos] == ',') { in GetWebEngineArgs()
78 webEngineArgList.emplace_back(webEngineArgValue.substr(start, pos - start)); in GetWebEngineArgs()
79 pos++; in GetWebEngineArgs()
80 start = pos; in GetWebEngineArgs()
82 pos++; in GetWebEngineArgs()
85 webEngineArgList.emplace_back(webEngineArgValue.substr(start, pos - start)); in GetWebEngineArgs()
/base/web/webview/test/fuzztest/ohos_nweb/createnweb_fuzzer/
Dcreatenweb_fuzzer.cpp79 uint32_t pos = 0; in GetWebEngineArgs() local
80 while (pos < webEngineArgValue.size()) { in GetWebEngineArgs()
81 if (webEngineArgValue[pos] == ',') { in GetWebEngineArgs()
82 webEngineArgList.emplace_back(webEngineArgValue.substr(start, pos - start)); in GetWebEngineArgs()
83 pos++; in GetWebEngineArgs()
84 start = pos; in GetWebEngineArgs()
86 pos++; in GetWebEngineArgs()
89 webEngineArgList.emplace_back(webEngineArgValue.substr(start, pos - start)); in GetWebEngineArgs()
/base/web/webview/test/fuzztest/ohos_nweb/vsynccb_fuzzer/
Dvsynccb_fuzzer.cpp80 uint32_t pos = 0; in GetWebEngineArgs() local
81 while (pos < webEngineArgValue.size()) { in GetWebEngineArgs()
82 if (webEngineArgValue[pos] == ',') { in GetWebEngineArgs()
83 webEngineArgList.emplace_back(webEngineArgValue.substr(start, pos - start)); in GetWebEngineArgs()
84 pos++; in GetWebEngineArgs()
85 start = pos; in GetWebEngineArgs()
87 pos++; in GetWebEngineArgs()
90 webEngineArgList.emplace_back(webEngineArgValue.substr(start, pos - start)); in GetWebEngineArgs()
/base/web/webview/test/fuzztest/ohos_nweb/getcreateinfo_fuzzer/
Dgetcreateinfo_fuzzer.cpp80 uint32_t pos = 0; in GetWebEngineArgs() local
81 while (pos < webEngineArgValue.size()) { in GetWebEngineArgs()
82 if (webEngineArgValue[pos] == ',') { in GetWebEngineArgs()
83 webEngineArgList.emplace_back(webEngineArgValue.substr(start, pos - start)); in GetWebEngineArgs()
84 pos++; in GetWebEngineArgs()
85 start = pos; in GetWebEngineArgs()
87 pos++; in GetWebEngineArgs()
90 webEngineArgList.emplace_back(webEngineArgValue.substr(start, pos - start)); in GetWebEngineArgs()
/base/web/webview/test/fuzztest/ohos_nweb/registeventcb_fuzzer/
Dregisteventcb_fuzzer.cpp80 uint32_t pos = 0; in GetWebEngineArgs() local
81 while (pos < webEngineArgValue.size()) { in GetWebEngineArgs()
82 if (webEngineArgValue[pos] == ',') { in GetWebEngineArgs()
83 webEngineArgList.emplace_back(webEngineArgValue.substr(start, pos - start)); in GetWebEngineArgs()
84 pos++; in GetWebEngineArgs()
85 start = pos; in GetWebEngineArgs()
87 pos++; in GetWebEngineArgs()
90 webEngineArgList.emplace_back(webEngineArgValue.substr(start, pos - start)); in GetWebEngineArgs()
/base/web/webview/test/fuzztest/oninputpointevent_fuzzer/
Doninputpointevent_fuzzer.cpp75 uint32_t pos = 0; in GetWebEngineArgs() local
76 while (pos < webEngineArgValue.size()) { in GetWebEngineArgs()
77 if (webEngineArgValue[pos] == ',') { in GetWebEngineArgs()
78 webEngineArgList.emplace_back(webEngineArgValue.substr(start, pos - start)); in GetWebEngineArgs()
79 pos++; in GetWebEngineArgs()
80 start = pos; in GetWebEngineArgs()
82 pos++; in GetWebEngineArgs()
85 webEngineArgList.emplace_back(webEngineArgValue.substr(start, pos - start)); in GetWebEngineArgs()
/base/web/webview/test/fuzztest/ohos_nweb/getrenderinterface_fuzzer/
Dgetrenderinterface_fuzzer.cpp80 uint32_t pos = 0; in GetWebEngineArgs() local
81 while (pos < webEngineArgValue.size()) { in GetWebEngineArgs()
82 if (webEngineArgValue[pos] == ',') { in GetWebEngineArgs()
83 webEngineArgList.emplace_back(webEngineArgValue.substr(start, pos - start)); in GetWebEngineArgs()
84 pos++; in GetWebEngineArgs()
85 start = pos; in GetWebEngineArgs()
87 pos++; in GetWebEngineArgs()
90 webEngineArgList.emplace_back(webEngineArgValue.substr(start, pos - start)); in GetWebEngineArgs()
/base/update/updater/services/applypatch/
Dblock_set.cpp152 size_t pos = 0; in ReadDataFromBlock() local
162 if (!Utils::ReadFully(fd, buffer.data() + pos, size)) { in ReadDataFromBlock()
166 pos += size; in ReadDataFromBlock()
168 return pos; in ReadDataFromBlock()
173 size_t pos = 0; in WriteDataToBlock() local
192 if (Utils::WriteFully(fd, buffer.data() + pos, writeSize) == false) { in WriteDataToBlock()
196 pos += writeSize; in WriteDataToBlock()
202 return pos; in WriteDataToBlock()
258 int32_t BlockSet::LoadSourceBuffer(const Command &cmd, size_t &pos, std::vector<uint8_t> &sourceBuf… in LoadSourceBuffer() argument
261 std::string blockLen = cmd.GetArgumentByPos(pos++); in LoadSourceBuffer()
[all …]
/base/web/webview/test/fuzztest/loadurl_fuzzer/
Dloadurl_fuzzer.cpp75 uint32_t pos = 0; in GetWebEngineArgs() local
76 while (pos < webEngineArgValue.size()) { in GetWebEngineArgs()
77 if (webEngineArgValue[pos] == ',') { in GetWebEngineArgs()
78 webEngineArgList.emplace_back(webEngineArgValue.substr(start, pos - start)); in GetWebEngineArgs()
79 pos++; in GetWebEngineArgs()
80 start = pos; in GetWebEngineArgs()
82 pos++; in GetWebEngineArgs()
85 webEngineArgList.emplace_back(webEngineArgValue.substr(start, pos - start)); in GetWebEngineArgs()
/base/web/webview/test/fuzztest/unregisterarkjsfunction_fuzzer/
Dunregisterarkjsfunction_fuzzer.cpp75 uint32_t pos = 0; in GetWebEngineArgs() local
76 while (pos < webEngineArgValue.size()) { in GetWebEngineArgs()
77 if (webEngineArgValue[pos] == ',') { in GetWebEngineArgs()
78 webEngineArgList.emplace_back(webEngineArgValue.substr(start, pos - start)); in GetWebEngineArgs()
79 pos++; in GetWebEngineArgs()
80 start = pos; in GetWebEngineArgs()
82 pos++; in GetWebEngineArgs()
85 webEngineArgList.emplace_back(webEngineArgValue.substr(start, pos - start)); in GetWebEngineArgs()

1234567