mirror of
https://github.com/python/cpython.git
synced 2025-08-13 13:29:13 +00:00
4 space indentation
This commit is contained in:
parent
ead6b53659
commit
c0b95d18fa
1 changed files with 13 additions and 13 deletions
|
@ -10095,19 +10095,19 @@ static Py_ssize_t
|
||||||
anylib_count(int kind, PyObject *sstr, void* sbuf, Py_ssize_t slen,
|
anylib_count(int kind, PyObject *sstr, void* sbuf, Py_ssize_t slen,
|
||||||
PyObject *str1, void *buf1, Py_ssize_t len1, Py_ssize_t maxcount)
|
PyObject *str1, void *buf1, Py_ssize_t len1, Py_ssize_t maxcount)
|
||||||
{
|
{
|
||||||
switch (kind) {
|
switch (kind) {
|
||||||
case PyUnicode_1BYTE_KIND:
|
case PyUnicode_1BYTE_KIND:
|
||||||
if (PyUnicode_IS_ASCII(sstr) && PyUnicode_IS_ASCII(str1))
|
if (PyUnicode_IS_ASCII(sstr) && PyUnicode_IS_ASCII(str1))
|
||||||
return asciilib_count(sbuf, slen, buf1, len1, maxcount);
|
return asciilib_count(sbuf, slen, buf1, len1, maxcount);
|
||||||
else
|
else
|
||||||
return ucs1lib_count(sbuf, slen, buf1, len1, maxcount);
|
return ucs1lib_count(sbuf, slen, buf1, len1, maxcount);
|
||||||
case PyUnicode_2BYTE_KIND:
|
case PyUnicode_2BYTE_KIND:
|
||||||
return ucs2lib_count(sbuf, slen, buf1, len1, maxcount);
|
return ucs2lib_count(sbuf, slen, buf1, len1, maxcount);
|
||||||
case PyUnicode_4BYTE_KIND:
|
case PyUnicode_4BYTE_KIND:
|
||||||
return ucs4lib_count(sbuf, slen, buf1, len1, maxcount);
|
return ucs4lib_count(sbuf, slen, buf1, len1, maxcount);
|
||||||
}
|
}
|
||||||
assert(0);
|
assert(0);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
static PyObject *
|
static PyObject *
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue