Home
last modified time | relevance | path

Searched refs:Incomplete (Results 1 – 25 of 153) sorted by relevance

1234567

/third_party/rust/crates/nom/src/bytes/
Dtests.rs65 assert_eq!(a_or_b(e), Err(Err::Incomplete(Needed::new(1)))); in is_not()
282 assert_eq!(y(&b"nd"[..]), Err(Err::Incomplete(Needed::Unknown)));
283 assert_eq!(y(&b"123"[..]), Err(Err::Incomplete(Needed::Unknown)));
284 assert_eq!(y(&b"123en"[..]), Err(Err::Incomplete(Needed::Unknown)));
293 assert_eq!(ys("123en"), Err(Err::Incomplete(Needed::Unknown)));
365 assert_eq!(f(&a[..]), Err(Err::Incomplete(Needed::new(1))));
366 assert_eq!(f(&b[..]), Err(Err::Incomplete(Needed::new(1))));
383 assert_eq!(f(&a[..]), Err(Err::Incomplete(Needed::new(1))));
384 assert_eq!(f(&b[..]), Err(Err::Incomplete(Needed::new(1))));
406 assert_eq!(x(&a[..]), Err(Err::Incomplete(Needed::new(2))));
[all …]
Dstreaming.rs44 CompareResult::Incomplete => Err(Err::Incomplete(Needed::new(tag_len - i.input_len()))), in tag()
86 CompareResult::Incomplete => Err(Err::Incomplete(Needed::new(tag_len - i.input_len()))), in tag_no_case()
313 Err(Err::Incomplete(Needed::new(needed))) in take_while_m_n()
420 Err(i) => Err(Err::Incomplete(i)), in take()
457 None => Err(Err::Incomplete(Needed::Unknown)), in take_until()
497 None => Err(Err::Incomplete(Needed::Unknown)), in take_until1()
554 return Err(Err::Incomplete(Needed::Unknown)); in escaped()
567 return Err(Err::Incomplete(Needed::new(1))); in escaped()
572 return Err(Err::Incomplete(Needed::Unknown)); in escaped()
591 Err(Err::Incomplete(Needed::Unknown)) in escaped()
[all …]
/third_party/rust/crates/nom/src/sequence/
Dtests.rs99 Err(Err::Incomplete(Needed::new(1))) in pair_test()
103 Err(Err::Incomplete(Needed::new(2))) in pair_test()
131 Err(Err::Incomplete(Needed::new(1))) in separated_pair_test()
135 Err(Err::Incomplete(Needed::new(2))) in separated_pair_test()
163 Err(Err::Incomplete(Needed::new(2))) in preceded_test()
167 Err(Err::Incomplete(Needed::new(3))) in preceded_test()
195 Err(Err::Incomplete(Needed::new(2))) in terminated_test()
199 Err(Err::Incomplete(Needed::new(3))) in terminated_test()
227 Err(Err::Incomplete(Needed::new(1))) in delimited_test()
231 Err(Err::Incomplete(Needed::new(1))) in delimited_test()
[all …]
/third_party/rust/crates/nom/src/character/
Dstreaming.rs40 None => Err(Err::Incomplete(Needed::new(c.len() - i.input_len()))), in char()
72 None => Err(Err::Incomplete(Needed::Unknown)), in satisfy()
97 None => Err(Err::Incomplete(Needed::new(1))), in one_of()
122 None => Err(Err::Incomplete(Needed::new(1))), in none_of()
149 CompareResult::Incomplete => Err(Err::Incomplete(Needed::new(2))), in crlf()
183 None => Err(Err::Incomplete(Needed::Unknown)), in not_line_ending()
192 CompareResult::Incomplete => Err(Err::Incomplete(Needed::Unknown)), in not_line_ending()
226 CompareResult::Incomplete => Err(Err::Incomplete(Needed::new(1))), in line_ending()
231 CompareResult::Incomplete => Err(Err::Incomplete(Needed::new(2))), in line_ending()
296 None => Err(Err::Incomplete(Needed::new(1))), in anychar()
[all …]
/third_party/rust/crates/nom/src/number/
Dstreaming.rs36 Err(Err::Incomplete(Needed::new(1))) in be_u8()
66 Err(Err::Incomplete(Needed::new(bound - input.input_len()))) in be_u16()
99 Err(Err::Incomplete(Needed::new(bound - input.input_len()))) in be_u24()
132 Err(Err::Incomplete(Needed::new(bound - input.input_len()))) in be_u32()
165 Err(Err::Incomplete(Needed::new(bound - input.input_len()))) in be_u64()
197 Err(Err::Incomplete(Needed::new(bound - input.input_len()))) in be_u128()
357 Err(Err::Incomplete(Needed::new(1))) in le_u8()
387 Err(Err::Incomplete(Needed::new(bound - input.input_len()))) in le_u16()
420 Err(Err::Incomplete(Needed::new(bound - input.input_len()))) in le_u24()
453 Err(Err::Incomplete(Needed::new(bound - input.input_len()))) in le_u32()
[all …]
/third_party/rust/crates/nom/tests/
Doverflow.rs23 Err(Err::Incomplete(Needed::new(18446744073709551615))) in overflow_incomplete_tuple()
37 Err(Err::Incomplete(Needed::new(18446744073709551615))) in overflow_incomplete_length_bytes()
51 Err(Err::Incomplete(Needed::new(18446744073709551599))) in overflow_incomplete_many0()
67 Err(Err::Incomplete(Needed::new(18446744073709551599))) in overflow_incomplete_many1()
83 Err(Err::Incomplete(Needed::new(18446744073709551599))) in overflow_incomplete_many_till()
99 Err(Err::Incomplete(Needed::new(18446744073709551599))) in overflow_incomplete_many_m_n()
114 Err(Err::Incomplete(Needed::new(18446744073709551599))) in overflow_incomplete_count()
130 Err(Err::Incomplete(Needed::new(18446744073709551598))) in overflow_incomplete_length_count()
143 Err(Err::Incomplete(Needed::new(18446744073709551615))) in overflow_incomplete_length_data()
/third_party/rust/crates/nom/src/multi/
Dtests.rs64 assert_eq!(multi(f), Err(Err::Incomplete(Needed::new(1)))); in separated_list0_test()
65 assert_eq!(multi_longsep(g), Err(Err::Incomplete(Needed::new(1)))); in separated_list0_test()
66 assert_eq!(multi(h), Err(Err::Incomplete(Needed::new(1)))); in separated_list0_test()
99 assert_eq!(multi(f), Err(Err::Incomplete(Needed::new(1)))); in separated_list1_test()
100 assert_eq!(multi_longsep(g), Err(Err::Incomplete(Needed::new(1)))); in separated_list1_test()
101 assert_eq!(multi(h), Err(Err::Incomplete(Needed::new(1)))); in separated_list1_test()
120 assert_eq!(multi(&b"abcdab"[..]), Err(Err::Incomplete(Needed::new(2)))); in many0_test()
121 assert_eq!(multi(&b"abcd"[..]), Err(Err::Incomplete(Needed::new(4)))); in many0_test()
122 assert_eq!(multi(&b""[..]), Err(Err::Incomplete(Needed::new(4)))); in many0_test()
152 assert_eq!(multi(d), Err(Err::Incomplete(Needed::new(2)))); in many1_test()
[all …]
/third_party/rust/crates/nom/src/bits/
Dmod.rs55 Err(Err::Incomplete(n)) => Err(Err::Incomplete(n.map(|u| u.get() / 8 + 1))), in bits()
102 Err(Err::Incomplete(Needed::Unknown)) => Err(Err::Incomplete(Needed::Unknown)), in bytes()
103 Err(Err::Incomplete(Needed::Size(sz))) => Err(match sz.get().checked_mul(8) { in bytes()
104 Some(v) => Err::Incomplete(Needed::new(v)), in bytes()
/third_party/rust/crates/nom/doc/archive/
Dupgrading_to_nom_1.md56 # Changes around `Incomplete`
58 …ch data has been consumed before a child parser returns `Incomplete`, and return an `Incomplete` w…
59 …ional parser (in `opt!` or `chain!`) will return `Incomplete` if the child parser returned `Incomp…
60 * `alt!` will now return `Incomplete` if one of its alternatives returns `Incomplete` instead of sk…
62 … you can wrap a parser with `complete!`. This combinator will transform `Incomplete` in an `Error`.
Dupgrading_to_nom_4.md21 …/// Incomplete contains a Needed, an enum that can represent a known quantity of input data, or un…
22 Incomplete(Needed)
55 Incomplete(Needed),
81 With this new design, the `Incomplete` case is now part of the error case, and we get a `Failure`
130 IResult::Incomplete(Needed::Size(1))
134 Err(Err::Incomplete(Needed::Size(1)))
143 Err(Err::Incomplete(needed)) => { ... },
148 ## Errors on `Incomplete` data size calculation
167 ## Dealing with `Incomplete` usage
170 parser will return `Incomplete` instead of returning a partial value that might be false.
[all …]
/third_party/rust/crates/nom/src/
Dinternal.rs40 Err(Err::Incomplete(_)) => { in finish()
99 Incomplete(Needed), enumerator
111 if let Err::Incomplete(_) = self { in is_incomplete()
124 Err::Incomplete(n) => Err::Incomplete(n), in map()
146 Err::Incomplete(n) => Err::Incomplete(n), in map_input()
160 Err::Incomplete(n) => Err::Incomplete(n), in map_input()
219 Err::Incomplete(Needed::Size(u)) => write!(f, "Parsing requires {} bytes/chars", u), in fmt()
220 Err::Incomplete(Needed::Unknown) => write!(f, "Parsing requires more data"), in fmt()
454 Err(Err::Incomplete(e)) => Err(Err::Incomplete(e)), in parse()
Dstr.rs47 Err(Err::Incomplete(_)) => (), in tagtr_incomplete()
144 Err(Err::Incomplete(_)) => (), in take_s_incomplete()
171 assert_eq!(f(&a[..]), Err(Err::Incomplete(Needed::new(1)))); in take_while()
172 assert_eq!(f(&b[..]), Err(Err::Incomplete(Needed::new(1)))); in take_while()
189 assert_eq!(f(&a[..]), Err(Err::Incomplete(Needed::new(1)))); in take_while1()
190 assert_eq!(f(&b[..]), Err(Err::Incomplete(Needed::new(1)))); in take_while1()
408 Err(Err::Incomplete(_)) => (), in take_until_incomplete()
494 Err(Err::Incomplete(_)) => (), in take_until_error()
Dtraits.rs509 None => Err(Err::Incomplete(Needed::new(1))), in split_at_position()
524 None => Err(Err::Incomplete(Needed::new(1))), in split_at_position1()
536 Err(Err::Incomplete(_)) => Ok(self.take_split(self.input_len())), in split_at_position_complete()
550 Err(Err::Incomplete(_)) => { in split_at_position1_complete()
571 None => Err(Err::Incomplete(Needed::new(1))), in split_at_position()
586 None => Err(Err::Incomplete(Needed::new(1))), in split_at_position1()
635 None => Err(Err::Incomplete(Needed::new(1))), in split_at_position()
651 None => Err(Err::Incomplete(Needed::new(1))), in split_at_position1()
711 Incomplete, enumerator
748 CompareResult::Incomplete in compare()
[all …]
/third_party/skia/third_party/externals/angle2/src/libANGLE/
DFramebuffer.cpp50 return FramebufferStatus::Incomplete(GL_FRAMEBUFFER_INCOMPLETE_VIEW_TARGETS_OVR, in CheckMultiviewStateMatchesForCompleteness()
55 return FramebufferStatus::Incomplete(GL_FRAMEBUFFER_INCOMPLETE_VIEW_TARGETS_OVR, in CheckMultiviewStateMatchesForCompleteness()
61 return FramebufferStatus::Incomplete(GL_FRAMEBUFFER_INCOMPLETE_VIEW_TARGETS_OVR, in CheckMultiviewStateMatchesForCompleteness()
76 return FramebufferStatus::Incomplete(GL_FRAMEBUFFER_INCOMPLETE_ATTACHMENT, in CheckAttachmentCompleteness()
82 return FramebufferStatus::Incomplete(GL_FRAMEBUFFER_INCOMPLETE_ATTACHMENT, in CheckAttachmentCompleteness()
96 return FramebufferStatus::Incomplete( in CheckAttachmentCompleteness()
108 return FramebufferStatus::Incomplete( in CheckAttachmentCompleteness()
123 return FramebufferStatus::Incomplete( in CheckAttachmentCompleteness()
142 return FramebufferStatus::Incomplete( in CheckAttachmentCompleteness()
155 return FramebufferStatus::Incomplete( in CheckAttachmentCompleteness()
[all …]
DMemoryProgramCache.cpp146 return angle::Result::Incomplete; in getProgram()
158 return angle::Result::Incomplete; in getProgram()
184 return angle::Result::Incomplete; in getProgram()
214 return angle::Result::Incomplete; in putProgram()
225 return angle::Result::Incomplete; in putProgram()
/third_party/python/Lib/ctypes/test/
Dtest_pep3118.py102 class Incomplete(Structure): class
198 (Incomplete, "B", (), Incomplete),
199 (POINTER(Incomplete), "&B", (), POINTER(Incomplete)),
/third_party/rust/crates/rust-cexpr/src/
Dlib.rs122 Err(nom::Err::Incomplete(n)) => Err(nom::Err::Incomplete(n)), in to_cexpr_result()
145 Err(nom::Err::Incomplete(n)) => Err(nom::Err::Incomplete(n)), in assert_full_parse()
Dexpr.rs103 let res: CResult<'_, &[u8]> = Err(crate::nom::Err::Incomplete(Needed::new($c.len())));
118 let res: CResult<'_, &[u8]> = Err(nom::Err::Incomplete(Needed::new(1))); in identifier_token()
141 Err(crate::nom::Err::Incomplete(Needed::new(min))) in one_of_punctuation()
409 None => Err(Err::Incomplete(Needed::new(1))), in identifier()
433 None => Err(Err::Incomplete(Needed::new(1))), in literal()
/third_party/rust/crates/bindgen/bindgen-tests/tests/headers/
Dtemplate.hpp106 class Incomplete;
113 Incomplete<T> inc;
117 class Incomplete { class
/third_party/rust/crates/nom/src/branch/
Dtests.rs102 assert_eq!(alt1(a), Err(Err::Incomplete(Needed::new(1)))); in alt_incomplete()
104 assert_eq!(alt1(a), Err(Err::Incomplete(Needed::new(1)))); in alt_incomplete()
110 assert_eq!(alt1(a), Err(Err::Incomplete(Needed::new(1)))); in alt_incomplete()
141 assert_eq!(perm(e), Err(Err::Incomplete(Needed::new(1)))); in permutation_test()
/third_party/rust/crates/nom/src/combinator/
Dmod.rs363 Err(Err::Incomplete(_)) => Err(Err::Error(E::from_error_kind(i, ErrorKind::Complete))), in complete()
676 Err(Err::Incomplete(e)) => Err(Err::Incomplete(e)), in into()
725 State::Incomplete(i) => Err(Err::Incomplete(i)), in finish()
755 Err(Err::Incomplete(i)) => { in next()
756 self.state = Some(State::Incomplete(i)); in next()
770 Incomplete(Needed), enumerator
Dtests.rs219 assert_eq!(opt_abcd(c), Err(Err::Incomplete(Needed::new(2)))); in opt_test()
229 assert_eq!(peek_tag(&b"ab"[..]), Err(Err::Incomplete(Needed::new(2)))); in peek_test()
246 assert_eq!(not_aaa(&b"aa"[..]), Err(Err::Incomplete(Needed::new(1)))); in not_test()
257 assert_eq!(test(&b"bcd"[..]), Err(Err::Incomplete(Needed::new(2)))); in verify_test()
/third_party/python/Modules/
Dbinascii.c66 PyObject *Incomplete; member
689 PyErr_SetString(state->Incomplete, in binascii_a2b_hqx_impl()
885 PyErr_SetString(state->Incomplete, ""); \ in binascii_rledecode_hqx_impl()
1627 state->Incomplete = PyErr_NewException("binascii.Incomplete", NULL, NULL); in binascii_exec()
1628 if (state->Incomplete == NULL) { in binascii_exec()
1631 Py_INCREF(state->Incomplete); in binascii_exec()
1632 result = PyModule_AddObject(module, "Incomplete", state->Incomplete); in binascii_exec()
1634 Py_DECREF(state->Incomplete); in binascii_exec()
1651 Py_VISIT(state->Incomplete); in binascii_traverse()
1660 Py_CLEAR(state->Incomplete); in binascii_clear()
/third_party/rust/crates/nom/
DCHANGELOG.md359 …(I, O), E>` by removing the distinction between `Error` and `Failure` and panicking on `Incomplete`
659 - `Incomplete` now returns the additional data size needed, not the total data size needed
667 …rs will now return `Incomplete` if the reach the end of input without an error of the child parser…
672 …dicate if we can get more input data later (related to streaming parsers and `Incomplete` handling)
675 …es consider there will be no more refill of the input. They fixed the `Incomplete` related issues …
695 - `take_until_and_consume1!` returns the correct Incomplete(Needed) amount
720 - there were cases where `alt_complete` could return `Incomplete`
786 - Chris Pick for some `Incomplete` related refactors
802 - `escaped`, `separated_list` and `separated_nonempty_list` can now return `Incomplete` when necess…
836 - when calculating how much data is needed in `IResult::Incomplete`, the addition could overflow (i…
[all …]
/third_party/json/docs/mkdocs/docs/features/binary_formats/
Dbson.md33 !!! warning "Incomplete mapping"
81 !!! warning "Incomplete mapping"

1234567