Lines Matching defs:left
4774 if (base64bits > 0) { /* left-over bits */
9481 * Output will be zero-padded on the left to fill.
9595 /* We left the loop without using a break statement. */
10285 Py_ssize_t left,
10294 if (left < 0)
10295 left = 0;
10299 if (left == 0 && right == 0)
10302 if (left > PY_SSIZE_T_MAX - _PyUnicode_LENGTH(self) ||
10303 right > PY_SSIZE_T_MAX - (left + _PyUnicode_LENGTH(self))) {
10309 u = PyUnicode_New(left + _PyUnicode_LENGTH(self) + right, maxchar);
10315 if (left)
10316 unicode_fill(kind, data, fill, 0, left);
10318 unicode_fill(kind, data, fill, left + _PyUnicode_LENGTH(self), right);
10319 _PyUnicode_FastCopyCharacters(u, left, self, 0, _PyUnicode_LENGTH(self));
10981 Py_ssize_t marg, left;
10990 left = marg / 2 + (marg & width & 1);
10992 return pad(self, left, marg - left, fillchar);
11150 PyUnicode_Compare(PyObject *left, PyObject *right)
11152 if (PyUnicode_Check(left) && PyUnicode_Check(right)) {
11153 if (PyUnicode_READY(left) == -1 ||
11158 if (left == right)
11161 return unicode_compare(left, right);
11165 Py_TYPE(left)->tp_name,
11273 _PyUnicode_EqualToASCIIId(PyObject *left, _Py_Identifier *right)
11277 assert(_PyUnicode_CHECK(left));
11285 if (PyUnicode_READY(left) == -1) {
11288 return non_ready_unicode_equal_to_ascii_string(left, right->string);
11291 if (!PyUnicode_IS_ASCII(left))
11298 return _PyUnicode_EqualToASCIIString(left, right->string);
11301 if (left == right_uni)
11304 if (PyUnicode_CHECK_INTERNED(left))
11308 Py_hash_t hash = _PyUnicode_HASH(left);
11313 return unicode_compare_eq(left, right_uni);
11317 PyUnicode_RichCompare(PyObject *left, PyObject *right, int op)
11321 if (!PyUnicode_Check(left) || !PyUnicode_Check(right))
11324 if (PyUnicode_READY(left) == -1 ||
11328 if (left == right) {
11345 result = unicode_compare_eq(left, right);
11350 result = unicode_compare(left, right);
11371 "'in <string>' requires string as left operand, not %.100s",
11425 PyUnicode_Concat(PyObject *left, PyObject *right)
11431 if (ensure_unicode(left) < 0)
11445 if (left == empty) {
11449 return PyUnicode_FromObject(left);
11452 left_len = PyUnicode_GET_LENGTH(left);
11461 maxchar = PyUnicode_MAX_CHAR_VALUE(left);
11469 _PyUnicode_FastCopyCharacters(result, 0, left, 0, left_len);
11478 PyObject *left, *res;
11487 left = *p_left;
11488 if (right == NULL || left == NULL
11489 || !PyUnicode_Check(left) || !PyUnicode_Check(right)) {
11495 if (PyUnicode_READY(left) == -1)
11502 if (left == empty) {
11503 Py_DECREF(left);
11512 left_len = PyUnicode_GET_LENGTH(left);
11521 if (unicode_modifiable(left)
11523 && PyUnicode_KIND(right) <= PyUnicode_KIND(left)
11528 && !(PyUnicode_IS_ASCII(left) && !PyUnicode_IS_ASCII(right)))
11534 /* copy 'right' into the newly allocated area of 'left' */
11538 maxchar = PyUnicode_MAX_CHAR_VALUE(left);
11546 _PyUnicode_FastCopyCharacters(res, 0, left, 0, left_len);
11548 Py_DECREF(left);
12464 Return a left-justified string of length width.
13165 Maximum number of splits (starting from the left).
13550 left untouched. Characters mapped to None are deleted.
13583 Pad a numeric string with zeros on the left, to fill a field of the given width.
14412 * There will be at least prec digits, zero-filled on the left if
14416 * prec minimum number of digits; 0-fill on left if needed
15097 /* Pad left with the fill character if needed */