Home
last modified time | relevance | path

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

/external/python/cpython3/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
811 maxchar = writer->maxchar; in format_string_internal()
813 maxchar = Py_MAX(maxchar, format->fill_char); in format_string_internal()
814 if (PyUnicode_MAX_CHAR_VALUE(value) > maxchar) { in format_string_internal()
816 maxchar = Py_MAX(maxchar, valmaxchar); in format_string_internal()
820 if (_PyUnicodeWriter_Prepare(writer, total, maxchar) == -1) in format_string_internal()
[all …]
Dcompile.c237 Py_UCS4 maxchar; in _Py_Mangle() local
277 maxchar = PyUnicode_MAX_CHAR_VALUE(ident); in _Py_Mangle()
278 if (PyUnicode_MAX_CHAR_VALUE(privateobj) > maxchar) in _Py_Mangle()
279 maxchar = PyUnicode_MAX_CHAR_VALUE(privateobj); in _Py_Mangle()
281 result = PyUnicode_New(1 + nlen + plen, maxchar); in _Py_Mangle()
/external/python/cpython3/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()
/external/python/cpython3/Objects/
Dunicodeobject.c596 Py_UCS4 maxchar = 0; in _PyUnicode_CheckConsistency() local
604 if (ch > maxchar) in _PyUnicode_CheckConsistency()
605 maxchar = ch; in _PyUnicode_CheckConsistency()
609 CHECK(maxchar >= 128); in _PyUnicode_CheckConsistency()
610 CHECK(maxchar <= 255); in _PyUnicode_CheckConsistency()
613 CHECK(maxchar < 128); in _PyUnicode_CheckConsistency()
616 CHECK(maxchar >= 0x100); in _PyUnicode_CheckConsistency()
617 CHECK(maxchar <= 0xFFFF); in _PyUnicode_CheckConsistency()
620 CHECK(maxchar >= 0x10000); in _PyUnicode_CheckConsistency()
621 CHECK(maxchar <= MAX_UNICODE); in _PyUnicode_CheckConsistency()
[all …]
/external/python/cpython3/Tools/unicode/
Dgencodec.py225 maxchar = 0
240 maxchar = max(maxchar, ord(mapchar))
248 if maxchar < 256:
/external/python/cpython3/Include/cpython/
Dunicodeobject.h462 Py_UCS4 maxchar /* maximum code point value in the string */
610 Py_UCS4 maxchar; member
641 (((MAXCHAR) <= (WRITER)->maxchar \
652 Py_ssize_t length, Py_UCS4 maxchar);
1055 Py_UCS4 *maxchar);
/external/python/cpython3/Lib/test/
Dtest_sys.py1349 maxchar = ord(max(s))
1350 if maxchar < 128:
1352 elif maxchar < 256:
1354 elif maxchar < 65536:
/external/python/cpython3/Modules/
D_json.c230 Py_UCS4 maxchar; in escape_unicode() local
235 maxchar = PyUnicode_MAX_CHAR_VALUE(pystr); in escape_unicode()
262 rval = PyUnicode_New(output_size, maxchar); in escape_unicode()
/external/python/cpython3/Doc/c-api/
Dunicode.rst405 .. c:function:: PyObject* PyUnicode_New(Py_ssize_t size, Py_UCS4 maxchar)
407 Create a new Unicode object. *maxchar* should be the true maximum code point
/external/python/cpython3/Doc/data/
Drefcounts.dat2762 PyUnicode_New:Py_UCS4:maxchar::