diff options
author | Victor Stinner <victor.stinner@haypocalc.com> | 2011-09-28 19:41:31 (GMT) |
---|---|---|
committer | Victor Stinner <victor.stinner@haypocalc.com> | 2011-09-28 19:41:31 (GMT) |
commit | 157f83fcfc7384952a5db5526daf85fbd6e4ab5e (patch) | |
tree | b2d06607ec64462b863c8d992a3634e7a24ed406 /Include | |
parent | 6c7a52a46f862eee841bf705653cefa57b53efbc (diff) | |
download | cpython-157f83fcfc7384952a5db5526daf85fbd6e4ab5e.zip cpython-157f83fcfc7384952a5db5526daf85fbd6e4ab5e.tar.gz cpython-157f83fcfc7384952a5db5526daf85fbd6e4ab5e.tar.bz2 |
Strip trailing spaces in unicodeobject.[ch]
Diffstat (limited to 'Include')
-rw-r--r-- | Include/unicodeobject.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/Include/unicodeobject.h b/Include/unicodeobject.h index 3538f1a..b57c1e5 100644 --- a/Include/unicodeobject.h +++ b/Include/unicodeobject.h @@ -356,13 +356,13 @@ PyAPI_DATA(PyTypeObject) PyUnicodeIter_Type; #define PyUnicode_IS_COMPACT(op) \ (((PyASCIIObject*)(op))->state.compact) -/* Return one of the PyUnicode_*_KIND values defined above. */ +/* Return one of the PyUnicode_*_KIND values defined above. */ #define PyUnicode_KIND(op) \ (assert(PyUnicode_Check(op)), \ assert(PyUnicode_IS_READY(op)), \ ((PyASCIIObject *)(op))->state.kind) -/* Return a void pointer to the raw unicode buffer. */ +/* Return a void pointer to the raw unicode buffer. */ #define _PyUnicode_COMPACT_DATA(op) \ (PyUnicode_IS_COMPACT_ASCII(op) ? \ ((void*)((PyASCIIObject*)(op) + 1)) : \ @@ -509,7 +509,7 @@ PyAPI_FUNC(PyObject*) PyUnicode_New( /* Initializes the canonical string representation from a the deprected wstr/Py_UNICODE representation. This function is used to convert - unicode objects which were created using the old API to the new flexible + unicode objects which were created using the old API to the new flexible format introduced with PEP 393. The PyUnicode_READY() macro can be more efficient if the string is already ready. */ #ifndef Py_LIMITED_API @@ -641,7 +641,7 @@ PyAPI_FUNC(Py_ssize_t) PyUnicode_GetLength( PyObject *unicode ); -/* Get the number of Py_UNICODE units in the +/* Get the number of Py_UNICODE units in the string representation. */ PyAPI_FUNC(Py_ssize_t) PyUnicode_GetSize( @@ -857,7 +857,7 @@ PyAPI_FUNC(int) PyUnicode_ClearFreeList(void); In case of an error, no *size is set. - This funcation caches the UTF-8 encoded string in the unicodeobject + This funcation caches the UTF-8 encoded string in the unicodeobject and subsequent calls will return the same string. The memory is relased when the unicodeobject is deallocated. |