/third_party/python/Lib/encodings/ |
H A D | quopri_codec.py | 10 def quopri_encode(input, errors='strict'): 11 assert errors == 'strict' 17 def quopri_decode(input, errors='strict'): 18 assert errors == 'strict' 25 def encode(self, input, errors='strict'): 26 return quopri_encode(input, errors) 27 def decode(self, input, errors='strict'): 28 return quopri_decode(input, errors) 32 return quopri_encode(input, self.errors)[0] 36 return quopri_decode(input, self.errors)[ [all...] |
H A D | hex_codec.py | 13 def hex_encode(input, errors='strict'): 14 assert errors == 'strict' 17 def hex_decode(input, errors='strict'): 18 assert errors == 'strict' 22 def encode(self, input, errors='strict'): 23 return hex_encode(input, errors) 24 def decode(self, input, errors='strict'): 25 return hex_decode(input, errors) 29 assert self.errors == 'strict' 34 assert self.errors [all...] |
H A D | base64_codec.py | 13 def base64_encode(input, errors='strict'): 14 assert errors == 'strict' 17 def base64_decode(input, errors='strict'): 18 assert errors == 'strict' 22 def encode(self, input, errors='strict'): 23 return base64_encode(input, errors) 24 def decode(self, input, errors='strict'): 25 return base64_decode(input, errors) 29 assert self.errors == 'strict' 34 assert self.errors [all...] |
H A D | punycode.py | 127 def decode_generalized_number(extended, extpos, bias, errors): 136 if errors == "strict": 144 elif errors == "strict": 157 def insertion_sort(base, extended, errors): 165 bias, errors) 173 if errors == "strict": 182 def punycode_decode(text, errors): 192 base = str(text[:pos], "ascii", errors) 194 return insertion_sort(base, extended, errors) 200 def encode(self, input, errors [all...] |
H A D | uu_codec.py | 16 def uu_encode(input, errors='strict', filename='<data>', mode=0o666): 17 assert errors == 'strict' 37 def uu_decode(input, errors='strict'): 38 assert errors == 'strict' 71 def encode(self, input, errors='strict'): 72 return uu_encode(input, errors) 74 def decode(self, input, errors='strict'): 75 return uu_decode(input, errors) 79 return uu_encode(input, self.errors)[0] 83 return uu_decode(input, self.errors)[ [all...] |
/third_party/libsnd/src/ |
H A D | test_log_printf.c | 68 { int errors = 0 ; in compare_strings_or_die() local 75 errors ++ ; in compare_strings_or_die() 78 return errors ; in compare_strings_or_die() 85 int k, errors = 0 ; in test_log_printf() local 93 CMP_0_ARGS (__LINE__, errors, " ->%%<- ") ; in test_log_printf() 97 CMP_6_ARGS (__LINE__, errors, "int A : %d, % d, %4d, % 4d, %04d, % 04d", int_values [k]) ; in test_log_printf() 100 CMP_5_ARGS (__LINE__, errors, "int B : %+d, %+4d, %+04d, %-d, %-4d", int_values [k]) ; in test_log_printf() 103 CMP_2_ARGS (__LINE__, errors, "int C : %- d, %- 4d", int_values [k]) ; in test_log_printf() 107 CMP_4_ARGS (__LINE__, errors, "D : %u, %4u, %04u, %0u", int_values [k]) ; in test_log_printf() 111 CMP_4_ARGS (__LINE__, errors, " in test_log_printf() [all...] |
/third_party/gn/src/gn/ |
H A D | header_checker_unittest.cc | 203 std::vector<Err> errors; in TEST_F() local 205 &errors); in TEST_F() 206 EXPECT_GT(errors.size(), 0); in TEST_F() 209 errors.clear(); in TEST_F() 212 &errors); in TEST_F() 213 EXPECT_EQ(errors.size(), 0); in TEST_F() 216 errors.clear(); in TEST_F() 219 &errors); in TEST_F() 220 EXPECT_EQ(errors.size(), 0); in TEST_F() 221 errors in TEST_F() 300 std::vector<Err> errors; TEST_F() local 347 std::vector<Err> errors; TEST_F() local 463 std::vector<Err> errors; TEST_F() local [all...] |
/third_party/rust/crates/minimal-lexical/src/ |
H A D | bellerophon.rs | 76 // Track errors to as a factor of unit in last-precision. in bellerophon() 77 let mut errors: u32 = 0; in bellerophon() variables 79 errors += error_halfscale(); in bellerophon() 94 errors += error_halfscale(); in bellerophon() 105 if errors > 0 { in bellerophon() 106 errors += 1; in bellerophon() 108 errors += error_halfscale(); in bellerophon() 110 // Normalize the floating point (and the errors). in bellerophon() 112 errors <<= shift; in bellerophon() 120 // Too many errors accumulate in bellerophon() [all...] |
/third_party/rust/crates/serde/serde_derive_internals/src/ |
H A D | ctxt.rs | 6 /// A type to collect errors together and format them. 15 errors: RefCell<Option<Vec<syn::Error>>>, 21 /// This object contains no errors, but will still trigger a panic if it is not `check`ed. 24 errors: RefCell::new(Some(Vec::new())), in new() 32 self.errors in error_spanned_by() 40 /// Add one of Syn's parse errors. 42 self.errors.borrow_mut().as_mut().unwrap().push(err); in syn_error() 45 /// Consume this object, producing a formatted error string if there are errors. 47 let mut errors = self.errors in check() variables [all...] |
/third_party/rust/crates/serde/serde_derive/src/internals/ |
H A D | ctxt.rs | 6 /// A type to collect errors together and format them. 15 errors: RefCell<Option<Vec<syn::Error>>>, 21 /// This object contains no errors, but will still trigger a panic if it is not `check`ed. 24 errors: RefCell::new(Some(Vec::new())), in new() 32 self.errors in error_spanned_by() 40 /// Add one of Syn's parse errors. 42 self.errors.borrow_mut().as_mut().unwrap().push(err); in syn_error() 45 /// Consume this object, producing a formatted error string if there are errors. 47 let mut errors = self.errors in check() variables [all...] |
/third_party/python/Include/ |
H A D | codecs.h | 80 encoding using the error handling method defined by errors. errors 90 const char *errors 96 encoding using the error handling method defined by errors. errors 106 const char *errors 131 const char *errors 137 const char *errors 145 const char *errors 150 const char *errors [all...] |
H A D | unicodeobject.h | 121 decoding if the errors argument is set to "replace". Note: the 238 const char *errors /* error handling */ 332 Many of these APIs take two arguments encoding and errors. These 333 parameters encoding and errors have the same semantics as the ones 338 Error handling is set by errors which may also be set to NULL 362 const char *errors /* error handling */ 375 const char *errors /* error handling */ 388 const char *errors /* error handling */ 402 const char *errors /* error handling */ 411 const char *errors /* erro [all...] |
/third_party/python/Lib/test/test_email/ |
H A D | test__encoded_words.py | 3 from email import errors namespace 37 self._test(b'dmk', b'vi', [errors.InvalidBase64PaddingDefect]) 39 self._test(b'dg', b'v', [errors.InvalidBase64PaddingDefect]) 42 self._test(b'dm\x01k===', b'vi', [errors.InvalidBase64CharactersDefect]) 45 self._test(b'dm\x01k', b'vi', [errors.InvalidBase64CharactersDefect, 46 errors.InvalidBase64PaddingDefect]) 49 self._test(b'abcde', b'abcde', [errors.InvalidBase64LengthDefect]) 90 defects = [errors.UndecodableBytesDefect]) 97 errors.InvalidBase64CharactersDefect, 98 errors [all...] |
/third_party/curl/tests/ |
H A D | test1140.pl | 69 $errors++; 73 $errors++; 80 $errors++; 84 $errors++; 90 $errors++; 99 $errors++; 112 print "OK\n" if(!$errors); 114 exit $errors?1:0;
|
/third_party/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/message2/ |
H A D | TestCase.java | 22 final List<String> errors; field in TestCase 33 result.add("errors: " + errors); in toString() 45 this.errors = builder.errors == null ? new ArrayList<String>() : builder.errors; in TestCase() 56 private List<String> errors; field in TestCase.Builder 82 public TestCase.Builder errors(String ... errors) { in errors() argument 83 this.errors in errors() [all...] |
/third_party/python/Lib/ |
H A D | fileinput.py | 79 encoding=None, errors=None): 90 encoding=encoding, errors=errors) 185 mode="r", openhook=None, encoding=None, errors=None): 209 self._errors = errors 339 encoding=encoding, errors=self._errors) 344 encoding=encoding, errors=self._errors) 352 encoding=encoding, errors=self._errors) 368 self._filename, self._mode, encoding=self._encoding, errors=self._errors) 370 self._file = open(self._filename, self._mode, encoding=encoding, errors [all...] |
/third_party/python/Lib/urllib/ |
H A D | parse.py | 112 errors=_implicit_errors): 113 return obj.encode(encoding, errors) 116 errors=_implicit_errors): 117 return tuple(x.decode(encoding, errors) if x else '' for x in args) 140 def encode(self, encoding='ascii', errors='strict'): 141 return self._encoded_counterpart(*(x.encode(encoding, errors) for x in self)) 148 def decode(self, encoding='ascii', errors='strict'): 149 return self._decoded_counterpart(*(x.decode(encoding, errors) for x in self)) 659 def unquote(string, encoding='utf-8', errors='replace'): 661 encoding and errors parameter [all...] |
/third_party/python/Modules/cjkcodecs/ |
H A D | multibytecodec.c | 66 static char *incnewkwarglist[] = {"errors", NULL}; 67 static char *streamkwarglist[] = {"stream", "errors", NULL}; 101 internal_error_callback(const char *errors) in internal_error_callback() argument 103 if (errors == NULL || strcmp(errors, "strict") == 0) in internal_error_callback() 105 else if (strcmp(errors, "ignore") == 0) in internal_error_callback() 107 else if (strcmp(errors, "replace") == 0) in internal_error_callback() 110 return PyUnicode_FromString(errors); in internal_error_callback() 114 call_error_callback(PyObject *errors, PyObject *exc) in call_error_callback() argument 119 assert(PyUnicode_Check(errors)); in call_error_callback() 135 const char *errors; codecctx_errors_get() local 224 multibytecodec_encerror(MultibyteCodec *codec, MultibyteCodec_State *state, MultibyteEncodeBuffer *buf, PyObject *errors, Py_ssize_t e) multibytecodec_encerror() argument 379 multibytecodec_decerror(MultibyteCodec *codec, MultibyteCodec_State *state, MultibyteDecodeBuffer *buf, PyObject *errors, Py_ssize_t e) multibytecodec_decerror() argument 483 multibytecodec_encode(MultibyteCodec *codec, MultibyteCodec_State *state, PyObject *text, Py_ssize_t *inpos_t, PyObject *errors, int flags) multibytecodec_encode() argument 584 _multibytecodec_MultibyteCodec_encode_impl(MultibyteCodecObject *self, PyObject *input, const char *errors) _multibytecodec_MultibyteCodec_encode_impl() argument 653 _multibytecodec_MultibyteCodec_decode_impl(MultibyteCodecObject *self, Py_buffer *input, const char *errors) _multibytecodec_MultibyteCodec_decode_impl() argument 1035 char *errors = NULL; mbiencoder_new() local 1310 char *errors = NULL; mbidecoder_new() local 1627 char *errors = NULL; mbstreamreader_new() local 1851 char *errors = NULL; mbstreamwriter_new() local [all...] |
/third_party/node/deps/undici/src/lib/fetch/ |
H A D | webidl.js | 10 webidl.errors = {} 12 webidl.errors.exception = function (message) { 16 webidl.errors.conversionFailed = function (context) { 22 return webidl.errors.exception({ 28 webidl.errors.invalidArgument = function (context) { 29 return webidl.errors.exception({ 46 throw webidl.errors.exception({ 55 throw webidl.errors.exception({ 133 throw webidl.errors.exception({ 145 throw webidl.errors [all...] |
/third_party/rust/crates/cxx/gen/cmd/src/gen/ |
H A D | mod.rs | 138 let ref mut errors = Errors::new(); 143 errors, 151 if cfg::eval(errors, cfg_errors, opt.cfg_evaluator.as_ref(), &cfg) { 155 errors, 163 cfg::strip(errors, cfg_errors, opt.cfg_evaluator.as_ref(), apis); 164 errors.propagate()?; 166 let ref types = Types::collect(errors, apis); 167 check::precheck(errors, apis, opt); 168 errors.propagate()?; 171 check::typecheck(errors, api [all...] |
/third_party/rust/crates/cxx/gen/src/ |
H A D | mod.rs | 138 let ref mut errors = Errors::new(); 143 errors, 151 if cfg::eval(errors, cfg_errors, opt.cfg_evaluator.as_ref(), &cfg) { 155 errors, 163 cfg::strip(errors, cfg_errors, opt.cfg_evaluator.as_ref(), apis); 164 errors.propagate()?; 166 let ref types = Types::collect(errors, apis); 167 check::precheck(errors, apis, opt); 168 errors.propagate()?; 171 check::typecheck(errors, api [all...] |
/third_party/rust/crates/cxx/gen/lib/src/gen/ |
H A D | mod.rs | 138 let ref mut errors = Errors::new(); 143 errors, 151 if cfg::eval(errors, cfg_errors, opt.cfg_evaluator.as_ref(), &cfg) { 155 errors, 163 cfg::strip(errors, cfg_errors, opt.cfg_evaluator.as_ref(), apis); 164 errors.propagate()?; 166 let ref types = Types::collect(errors, apis); 167 check::precheck(errors, apis, opt); 168 errors.propagate()?; 171 check::typecheck(errors, api [all...] |
/third_party/rust/crates/cxx/gen/build/src/gen/ |
H A D | mod.rs | 138 let ref mut errors = Errors::new(); 143 errors, 151 if cfg::eval(errors, cfg_errors, opt.cfg_evaluator.as_ref(), &cfg) { 155 errors, 163 cfg::strip(errors, cfg_errors, opt.cfg_evaluator.as_ref(), apis); 164 errors.propagate()?; 166 let ref types = Types::collect(errors, apis); 167 check::precheck(errors, apis, opt); 168 errors.propagate()?; 171 check::typecheck(errors, api [all...] |
/third_party/icu/icu4j/main/classes/core/src/com/ibm/icu/text/ |
H A D | IDNA.java | 160 * The label might be modified according to the types of errors. 161 * Labels with severe errors will be left in (or turned into) their Unicode form. 174 * The label might be modified according to the types of errors. 188 * The domain name might be modified according to the types of errors. 189 * Labels with severe errors will be left in (or turned into) their Unicode form. 202 * The domain name might be modified according to the types of errors. 213 * Output container for IDNA processing errors. 223 errors=EnumSet.noneOf(Error.class); in Info() 230 * Were there IDNA processing errors? 231 * @return true if there were processing errors 264 private EnumSet<Error> errors, labelErrors; global() field in IDNA.Info 286 hasCertainErrors(Info info, EnumSet<Error> errors) hasCertainErrors() argument 294 hasCertainLabelErrors(Info info, EnumSet<Error> errors) hasCertainLabelErrors() argument [all...] |
/third_party/icu/ohos_icu4j/src/main/java/ohos/global/icu/text/ |
H A D | IDNA.java | 153 * The label might be modified according to the types of errors. 154 * Labels with severe errors will be left in (or turned into) their Unicode form. 166 * The label might be modified according to the types of errors. 179 * The domain name might be modified according to the types of errors. 180 * Labels with severe errors will be left in (or turned into) their Unicode form. 192 * The domain name might be modified according to the types of errors. 202 * Output container for IDNA processing errors. 210 errors=EnumSet.noneOf(Error.class); in Info() 217 * Were there IDNA processing errors? 218 * @return true if there were processing errors 248 private EnumSet<Error> errors, labelErrors; global() field in IDNA.Info 272 hasCertainErrors(Info info, EnumSet<Error> errors) hasCertainErrors() argument 281 hasCertainLabelErrors(Info info, EnumSet<Error> errors) hasCertainLabelErrors() argument [all...] |