Home
last modified time | relevance | path

Searched refs:n_chars (Results 1 – 4 of 4) sorted by relevance

/external/python/cpython2/Objects/stringlib/
Dlocaleutil.h52 Py_ssize_t n_chars, Py_ssize_t n_zeros, const char* thousands_sep, in fill() argument
74 *buffer_end -= n_chars; in fill()
75 *digits_end -= n_chars; in fill()
76 memcpy(*buffer_end, *digits_end, n_chars * sizeof(STRINGLIB_CHAR)); in fill()
130 Py_ssize_t n_chars; in _Py_InsertThousandsGrouping() local
147 n_chars = MAX(0, MIN(remaining, l)); in _Py_InsertThousandsGrouping()
152 count += (use_separator ? thousands_sep_len : 0) + n_zeros + n_chars; in _Py_InsertThousandsGrouping()
156 fill(&digits_end, &buffer_end, n_chars, n_zeros, in _Py_InsertThousandsGrouping()
163 remaining -= n_chars; in _Py_InsertThousandsGrouping()
177 n_chars = MAX(0, MIN(remaining, l)); in _Py_InsertThousandsGrouping()
[all …]
/external/python/cpython3/Objects/stringlib/
Dlocaleutil.h48 Py_ssize_t n_chars, Py_ssize_t n_zeros, in InsertThousandsGrouping_fill() argument
70 *buffer_pos -= n_chars; in InsertThousandsGrouping_fill()
71 *digits_pos -= n_chars; in InsertThousandsGrouping_fill()
74 n_chars); in InsertThousandsGrouping_fill()
/external/libevent/
Dhttp.c4616 ev_ssize_t n_chars = eos-s-2; in bracket_addr_ok() local
4618 if (n_chars >= 64) /* way too long */ in bracket_addr_ok()
4620 memcpy(buf, s+1, n_chars); in bracket_addr_ok()
4621 buf[n_chars]='\0'; in bracket_addr_ok()
/external/python/cpython3/Objects/
Dunicodeobject.c9596 Py_ssize_t n_chars; in _PyUnicode_InsertThousandsGrouping() local
9626 n_chars = Py_MAX(0, Py_MIN(remaining, len)); in _PyUnicode_InsertThousandsGrouping()
9631 count += (use_separator ? thousands_sep_len : 0) + n_zeros + n_chars; in _PyUnicode_InsertThousandsGrouping()
9636 n_chars, n_zeros, in _PyUnicode_InsertThousandsGrouping()
9643 remaining -= n_chars; in _PyUnicode_InsertThousandsGrouping()
9657 n_chars = Py_MAX(0, Py_MIN(remaining, len)); in _PyUnicode_InsertThousandsGrouping()
9660 count += (use_separator ? thousands_sep_len : 0) + n_zeros + n_chars; in _PyUnicode_InsertThousandsGrouping()
9665 n_chars, n_zeros, in _PyUnicode_InsertThousandsGrouping()