Lines Matching defs:from
225 function will delete the reference from this dictionary.
840 bits from each unicode characters as the bit index. */
1271 /* don't check consistency: unicode_kind_name() is called from
1421 /* Duplicated allocation code from _PyObject_New() instead of a call to
1530 PyObject *from, Py_ssize_t from_start,
1540 assert(PyUnicode_Check(from));
1541 assert(PyUnicode_IS_READY(from));
1542 assert(from_start + how_many <= PyUnicode_GET_LENGTH(from));
1551 from_kind = PyUnicode_KIND(from);
1552 from_data = PyUnicode_DATA(from);
1558 && PyUnicode_MAX_CHAR_VALUE(from) > PyUnicode_MAX_CHAR_VALUE(to))
1572 && !PyUnicode_IS_ASCII(from) && PyUnicode_IS_ASCII(to))
1591 PyUnicode_1BYTE_DATA(from) + from_start,
1592 PyUnicode_1BYTE_DATA(from) + from_start + how_many,
1601 PyUnicode_1BYTE_DATA(from) + from_start,
1602 PyUnicode_1BYTE_DATA(from) + from_start + how_many,
1611 PyUnicode_2BYTE_DATA(from) + from_start,
1612 PyUnicode_2BYTE_DATA(from) + from_start + how_many,
1617 assert (PyUnicode_MAX_CHAR_VALUE(from) > PyUnicode_MAX_CHAR_VALUE(to));
1625 PyUnicode_2BYTE_DATA(from) + from_start,
1626 PyUnicode_2BYTE_DATA(from) + from_start + how_many,
1635 PyUnicode_4BYTE_DATA(from) + from_start,
1636 PyUnicode_4BYTE_DATA(from) + from_start + how_many,
1645 PyUnicode_4BYTE_DATA(from) + from_start,
1646 PyUnicode_4BYTE_DATA(from) + from_start + how_many,
1673 PyObject *from, Py_ssize_t from_start, Py_ssize_t how_many)
1675 (void)_copy_characters(to, to_start, from, from_start, how_many, 0);
1680 PyObject *from, Py_ssize_t from_start,
1685 if (!PyUnicode_Check(from) || !PyUnicode_Check(to)) {
1690 if (PyUnicode_READY(from) == -1)
1695 if ((size_t)from_start > (size_t)PyUnicode_GET_LENGTH(from)) {
1707 how_many = Py_MIN(PyUnicode_GET_LENGTH(from)-from_start, how_many);
1722 err = _copy_characters(to, to_start, from, from_start, how_many, 1);
1727 unicode_kind_name(from),
1832 /* In this case we might have to convert down from 4-byte native
3647 "use PyCodec_Decode() to decode from str", 1) < 0)
3671 "use PyCodec_Decode() to decode from str to str", 1) < 0)
3710 "use PyUnicode_AsEncodedString() to encode from str to bytes "
3933 "use PyCodec_Encode() to encode from str to str", 1) < 0)
4447 PyErr_Format(PyExc_IndexError, "position %zd from error handler out of bounds", newpos);
4562 PyErr_Format(PyExc_IndexError, "position %zd from error handler out of bounds", newpos);
7038 PyErr_Format(PyExc_IndexError, "position %zd from error handler out of bounds", *newpos);
7387 transcoding from UTF-16), but INT_MAX / 4 performs better in
7425 * Decode a byte string from a Windows code page into unicode object in strict
7475 * Decode a byte string from a code page into unicode object with an error
7491 /* Ideally, we should get reason from FormatMessage. This is the Windows
7848 /* Ideally, we should get reason from FormatMessage. This is the Windows
8968 PyErr_Format(PyExc_IndexError, "position %zd from error handler out of bounds", *newpos);
9476 * @digits: Digits we're reading from. If count is non-NULL, this is unused.
11186 /* This check keeps Python strings that end in '\0' from comparing equal
11221 /* This check keeps Python strings that end in '\0' from comparing equal
13163 empty strings from the result.
13165 Maximum number of splits (starting from the left).
14076 Return a formatted version of S, using substitutions from args and kwargs.\n\
14082 Return a formatted version of S, using substitutions from mapping.\n\
14701 /* Get argument value from a dictionary. Example: "%(name)s". */
15405 Create a new string object from the given object. If encoding or\n\