Lines Matching defs:copy

21 Permission to use, copy, modify, and distribute this software and its
1174 PyObject *copy;
1178 copy = PyUnicode_New(length, PyUnicode_MAX_CHAR_VALUE(unicode));
1179 if (copy == NULL)
1183 _PyUnicode_FastCopyCharacters(copy, 0, unicode, 0, copy_length);
1184 return copy;
1725 "Cannot copy %s characters "
2024 PyObject *copy = resize_copy(unicode, length);
2025 if (copy == NULL)
2027 Py_SETREF(*p_unicode, copy);
2060 WARNING: The function doesn't copy the terminating null character and
2206 /* If not empty and not single character, copy the Unicode data
2232 a simple copy loop is not enough and we need a function. */
2533 PyObject *unicode, *copy;
2567 copy = PyUnicode_New(len, max_char);
2568 if (copy != NULL)
2569 _PyUnicode_FastCopyCharacters(copy, 0, unicode, 0, len);
2571 *p_unicode = copy;
2578 PyObject *copy;
2588 copy = PyUnicode_New(length, PyUnicode_MAX_CHAR_VALUE(unicode));
2589 if (!copy)
2591 assert(PyUnicode_KIND(copy) == PyUnicode_KIND(unicode));
2593 memcpy(PyUnicode_DATA(copy), PyUnicode_DATA(unicode),
2595 assert(_PyUnicode_CheckConsistency(copy, 1));
2596 return copy;
3069 /* if we stumble upon an unknown formatting code, copy the rest
4384 if no exception occurred, copy the replacement to the output
7179 /* Directly copy bytes result to output. */
8770 /* Directly copy bytes result to output. */
10796 /* copy unchanged part [i:j] */
10802 /* copy substitution string */
10812 /* copy tail [i:] */
11534 /* copy 'right' into the newly allocated area of 'left' */
11682 Return a copy where all tab characters are expanded using spaces.
12485 Return a copy of the string converted to lowercase.
12686 Return a copy of the string with leading and trailing whitespace removed.
12705 Return a copy of the string with leading whitespace removed.
12724 Return a copy of the string with trailing whitespace removed.
12816 Return a copy with all occurrences of substring old replaced by new.
12841 Otherwise, return a copy of the original string.
12868 return string[:-len(suffix)]. Otherwise, return a copy of the original
13502 /* copy entries into the new dict, converting string keys to int keys */
13563 Return a copy of the string converted to uppercase.
13743 _PyUnicodeWriter_PrepareKind() will copy the buffer. */
13748 * _PyUnicodeWriter_Prepare() will copy (and enlarge) the buffer on
13763 _PyUnicodeWriter_PrepareKind() will copy the buffer. */
14154 PyObject *copy = _PyUnicode_Copy(v);
14155 if (!copy)
14157 return Py_BuildValue("(N)", copy);