Home
last modified time | relevance | path

Searched refs:maxchar (Results 1 – 10 of 10) sorted by relevance

/third_party/python/Python/
Dformatter_unicode.c474 const InternalFormatSpec *format, Py_UCS4 *maxchar) in calc_number_widths() argument
553 *maxchar = Py_MAX(*maxchar, grouping_maxchar); in calc_number_widths()
585 *maxchar = Py_MAX(*maxchar, format->fill_char); in calc_number_widths()
588 *maxchar = Py_MAX(*maxchar, PyUnicode_MAX_CHAR_VALUE(locale->decimal_point)); in calc_number_widths()
769 Py_UCS4 maxchar; in format_string_internal() local
817 maxchar = writer->maxchar; in format_string_internal()
819 maxchar = Py_MAX(maxchar, format->fill_char); in format_string_internal()
820 if (PyUnicode_MAX_CHAR_VALUE(value) > maxchar) { in format_string_internal()
822 maxchar = Py_MAX(maxchar, valmaxchar); in format_string_internal()
826 if (_PyUnicodeWriter_Prepare(writer, total, maxchar) == -1) in format_string_internal()
[all …]
Dcompile.c322 Py_UCS4 maxchar; in _Py_Mangle() local
362 maxchar = PyUnicode_MAX_CHAR_VALUE(ident); in _Py_Mangle()
363 if (PyUnicode_MAX_CHAR_VALUE(privateobj) > maxchar) in _Py_Mangle()
364 maxchar = PyUnicode_MAX_CHAR_VALUE(privateobj); in _Py_Mangle()
366 result = PyUnicode_New(1 + nlen + plen, maxchar); in _Py_Mangle()
/third_party/python/Objects/stringlib/
Dlocaleutil.h50 Py_UCS4 *maxchar) in InsertThousandsGrouping_fill() argument
54 if (*maxchar == 127 && thousands_sep) { in InsertThousandsGrouping_fill()
56 *maxchar = Py_MAX(*maxchar, maxchar2); in InsertThousandsGrouping_fill()
/third_party/python/Objects/
Dunicodeobject.c590 Py_UCS4 maxchar = 0; in _PyUnicode_CheckConsistency() local
598 if (ch > maxchar) in _PyUnicode_CheckConsistency()
599 maxchar = ch; in _PyUnicode_CheckConsistency()
603 CHECK(maxchar >= 128); in _PyUnicode_CheckConsistency()
604 CHECK(maxchar <= 255); in _PyUnicode_CheckConsistency()
607 CHECK(maxchar < 128); in _PyUnicode_CheckConsistency()
610 CHECK(maxchar >= 0x100); in _PyUnicode_CheckConsistency()
611 CHECK(maxchar <= 0xFFFF); in _PyUnicode_CheckConsistency()
614 CHECK(maxchar >= 0x10000); in _PyUnicode_CheckConsistency()
615 CHECK(maxchar <= MAX_UNICODE); in _PyUnicode_CheckConsistency()
[all …]
/third_party/python/Tools/unicode/
Dgencodec.py225 maxchar = 0
240 maxchar = max(maxchar, ord(mapchar))
248 if maxchar < 256:
/third_party/python/Include/cpython/
Dunicodeobject.h462 Py_UCS4 maxchar /* maximum code point value in the string */
607 Py_UCS4 maxchar; member
638 (((MAXCHAR) <= (WRITER)->maxchar \
649 Py_ssize_t length, Py_UCS4 maxchar);
1042 Py_UCS4 *maxchar);
/third_party/python/Lib/test/
Dtest_sys.py1433 maxchar = ord(max(s))
1434 if maxchar < 128:
1436 elif maxchar < 256:
1438 elif maxchar < 65536:
/third_party/python/Modules/
D_json.c229 Py_UCS4 maxchar; in escape_unicode() local
234 maxchar = PyUnicode_MAX_CHAR_VALUE(pystr); in escape_unicode()
261 rval = PyUnicode_New(output_size, maxchar); in escape_unicode()
/third_party/python/Doc/c-api/
Dunicode.rst404 .. c:function:: PyObject* PyUnicode_New(Py_ssize_t size, Py_UCS4 maxchar)
406 Create a new Unicode object. *maxchar* should be the true maximum code point
/third_party/python/Doc/data/
Drefcounts.dat2739 PyUnicode_New:Py_UCS4:maxchar::