Lines Matching refs:wlen
390 decode_ascii(const char *arg, wchar_t **wstr, size_t *wlen,
420 if (wlen) {
421 *wlen = in - (unsigned char*)arg;
433 if (wlen != NULL) {
434 *wlen = out - res;
442 decode_current_locale(const char* arg, wchar_t **wstr, size_t *wlen,
480 if (wlen != NULL) {
481 *wlen = count;
542 if (wlen != NULL) {
543 *wlen = out - res;
550 if (wlen) {
551 *wlen = in - (unsigned char*)arg;
561 return decode_ascii(arg, wstr, wlen, reason, errors);
575 *wstr (use PyMem_RawFree() to free the memory). If wlen is not NULL, write
576 the number of wide characters excluding the null character into *wlen.
580 On decoding error, return -2. If wlen is not NULL, write the start of
581 invalid byte sequence in the input string into *wlen. If reason is not NULL,
589 _Py_DecodeLocaleEx(const char* arg, wchar_t **wstr, size_t *wlen,
595 return _Py_DecodeUTF8Ex(arg, strlen(arg), wstr, wlen, reason,
598 return decode_current_locale(arg, wstr, wlen, reason, errors);
603 return _Py_DecodeUTF8Ex(arg, strlen(arg), wstr, wlen, reason,
611 return _Py_DecodeUTF8Ex(arg, strlen(arg), wstr, wlen, reason,
622 return decode_ascii(arg, wstr, wlen, reason, errors);
626 return decode_current_locale(arg, wstr, wlen, reason, errors);
651 Py_DecodeLocale(const char* arg, size_t *wlen)
654 int res = _Py_DecodeLocaleEx(arg, &wstr, wlen,
659 if (wlen != NULL) {
660 *wlen = (size_t)res;