Home
last modified time | relevance | path

Searched refs:empty (Results 1 - 25 of 55) sorted by relevance

123

/commonlibrary/ets_utils/js_api_module/uri/
H A Djs_uri.cpp68 if (input.empty()) { in Uri()
69 errStr_ = "uri is empty"; in Uri()
80 if (!uriData_.query.empty()) { in AssignSchemeSpecificPart()
92 if (!errStr_.empty()) { in AnalysisUri()
99 if (!errStr_.empty()) { in AnalysisUri()
106 if (!errStr_.empty()) { in AnalysisUri()
111 if (!errStr_.empty()) { in AnalysisUri()
122 if (!errStr_.empty()) { in AnalysisUri()
245 if (data_.empty()) { in AnalysisHostAndPath()
252 if (!errStr_.empty()) { in AnalysisHostAndPath()
[all...]
H A Dnative_module_uri.cpp186 if (temp.empty()) { in AddQueryValue()
210 if (temp.empty()) { in AddSegment()
227 if (temp.empty()) { in GetSegment()
249 if (temp.empty()) { in GetScheme()
266 if (temp.empty()) { in GetAuthority()
296 if (temp.empty()) { in GetUserinfo()
313 if (temp.empty()) { in GetHost()
343 if (temp.empty()) { in GetPath()
360 if (temp.empty()) { in GetQuery()
377 if (temp.empty()) { in GetFragment()
[all...]
/commonlibrary/c_utils/base/src/
H A Dstring_ex.cpp47 if (src.empty()) { in ReplaceStr()
102 if (string::npos == pos || sep.empty()) { in SplitStr()
104 if (!strPart.empty() || canEmpty) { in SplitStr()
110 if (!strPart.empty() || canEmpty) { in SplitStr()
120 if (str.empty() || (!isdigit(str.front()) && (str.front() != '-'))) { in StrToInt()
138 if (str.empty()) { in IsNumericStr()
153 if (str.empty()) { in IsAlphaStr()
168 if (str.empty()) { in IsUpperStr()
183 if (str.empty()) { in IsLowerStr()
198 if (sub.empty() || st in IsSubStr()
[all...]
H A Dthread_pool.cpp39 if (!threads_.empty()) { in Start()
76 if (threads_.empty()) { in AddTask()
99 while (tasks_.empty() && running_) { in ScheduleTask()
104 if (!tasks_.empty()) { in ScheduleTask()
H A Dtimer.cpp60 if (intervalToTimers_.empty()) { in Shutdown()
139 if (intervalToTimers_[entry->interval].empty()) { in Unregister()
203 if (!onceIdsUnused.empty()) { in OnTimer()
255 if (entryList.empty()) { in EraseUnusedTimerId()
H A Ddirectory_ex.cpp134 if (!path.empty()) { in ExcludeTrailingPathDelimiter()
143 if (path.empty()) { in IncludeTrailingPathDelimiter()
164 while (!traverseStack.empty()) { in GetDirFiles()
246 while (!traversStack.empty()) { in ForceRemoveDirectory()
308 while (!removeStack.empty()) { in ForceRemoveDirectory()
340 return files.empty(); in IsEmptyFolder()
418 if (path.empty()) { in PathToRealPath()
419 UTILS_LOGD("path is empty!"); in PathToRealPath()
H A Dfile_ex.cpp152 if (fileName.empty()) { in LoadStringFromFdToFile()
205 if (content.empty()) { in SaveStringToFile()
206 UTILS_LOGI("content is empty, no need to save!"); in SaveStringToFile()
238 if (content.empty()) { in SaveStringToFd()
239 UTILS_LOGI("content is empty, no need to save!"); in SaveStringToFd()
293 /* load file to buffer. If the buffer is not empty,then overwrite */
333 if (content.empty()) { in SaveBufferToFile()
334 UTILS_LOGI("content is empty, no need to save!"); in SaveBufferToFile()
359 if (subStr.empty()) { in StringExistsInFile()
360 UTILS_LOGD("String is empty"); in StringExistsInFile()
[all...]
/commonlibrary/ets_utils/js_concurrent_module/worker/
H A Dmessage_queue.cpp30 if (queue_.empty()) { in DeQueue()
46 return queue_.empty(); in IsEmpty()
82 return queue_.empty(); in IsEmpty()
88 while (!queue_.empty()) { in Clear()
/commonlibrary/rust/ylong_http/ylong_http_client/src/util/h2/
H A Dinput.rs50 empty: bool,
59 empty: true,
65 self.empty = true;
136 if !self.buf.empty { in poll_writer_frame()
180 self.buf.empty = false;
/commonlibrary/ets_utils/js_concurrent_module/taskpool/
H A Dmessage_queue.h35 if (queue_.empty()) { in DeQueue()
47 return queue_.empty(); in IsEmpty()
H A Dtask_queue.cpp36 if (!tasks_.empty()) { in DequeueTaskId()
46 return tasks_.empty(); in IsEmpty()
/commonlibrary/c_utils/base/test/benchmarktest/safe_queue_benchmark_test/
H A Dsafe_queue_benchmark_test.cpp220 void GetThreadDateEmptyStatus(unsigned int &empty, unsigned int &unEmpty) in GetThreadDateEmptyStatus() argument
222 empty = 0; in GetThreadDateEmptyStatus()
226 empty++; in GetThreadDateEmptyStatus()
231 BENCHMARK_LOGD("SafeQueue GetThreadDateEmptyStatus empty:%{public}d unEmpty:%{public}d.", empty, unEmpty); in GetThreadDateEmptyStatus()
300 * CaseDescription: Multi-threaded put() and Multi-threaded get() on the empty queue.
342 * CaseDescription: Multi-threaded put() and Multi-threaded get() on the not empty queue.
395 * Function:erase empty
399 * CaseDescription: Multi-threaded erase() and Multi-threaded empty() on the empty queu
425 unsigned int empty = 0; BENCHMARK_F() local
[all...]
/commonlibrary/c_utils/base/include/
H A Dsafe_block_queue.h54 * pop threads (blocked when the queue is empty) is woken up.
74 * If the queue is empty, the thread of the pop operation will be blocked
76 * If the queue is not empty, the pop operation can be performed, the first
84 while (queueT_.empty()) { in Pop()
85 // If the queue is empty, wait for elements to be pushed in. in Pop()
86 cvNotEmpty_.wait(lock, [&] { return !queueT_.empty(); }); in Pop()
100 * pop threads (blocked when the queue is empty) is woken up, and <b>true</b>
120 * If the queue is empty, <b>false</b> is returned directly.
121 * If the queue is not empty, the pop operation can be performed, one of the
130 if (queueT_.empty()) { in PopNotWait()
[all...]
H A Dsafe_queue.h46 if (!deque_.empty()) { in ~SafeQueueInner()
65 return deque_.empty(); in Empty()
77 if (!deque_.empty()) { in Clear()
H A Dsafe_map.h78 * @brief Checks whether the map is empty.
84 * @return Returns <b>true</b> if the map is empty;
90 return map_.empty(); in IsEmpty()
209 if (!map_.empty()) { in Iterate()
H A Dsorted_vector.h75 * @brief Checks whether this vector is empty.
77 * @return Returns `true` if the vector is empty; returns `false` otherwise.
79 inline bool IsEmpty() const { return vec_.empty(); } in IsEmpty()
345 if (vec_.empty()) { in IndexOf()
379 if (invec.empty()) { in SortedVector()
/commonlibrary/ets_utils/platform/default/
H A Dprocess_helper.cpp74 if (strLine.empty()) { in GetProcessStartRealtime()
88 startRealtime = word.empty() ? 0 : std::strtod(word.c_str(), nullptr); in GetProcessStartRealtime()
/commonlibrary/ets_utils/js_api_module/url/
H A Djs_url.cpp106 if (input.empty()) { in DecodeSpecialChars()
129 if (str.empty()) { in DeleteC0OrSpace()
226 if (userAndPasswd.empty()) { in AnalysisUsernameAndPasswd()
243 if (!user.empty()) { in AnalysisUsernameAndPasswd()
247 if (!keyWord.empty()) { in AnalysisUsernameAndPasswd()
272 if (path.empty() && it == length - 1) { in AnalysisPath()
276 if (path.empty()) { in AnalysisPath()
533 if (subStr.empty()) { in IsNumber()
540 if (subStr.empty()) { in IsNumber()
555 if (num.substr(2).empty()) { // in BinaryConversion()
[all...]
/commonlibrary/ets_utils/js_concurrent_module/utils/locks/
H A Dgraph.h60 return vertices.empty(); in IsEmpty()
106 if (e_.empty()) { in IsValid()
121 if (cycle.vertices.empty() || cycle.vertices.size() < 1 || in CycleAsString()
151 if (!cycle.vertices.empty()) { in FindFirstCycle()
194 while (!dfsStack.empty()) { in DfsBuildCycleInfo()
234 while (!dfsStack.empty()) {
H A Dasync_lock.cpp68 if (heldList_.empty()) { in CleanUpLockRequestOnCompletion()
114 if (pendingList_.empty()) { in ProcessPendingLockRequestUnsafe()
134 if (pendingList_.empty()) { in ProcessPendingLockRequestUnsafe()
146 if (heldList_.empty()) { in CanAcquireLock()
/commonlibrary/rust/ylong_http/ylong_http_client/examples/
H A Dasync_http_multi.rs28 .body(Body::empty()) in main()
H A Dasync_http.rs37 .body(Body::empty())?;
H A Dasync_certs_adapter.rs65 .body(Body::empty())
H A Dasync_https_outside.rs54 .body(Body::empty())?;
/commonlibrary/ets_utils/js_concurrent_module/common/helper/
H A Derror_helper.h173 if (rawErrorInfo.empty()) { in SplitErrorFileInfo()
216 double line = result[1].empty() ? 0 : std::strtod(result[1].c_str(), nullptr); // 1 : index of lineno in TranslateErrorEvent()
222 double col = result[2].empty() ? 0 : std::strtod(result[2].c_str(), nullptr); // 2 : index of colno in TranslateErrorEvent()

Completed in 13 milliseconds

123