Home
last modified time | relevance | path

Searched refs:left (Results 1 - 22 of 22) sorted by relevance

/commonlibrary/rust/ylong_runtime/ylong_runtime/src/iter/
H A Dcore.rs87 let (left, right) = par_iter.split();
91 return Ok(consumer.consume(left));
96 let left = spawn_task(
99 left,
112 let left = left.await??;
114 Ok(C::combine(left, right))
164 let (left, right) = par_iter.split();
168 return Ok(consumer.consume(left));
173 let left
[all...]
/commonlibrary/rust/ylong_runtime/ylong_runtime/src/iter/parallel/
H A Dslice.rs26 let (left, right) = self.split_at(idx); in split()
27 (left, Some(right)) in split()
42 let (left, right) = self.split_at_mut(idx); in split()
43 (left, Some(right)) in split()
H A Dmod.rs124 let (left, right) = self.data.split(); in split()
125 let left = ParIter { data: left }; in split()
127 (left, right) in split()
/commonlibrary/rust/ylong_http/ylong_http/src/body/
H A Dtext.rs250 /// let (text, left) = decoder.decode(slice1);
253 /// // and no left data is returned.
256 /// assert!(left.is_empty());
263 /// let (text, left) = decoder.decode(slice2);
265 /// // is `Complete`. The left data is also returned.
268 /// assert_eq!(left, b"[REDUNDANT DATA]");
273 /// let (text, left) = decoder.decode(slice3);
276 /// assert_eq!(left, b"[REDUNDANT DATA]");
279 left: u64,
295 TextBodyDecoder { left in new()
[all...]
/commonlibrary/rust/ylong_http/ylong_http/src/util/
H A Dtest_util.rs23 let (left, right) = remained.split_at(2); in decode()
24 match u8::from_str_radix(left, 16) { in decode()
/commonlibrary/c_utils/base/src/
H A Dstring_ex.cpp205 string::size_type GetFirstSubStrBetween(const string& str, const string& left, in GetFirstSubStrBetween() argument
208 string::size_type leftPos = str.find(left); in GetFirstSubStrBetween()
213 string::size_type rightPos = str.find(right, leftPos + left.length()); in GetFirstSubStrBetween()
218 sub = str.substr((leftPos + left.length()), (rightPos - (leftPos + left.length()))); in GetFirstSubStrBetween()
222 void GetSubStrBetween(const string& str, const string& left, const string& right, vector<string>& sub) in GetSubStrBetween() argument
226 string::size_type pos = GetFirstSubStrBetween(strTmp, left, right, subString); in GetSubStrBetween()
230 pos = GetFirstSubStrBetween(strTmp, left, right, subString); in GetSubStrBetween()
/commonlibrary/rust/ylong_runtime/ylong_runtime/tests/
H A Dtimer_test.rs27 let mut left = TOTAL_SIZE; variables
30 left -= recv;
31 if left == 0 {
/commonlibrary/c_utils/base/test/fuzztest/string_fuzzer/
H A Dstring_fuzzer.cpp52 string left = dataProvider->ConsumeRandomLengthString(MAX_STRING_LENGTH); in StringTestFunc() local
55 GetFirstSubStrBetween(newStr, left, right, emptySubStr); in StringTestFunc()
/commonlibrary/rust/ylong_runtime/ylong_runtime/src/iter/pariter/
H A Dfilter.rs46 let (left, right) = self.base.split(); in split()
49 base: left, in split()
H A Dmap.rs52 let (left, right) = self.base.split(); in split()
54 Map { base: left, map_op }, in split()
H A Dzip.rs60 let left = Zip { in split()
68 (left, right) in split()
/commonlibrary/c_utils/base/include/
H A Dstring_ex.h182 * by `left` and `right`.
185 * @param left Indicates the left string.
191 std::string::size_type GetFirstSubStrBetween(const std::string& str, const std::string& left,
197 * by `left` and `right`.
200 * @param left Indicates the left string.
204 void GetSubStrBetween(const std::string& str, const std::string& left,
/commonlibrary/c_utils/base/test/benchmarktest/string_benchmark_test/
H A Dstring_benchmark_test.cpp667 string left = "{"; in BENCHMARK_F() local
671 string::size_type pos = GetFirstSubStrBetween(strBase, left, right, strValue); in BENCHMARK_F()
677 pos = GetFirstSubStrBetween(strBase, left, right, strValue); in BENCHMARK_F()
689 string left = "{"; in BENCHMARK_F() local
692 string::size_type pos = GetFirstSubStrBetween(strBase, left, right, strValue); in BENCHMARK_F()
703 string left = "{"; in BENCHMARK_F() local
707 GetSubStrBetween(strBase, left, right, strValue); in BENCHMARK_F()
720 string left = "{"; in BENCHMARK_F() local
724 GetSubStrBetween(strBase, left, right, strValue); in BENCHMARK_F()
/commonlibrary/c_utils/base/test/unittest/common/
H A Dutils_string_test.cpp596 string left = "{"; in HWTEST_F() local
600 string::size_type pos = GetFirstSubStrBetween(strBase, left, right, strValue); in HWTEST_F()
606 pos = GetFirstSubStrBetween(strBase, left, right, strValue); in HWTEST_F()
614 string left = "{"; in HWTEST_F() local
617 string::size_type pos = GetFirstSubStrBetween(strBase, left, right, strValue); in HWTEST_F()
625 string left = "{"; in HWTEST_F() local
629 GetSubStrBetween(strBase, left, right, strValue); in HWTEST_F()
638 string left = "{"; in HWTEST_F() local
642 GetSubStrBetween(strBase, left, right, strValue); in HWTEST_F()
H A Dutils_parcel_test.cpp1295 void ValidatePadded(const struct Padded &left, const struct Padded &right) in ValidatePadded() argument
1297 EXPECT_EQ(left.title, right.title); in ValidatePadded()
1298 EXPECT_EQ(left.handle, right.handle); in ValidatePadded()
1299 EXPECT_EQ(left.cookie, right.cookie); in ValidatePadded()
1302 void ValidateUnpadded(const struct Unpadded &left, const struct Unpadded &right) in ValidateUnpadded() argument
1304 EXPECT_EQ(left.tip, right.tip); in ValidateUnpadded()
/commonlibrary/ets_utils/js_api_module/uri/
H A Djs_uri.cpp511 size_t left = 0; in Normalize() local
512 while ((pos = uriData_.path.find('/', left)) != std::string::npos) { in Normalize()
513 temp.push_back(uriData_.path.substr(left, pos - left)); in Normalize()
514 left = pos + 1; in Normalize()
516 if (left != pathLen) { in Normalize()
517 temp.push_back(uriData_.path.substr(left)); in Normalize()
/commonlibrary/rust/ylong_http/ylong_http_client/src/util/c_openssl/verify/
H A Dpinning.rs290 let (left, right) = remained.split_at(2); in bytes_from_hex()
291 match u8::from_str_radix(left, 16) { in bytes_from_hex()
/commonlibrary/ets_utils/js_api_module/url/
H A Djs_url.cpp353 size_t left = pos + 1; in DealIpv4() local
356 while ((pos = str.find(".", left)) != std::string::npos) { in DealIpv4()
357 val = str.substr(left, pos - left); in DealIpv4()
364 left = pos + 1; in DealIpv4()
366 val = str.substr(left); in DealIpv4()
382 size_t left = 0; in FormatIpv6() local
384 while ((pos = str.find(":", left)) != std::string::npos) { in FormatIpv6()
386 left = pos + 1; in FormatIpv6()
475 size_t left in Compress() local
581 size_t left = 0; RemovalIpv4() local
[all...]
/commonlibrary/rust/ylong_http/ylong_http/src/huffman/
H A Dmod.rs179 let left = byte >> 4; in huffman_decode_inner()
182 (state, _result, flags) = HUFFMAN_DECODE[state as usize][left as usize]; in huffman_decode_inner()
/commonlibrary/ets_utils/js_sys_module/console/
H A Dconsole.cpp43 {"left", "│ "},
308 std::string result = tableChars["left"]; in RenderHead()
322 size_t left = (columnWidths[i] - stringLen) / 2; // 2: half in RenderHead() local
323 size_t right = columnWidths[i] - stringLen - left; in RenderHead()
324 result += StringRepeat(left, " ") + elemStr + StringRepeat(right, " "); in RenderHead()
355 std::string result = tableChars["left"]; in PrintRows()
362 size_t left = (columnWidths[j] - stringLen) / 2; // 2: half in PrintRows() local
363 size_t right = columnWidths[j] - stringLen - left; in PrintRows()
364 result += StringRepeat(left, " ") + stringVal + StringRepeat(right, " "); in PrintRows()
/commonlibrary/rust/ylong_runtime/ylong_runtime/src/util/
H A Dbit.rs43 /// shift: Offset of consecutive binary bits to the **left**
103 let left = USIZE_LEN - width;
104 let sh = if left > shift { shift } else { left };
/commonlibrary/c_utils/base/test/benchmarktest/parcel_benchmark_test/
H A Dparcel_benchmark_test.cpp1200 void ValidatePadded(const struct Padded &left, const struct Padded &right, benchmark::State& state) in ValidatePadded() argument
1203 AssertEqual(left.title, right.title, "left.title did not equal right.title as expected.", state); in ValidatePadded()
1205 AssertEqual(left.handle, right.handle, "left.handle did not equal right.handle as expected.", state); in ValidatePadded()
1207 AssertEqual(left.cookie, right.cookie, "left.cookie did not equal right.cookie as expected.", state); in ValidatePadded()
1210 void ValidateUnpadded(const struct Unpadded &left, const struct Unpadded &right, benchmark::State& state) in ValidateUnpadded() argument
1213 AssertEqual(left.tip, right.tip, "left in ValidateUnpadded()
[all...]

Completed in 19 milliseconds