Home
last modified time | relevance | path

Searched refs:take_while (Results 1 – 25 of 102) sorted by relevance

12345

/external/cronet/buildtools/third_party/libc++/trunk/test/std/ranges/range.adaptors/range.take.while/
Dadaptor.pass.cpp37 static_assert(!std::is_invocable_v<decltype((std::views::take_while))>);
38 static_assert(std::is_invocable_v<decltype((std::views::take_while)), int>);
39 static_assert(std::is_invocable_v<decltype((std::views::take_while)), Pred>);
40 static_assert(!std::is_invocable_v<decltype((std::views::take_while)), int, Pred>);
41 static_assert(std::is_invocable_v<decltype((std::views::take_while)), int (&)[2], Pred>);
42 static_assert(!std::is_invocable_v<decltype((std::views::take_while)), Foo (&)[2], Pred>);
43 static_assert(std::is_invocable_v<decltype((std::views::take_while)), MoveOnlyView, Pred>);
51 static_assert(!CanBePiped<MoveOnlyView, decltype(std::views::take_while)>);
52 static_assert(CanBePiped<MoveOnlyView, decltype(std::views::take_while(Pred{}))>);
53 static_assert(!CanBePiped<int, decltype(std::views::take_while(Pred{}))>);
[all …]
Dgeneral.pass.cpp23 auto small_ints = input | std::views::take_while(small); in main()
/external/tensorflow/tensorflow/python/data/kernel_tests/
Dtake_while_test.py43 dataset = dataset.take_while(predicate=_predicate_func).flat_map(
58 dataset = dataset_ops.Dataset.range(num_elements).take_while(
71 dataset = dataset_ops.Dataset.from_tensor_slices(string).take_while(
96 dataset = dataset_ops.Dataset.from_tensor_slices(boolean_array).take_while(
109 dataset = dataset_ops.Dataset.range(10).take_while(
116 dataset = dataset.take_while(
122 dataset = dataset_ops.Dataset.from_tensors(42).take_while(
131 return dataset_ops.Dataset.range(num_elements).take_while(
/external/rust/crates/peeking_take_while/
DCargo.toml.orig3take_while`, but calls the predicate on a peeked value. This allows you to use `Iterator::by_ref` …
6 keywords = ["iterator", "take_while", "peek", "by_ref"]
DCargo.toml17take_while`, but calls the predicate on a peeked value. This allows you to use `Iterator::by_ref` …
19 keywords = ["iterator", "take_while", "peek", "by_ref"]
DREADME.md7 The `peeking_take_while` method is very similar to `take_while`, but behaves
14 hand, `take_while` will consume that first item for which the predicate returns
25 // the elements. With the `xs`, we will use the normal `take_while`. With the
37 let xs_less_than_ten = iter_xs.by_ref().take_while(|x| *x < 10);
51 // ...except, when using plain old `take_while` we lost 10!
DMETADATA2take_while`, but calls the predicate on a peeked value. This allows you to use `Iterator::by_ref` …
/external/rust/crates/nom/src/
Dstr.rs160 fn take_while() { in take_while() function
161 use crate::bytes::streaming::take_while; in take_while()
164 take_while(is_alphabetic)(i) in take_while()
233 use crate::bytes::complete::take_while; in take_while_succeed_none()
242 take_while(while_s)(input) in take_while_succeed_none()
299 use crate::bytes::complete::take_while; in take_while_succeed_some()
316 take_while(while_s)(input) in take_while_succeed_some()
/external/tensorflow/tensorflow/python/data/experimental/ops/
Dtake_while_ops.py22 def take_while(predicate): function
36 return dataset.take_while(predicate=predicate)
/external/rust/crates/nom/src/bytes/
Dtests.rs354 fn take_while() {
355 use crate::bytes::streaming::take_while;
358 take_while(is_alphabetic)(i)
458 use crate::bytes::streaming::take_while;
461 take_while(|c| c != '點')(i)
470 take_while(|c| c == '點')(i)
502 use crate::bytes::streaming::{take, take_while};
516 take_while(|c| c == '點')(i)
548 use crate::bytes::streaming::take_while;
553 take_while(is_alphanumeric)(i)
/external/rust/crates/nom/tests/
Dini.rs2 bytes::complete::take_while,
17 delimited(char('['), take_while(|c| c != b']'), char(']')), in category()
25 let (i, val) = map_res(take_while(|c| c != b'\n' && c != b';'), str::from_utf8)(i)?; in key_value()
26 let (i, _) = opt(pair(char(';'), take_while(|c| c != b'\n')))(i)?; in key_value()
Dini_str.rs2 bytes::complete::{is_a, tag, take_till, take_while},
17 take_while(|c| c != '\r' && c != '\n')(i) in not_line_ending()
26 delimited(char('['), take_while(|c| c != ']'), char(']')), in category()
/external/rust/crates/tokio-stream/src/
Dstream_ext.rs49 mod take_while; module
50 use take_while::TakeWhile;
590 fn take_while<F>(self, f: F) -> TakeWhile<Self, F> in take_while() method
/external/rust/crates/unicode-normalization/src/
Dstream_safe.rs158 .take_while(|&c| canonical_combining_class(*c) != 0) in test_classify_nonstarters()
163 .take_while(|&c| canonical_combining_class(*c) != 0) in test_classify_nonstarters()
/external/rust/crates/protobuf/2.27.1/src/text_format/lexer/
Dlexer_impl.rs150 self.take_while(|c| c.is_whitespace()); in skip_whitespaces()
217 pub fn take_while<F>(&mut self, f: F) -> &'a str in take_while() method
343 let s = self.take_while(|c| c.is_ascii_hexdigit()); in next_hex_lit_opt()
360 clone.take_while(|c| c.is_ascii_digit()); in next_decimal_octal_lit_opt()
397 self.take_while(|c| c >= '0' && c <= '9'); in next_decimal_digits()
/external/rust/crates/protobuf-support/src/lexer/
Dlexer_impl.rs136 self.take_while(|c| c.is_whitespace()); in skip_whitespaces()
203 pub fn take_while<F>(&mut self, f: F) -> &'a str in take_while() method
329 let s = self.take_while(|c| c.is_ascii_hexdigit()); in next_hex_lit_opt()
346 clone.take_while(|c| c.is_ascii_digit()); in next_decimal_octal_lit_opt()
383 self.take_while(|c| c >= '0' && c <= '9'); in next_decimal_digits()
/external/rust/crates/minimal-lexical/tests/
Dintegration_tests.rs57 let count = bytes.iter().take_while(|&&si| si == b'0').count(); in ltrim_zero()
64 let count = bytes.iter().rev().take_while(|&&si| si == b'0').count(); in rtrim_zero()
/external/rust/crates/fallible-iterator/src/
Dtest.rs376 fn take_while() { in take_while() function
379 it.clone().take_while(|x| Ok(*x < 0)).collect::<Vec<_>>(), in take_while()
383 it.clone().take_while(|x| Ok(*x < 2)).collect::<Vec<_>>(), in take_while()
387 it.clone().take_while(|x| Ok(*x < 4)).collect::<Vec<_>>(), in take_while()
/external/rust/crates/quickcheck/examples/
Dsieve.rs25 n != 0 && n != 1 && (2..).take_while(|i| i * i <= n).all(|i| n % i != 0) in is_prime()
/external/rust/crates/gdbstub/src/stub/core_impl/
Dcatch_syscalls.rs31 .take_while(|x| { in handle_catch_syscalls()
/external/rust/crates/fallible-iterator/
DCHANGELOG.md21 * Added `step_by`, `for_each`, `skip_while`, `take_while`, `skip`, `scan`, `flat_map`, `flatten`, `…
/external/rust/crates/os_str_bytes/src/windows/wtf8/
Dstring.rs26 .take_while(Result::is_ok) in ends_with()
/external/flatbuffers/rust/flexbuffers/src/builder/
Dmap.rs85 buffer[address..].iter().take_while(|&&b| b != b'\0') in get_key()
/external/rust/crates/combine/src/parser/
Drange.rs352 pub fn take_while<Input, F>(f: F) -> TakeWhile<Input, F> in take_while() function
713 let result = take_while(|c: char| c.is_digit(10)).parse("123abc"); in take_while_test()
715 let result = take_while(|c: char| c.is_digit(10)).parse("abc"); in take_while_test()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Testing/Support/
DAnnotations.cpp56 Name = Text.take_while(llvm::isAlnum); in Annotations()

12345