mirror of
https://github.com/python/cpython.git
synced 2025-10-17 20:28:43 +00:00
Create Py_UNICODE_strcat() function
This commit is contained in:
parent
f37ca3c8be
commit
c4eb765fc1
2 changed files with 12 additions and 0 deletions
|
@ -1573,6 +1573,9 @@ PyAPI_FUNC(Py_UNICODE*) Py_UNICODE_strcpy(
|
||||||
Py_UNICODE *s1,
|
Py_UNICODE *s1,
|
||||||
const Py_UNICODE *s2);
|
const Py_UNICODE *s2);
|
||||||
|
|
||||||
|
PyAPI_FUNC(Py_UNICODE*) Py_UNICODE_strcat(
|
||||||
|
Py_UNICODE *s1, const Py_UNICODE *s2);
|
||||||
|
|
||||||
PyAPI_FUNC(Py_UNICODE*) Py_UNICODE_strncpy(
|
PyAPI_FUNC(Py_UNICODE*) Py_UNICODE_strncpy(
|
||||||
Py_UNICODE *s1,
|
Py_UNICODE *s1,
|
||||||
const Py_UNICODE *s2,
|
const Py_UNICODE *s2,
|
||||||
|
|
|
@ -9951,6 +9951,15 @@ Py_UNICODE_strncpy(Py_UNICODE *s1, const Py_UNICODE *s2, size_t n)
|
||||||
return s1;
|
return s1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Py_UNICODE*
|
||||||
|
Py_UNICODE_strcat(Py_UNICODE *s1, const Py_UNICODE *s2)
|
||||||
|
{
|
||||||
|
Py_UNICODE *u1 = s1;
|
||||||
|
u1 += Py_UNICODE_strlen(u1);
|
||||||
|
Py_UNICODE_strcpy(u1, s2);
|
||||||
|
return s1;
|
||||||
|
}
|
||||||
|
|
||||||
int
|
int
|
||||||
Py_UNICODE_strcmp(const Py_UNICODE *s1, const Py_UNICODE *s2)
|
Py_UNICODE_strcmp(const Py_UNICODE *s1, const Py_UNICODE *s2)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue