Home
last modified time | relevance | path

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

/external/python/cpython3/Python/
Dformatter_unicode.c468 const InternalFormatSpec *format, Py_UCS4 *maxchar) in calc_number_widths() argument
544 *maxchar = Py_MAX(*maxchar, grouping_maxchar); in calc_number_widths()
578 *maxchar = Py_MAX(*maxchar, format->fill_char); in calc_number_widths()
581 *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.c227 Py_UCS4 maxchar; in _Py_Mangle() local
267 maxchar = PyUnicode_MAX_CHAR_VALUE(ident); in _Py_Mangle()
268 if (PyUnicode_MAX_CHAR_VALUE(privateobj) > maxchar) in _Py_Mangle()
269 maxchar = PyUnicode_MAX_CHAR_VALUE(privateobj); in _Py_Mangle()
271 result = PyUnicode_New(1 + nlen + plen, maxchar); in _Py_Mangle()
/external/python/cpython3/Objects/
Dunicodeobject.c440 Py_UCS4 maxchar = 0; in _PyUnicode_CheckConsistency() local
448 if (ch > maxchar) in _PyUnicode_CheckConsistency()
449 maxchar = ch; in _PyUnicode_CheckConsistency()
453 assert(maxchar >= 128); in _PyUnicode_CheckConsistency()
454 assert(maxchar <= 255); in _PyUnicode_CheckConsistency()
457 assert(maxchar < 128); in _PyUnicode_CheckConsistency()
460 assert(maxchar >= 0x100); in _PyUnicode_CheckConsistency()
461 assert(maxchar <= 0xFFFF); in _PyUnicode_CheckConsistency()
464 assert(maxchar >= 0x10000); in _PyUnicode_CheckConsistency()
465 assert(maxchar <= MAX_UNICODE); in _PyUnicode_CheckConsistency()
[all …]
/external/python/cpython3/Tools/unicode/
Dgencodec.py226 maxchar = 0
241 maxchar = max(maxchar, ord(mapchar))
249 if maxchar < 256:
/external/python/cpython3/Include/
Dunicodeobject.h588 Py_UCS4 maxchar /* maximum code point value in the string */
885 Py_UCS4 maxchar; member
916 (((MAXCHAR) <= (WRITER)->maxchar \
927 Py_ssize_t length, Py_UCS4 maxchar);
2153 Py_UCS4 *maxchar);
/external/python/cpython3/Lib/test/
Dtest_sys.py1118 maxchar = ord(max(s))
1119 if maxchar < 128:
1121 elif maxchar < 256:
1123 elif maxchar < 65536:
/external/python/cpython3/Modules/
D_json.c237 Py_UCS4 maxchar; in escape_unicode() local
242 maxchar = PyUnicode_MAX_CHAR_VALUE(pystr); in escape_unicode()
269 rval = PyUnicode_New(output_size, maxchar); in escape_unicode()
/external/python/cpython3/Doc/c-api/
Dunicode.rst389 .. c:function:: PyObject* PyUnicode_New(Py_ssize_t size, Py_UCS4 maxchar)
391 Create a new Unicode object. *maxchar* should be the true maximum code point