Home
last modified time | relevance | path

Searched refs:take_while (Results 1 - 25 of 33) sorted by relevance

12

/third_party/rust/crates/nom/benchmarks/benches/
H A Dini.rs7 bytes::complete::take_while,
21 delimited(char('['), take_while(|c| c != b']'), char(']')), in category()
29 let (i, val) = map_res(take_while(|c| c != b'\n' && c != b';'), str::from_utf8)(i)?; in key_value()
30 let (i, _) = opt(pair(char(';'), take_while(|c| c != b'\n')))(i)?; in key_value()
H A Dini_str.rs7 bytes::complete::{is_a, tag, take_till, take_while},
27 delimited(char('['), take_while(|c| c != ']'), char(']')), in category()
/third_party/rust/crates/nom/src/
H A Dstr.rs160 fn take_while() { in take_while() functions
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()
248 "Parser `take_while` consumed leftover input." in take_while_succeed_none()
252 "Parser `take_while` doesn't return the string it consumed on success. \ in take_while_succeed_none()
259 "Parser `take_while` didn't succeed when it should have. \ in take_while_succeed_none()
299 use crate::bytes::complete::take_while; in take_while_succeed_some()
316 take_while(while_ in take_while_succeed_some()
[all...]
/third_party/rust/crates/nom/tests/
H A 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()
H A 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()
/third_party/rust/crates/nom/src/bytes/
H A Dtests.rs354 fn take_while() { in take_while() functions
355 use crate::bytes::streaming::take_while; in take_while()
358 take_while(is_alphabetic)(i) in take_while()
458 use crate::bytes::streaming::take_while; in take_while_utf8()
461 take_while(|c| c != '點')(i) in take_while_utf8()
470 take_while(|c| c == '點')(i) in take_while_utf8()
502 use crate::bytes::streaming::{take, take_while}; in take_utf8()
516 take_while(|c| c == '點')(i) in take_utf8()
548 use crate::bytes::streaming::take_while; in recognize_take_while()
553 take_while(is_alphanumeri in recognize_take_while()
[all...]
/third_party/rust/crates/nom/examples/
H A Djson_iterator.rs5 bytes::complete::{escaped, tag, take_while},
221 take_while(move |c| chars.contains(c))(i)
H A Djson.rs5 bytes::complete::{escaped, tag, take_while},
33 // nom combinators like `take_while` return a function. That function is the
35 take_while(move |c| chars.contains(c))(i)
/third_party/rust/crates/minimal-lexical/etc/correctness/rng-tests/
H A D_common.rs62 let count = bytes.iter().take_while(|&&si| si == b'0').count(); in ltrim_zero()
69 let count = bytes.iter().rev().take_while(|&&si| si == b'0').count(); in rtrim_zero()
/third_party/rust/crates/os_str_bytes/src/windows/wtf8/
H A Dstring.rs26 .take_while(Result::is_ok)
/third_party/rust/crates/minimal-lexical/fuzz/fuzz_targets/
H A Dparse.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()
/third_party/rust/crates/minimal-lexical/examples/
H A Dsimple.rs104 let count = bytes.iter().take_while(|&&si| si == b'0').count(); in ltrim_zero()
111 let count = bytes.iter().rev().take_while(|&&si| si == b'0').count(); in rtrim_zero()
/third_party/rust/crates/minimal-lexical/etc/correctness/test-parse-random/
H A D_common.rs76 let count = bytes.iter().take_while(|&&si| si == b'0').count(); in ltrim_zero()
83 let count = bytes.iter().rev().take_while(|&&si| si == b'0').count(); in rtrim_zero()
/third_party/rust/crates/codespan/codespan-reporting/src/term/
H A Drenderer.rs517 .take_while(|(byte_index, _)| *byte_index < range.start), in render_snippet_source()
852 .take_while(|(metrics, _)| metrics.byte_index < start + 1) in label_multi_top_caret()
886 .take_while(|(metrics, _)| metrics.byte_index < start) in label_multi_bottom_caret()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Testing/Support/
H A DAnnotations.cpp56 Name = Text.take_while(llvm::isAlnum); in Annotations()
/third_party/rust/crates/minimal-lexical/etc/correctness/test-parse-golang/
H A Dmain.rs69 let count = bytes.iter().take_while(|&&si| si == b'0').count(); in ltrim_zero()
76 let count = bytes.iter().rev().take_while(|&&si| si == b'0').count(); in rtrim_zero()
/third_party/rust/crates/minimal-lexical/tests/
H A 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()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Support/
H A DFormatVariadic.cpp101 Fmt.drop_front(BO).take_while([](char C) { return C == '{'; }); in splitLiteralAndReplacement()
/third_party/rust/crates/minimal-lexical/etc/correctness/test-parse-unittests/
H A Dmain.rs76 let count = bytes.iter().take_while(|&&si| si == b'0').count(); in ltrim_zero()
83 let count = bytes.iter().rev().take_while(|&&si| si == b'0').count(); in rtrim_zero()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-subzero/include/llvm/ADT/
H A DArrayRef.h219 template <class PredicateT> ArrayRef<T> take_while(PredicateT Pred) const { in take_while() function in llvm::ArrayRef
396 MutableArrayRef<T> take_while(PredicateT Pred) const { in take_while() function in llvm::ArrayRef
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/ADT/
H A DArrayRef.h236 template <class PredicateT> ArrayRef<T> take_while(PredicateT Pred) const { in take_while() function in llvm::ArrayRef
412 MutableArrayRef<T> take_while(PredicateT Pred) const { in take_while() function in llvm::ArrayRef
/third_party/rust/crates/regex/regex-syntax/src/hir/
H A Dmod.rs450 .take_while(|e| { in concat()
460 .take_while(|e| { in concat()
469 .take_while(|e| { in concat()
478 .take_while(|e| { in concat()
/third_party/rust/crates/clang-sys/src/
H A Dsupport.rs200 .take_while(|c| c.is_digit(10)) in parse_version_number()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Analysis/
H A DVFABIDemangling.cpp361 MangledName.take_while([](char In) { return In != '('; }); in tryDemangleForVFABI()
/third_party/rust/crates/bindgen/bindgen/ir/
H A Dfunction.rs383 .take_while(|(cur, ty)| cur.is_some() || ty.is_some()) in args_from_ty_and_cursor()

Completed in 14 milliseconds

12