Lines Matching defs:right

2528    case: create a new string with of the right kind. Write NULL into *p_unicode
10286 Py_ssize_t right,
10296 if (right < 0)
10297 right = 0;
10299 if (left == 0 && right == 0)
10303 right > PY_SSIZE_T_MAX - (left + _PyUnicode_LENGTH(self))) {
10309 u = PyUnicode_New(left + _PyUnicode_LENGTH(self) + right, maxchar);
10317 if (right)
10318 unicode_fill(kind, data, fill, left + _PyUnicode_LENGTH(self), right);
11150 PyUnicode_Compare(PyObject *left, PyObject *right)
11152 if (PyUnicode_Check(left) && PyUnicode_Check(right)) {
11154 PyUnicode_READY(right) == -1)
11158 if (left == right)
11161 return unicode_compare(left, right);
11166 Py_TYPE(right)->tp_name);
11273 _PyUnicode_EqualToASCIIId(PyObject *left, _Py_Identifier *right)
11278 assert(right->string);
11280 for (const char *p = right->string; *p; p++) {
11288 return non_ready_unicode_equal_to_ascii_string(left, right->string);
11294 right_uni = _PyUnicode_FromId(right); /* borrowed */
11298 return _PyUnicode_EqualToASCIIString(left, right->string);
11317 PyUnicode_RichCompare(PyObject *left, PyObject *right, int op)
11321 if (!PyUnicode_Check(left) || !PyUnicode_Check(right))
11325 PyUnicode_READY(right) == -1)
11328 if (left == right) {
11345 result = unicode_compare_eq(left, right);
11350 result = unicode_compare(left, right);
11425 PyUnicode_Concat(PyObject *left, PyObject *right)
11434 if (!PyUnicode_Check(right)) {
11437 Py_TYPE(right)->tp_name);
11440 if (PyUnicode_READY(right) < 0)
11446 return PyUnicode_FromObject(right);
11448 if (right == empty) {
11453 right_len = PyUnicode_GET_LENGTH(right);
11462 maxchar2 = PyUnicode_MAX_CHAR_VALUE(right);
11470 _PyUnicode_FastCopyCharacters(result, left_len, right, 0, right_len);
11476 PyUnicode_Append(PyObject **p_left, PyObject *right)
11488 if (right == NULL || left == NULL
11489 || !PyUnicode_Check(left) || !PyUnicode_Check(right)) {
11497 if (PyUnicode_READY(right) == -1)
11504 Py_INCREF(right);
11505 *p_left = right;
11508 if (right == empty) {
11513 right_len = PyUnicode_GET_LENGTH(right);
11522 && PyUnicode_CheckExact(right)
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' */
11535 _PyUnicode_FastCopyCharacters(*p_left, left_len, right, 0, right_len);
11539 maxchar2 = PyUnicode_MAX_CHAR_VALUE(right);
11547 _PyUnicode_FastCopyCharacters(res, left_len, right, 0, right_len);
11559 PyUnicode_AppendAndDel(PyObject **pleft, PyObject *right)
11561 PyUnicode_Append(pleft, right);
11562 Py_XDECREF(right);
13128 Return a right-justified string of length width.
15129 /* Pad right with the fill character if needed */