Home
last modified time | relevance | path

Searched refs:max_char_size (Results 1 – 5 of 5) sorted by relevance

/third_party/python/Objects/stringlib/
Dcodecs.h276 const Py_ssize_t max_char_size = 2; in STRINGLIB() local
278 const Py_ssize_t max_char_size = 3; in STRINGLIB() local
280 const Py_ssize_t max_char_size = 4; in STRINGLIB() local
284 if (size > PY_SSIZE_T_MAX / max_char_size) { in STRINGLIB()
291 p = _PyBytesWriter_Alloc(writer, size * max_char_size); in STRINGLIB()
351 writer->min_size -= max_char_size * (endpos - startpos); in STRINGLIB()
361 writer->min_size -= max_char_size * (endpos - startpos); in STRINGLIB()
391 writer->min_size -= max_char_size * (newpos - startpos); in STRINGLIB()
/third_party/node/src/
Dnode_i18n.h80 size_t max_char_size() const;
Dnode_i18n.cc157 const uint32_t limit = source_length * to.max_char_size(); in Transcode()
387 size_t Converter::max_char_size() const { in max_char_size() function in node::i18n::Converter
/third_party/boost/libs/locale/src/icu/
Duconv.hpp77 max_len_=cvt.max_char_size(); in icu_std_converter()
123 int max_char_size() in max_char_size() function
/third_party/python/Objects/
Dunicodeobject.c5492 const Py_ssize_t max_char_size = 4; in _Py_EncodeUTF8Ex() local
5513 if (len > PY_SSIZE_T_MAX / max_char_size - 1) { in _Py_EncodeUTF8Ex()
5518 bytes = PyMem_RawMalloc((len + 1) * max_char_size); in _Py_EncodeUTF8Ex()
5521 bytes = PyMem_Malloc((len + 1) * max_char_size); in _Py_EncodeUTF8Ex()