Lines Matching defs:input

1 /*[clinic input]
6 "encode($self, /, input, errors=None)\n"
9 "Return an encoded string version of `input\'.\n"
21 PyObject *input,
28 static const char * const _keywords[] = {"input", "errors", NULL};
32 PyObject *input;
39 input = args[0];
62 return_value = _multibytecodec_MultibyteCodec_encode_impl(self, input, errors);
69 "decode($self, /, input, errors=None)\n"
72 "Decodes \'input\'.\n"
84 Py_buffer *input,
91 static const char * const _keywords[] = {"input", "errors", NULL};
95 Py_buffer input = {NULL, NULL};
102 if (PyObject_GetBuffer(args[0], &input, PyBUF_SIMPLE) != 0) {
105 if (!PyBuffer_IsContiguous(&input, 'C')) {
106 _PyArg_BadArgument("decode", "argument 'input'", "contiguous buffer", args[0]);
131 return_value = _multibytecodec_MultibyteCodec_decode_impl(self, &input, errors);
134 /* Cleanup for input */
135 if (input.obj) {
136 PyBuffer_Release(&input);
143 "encode($self, /, input, final=False)\n"
152 PyObject *input,
159 static const char * const _keywords[] = {"input", "final", NULL};
163 PyObject *input;
170 input = args[0];
179 return_value = _multibytecodec_MultibyteIncrementalEncoder_encode_impl(self, input, final);
249 "decode($self, /, input, final=False)\n"
258 Py_buffer *input,
265 static const char * const _keywords[] = {"input", "final", NULL};
269 Py_buffer input = {NULL, NULL};
276 if (PyObject_GetBuffer(args[0], &input, PyBUF_SIMPLE) != 0) {
279 if (!PyBuffer_IsContiguous(&input, 'C')) {
280 _PyArg_BadArgument("decode", "argument 'input'", "contiguous buffer", args[0]);
291 return_value = _multibytecodec_MultibyteIncrementalDecoder_decode_impl(self, &input, final);
294 /* Cleanup for input */
295 if (input.obj) {
296 PyBuffer_Release(&input);
573 /*[clinic end generated code: output=9e4e3da5ca3c8288 input=a9049054013a1b77]*/