Lines Matching defs:string

19  * Yet another Unicode string type for Python.  This type supports the
131 const char *u, /* UTF-8 encoded string */
138 const char *u /* UTF-8 encoded string */
149 /* Copy the string into a UCS4 buffer including the null character if copy_null
151 the buffer is smaller than the string. Return buffer on success.
160 /* Copy the string into a UCS4 buffer. A new buffer is allocated using
175 string representation. */
182 /* Read a character from the string. */
189 /* Write a character to the string. The string must have been created through
202 if the kind of the string is PyUnicode_WCHAR_KIND: in this case, the length
208 Try to resize the string in place (which is usually faster than allocating
209 a new string and copy characters), or create a new string.
214 WARNING: The function doesn't check string content, the result may not be a
215 string in canonical representation. */
255 const char *format, /* ASCII-encoded string */
259 const char *format, /* ASCII-encoded string */
265 const char *u /* UTF-8 encoded string */
289 Note that the resulting wchar_t string may or may not be
291 that the wchar_t string is 0-terminated in case this is required by
304 /* Convert the Unicode object to a wide character string. The output string
355 /* Create a Unicode object by decoding the encoded string s of the
359 const char *s, /* encoded string */
405 /* Encodes a Unicode object and returns the result as Python string
430 PyObject* string /* 256 character map */
436 const char *string, /* UTF-7 encoded string */
437 Py_ssize_t length, /* size of string */
442 const char *string, /* UTF-7 encoded string */
443 Py_ssize_t length, /* size of string */
451 const char *string, /* UTF-8 encoded string */
452 Py_ssize_t length, /* size of string */
457 const char *string, /* UTF-8 encoded string */
458 Py_ssize_t length, /* size of string */
473 This function caches the UTF-8 encoded string in the unicodeobject
474 and subsequent calls will return the same string. The memory is released
486 /* Decodes length bytes from a UTF-32 encoded buffer string and returns
510 const char *string, /* UTF-32 encoded string */
511 Py_ssize_t length, /* size of string */
519 const char *string, /* UTF-32 encoded string */
520 Py_ssize_t length, /* size of string */
528 /* Returns a Python string using the UTF-32 encoding in native byte
529 order. The string always starts with a BOM mark. */
535 /* Returns a Python string object holding the UTF-32 encoded value of
545 If byteorder is 0, the output string will always start with the
553 /* Decodes length bytes from a UTF-16 encoded buffer string and returns
577 const char *string, /* UTF-16 encoded string */
578 Py_ssize_t length, /* size of string */
586 const char *string, /* UTF-16 encoded string */
587 Py_ssize_t length, /* size of string */
595 /* Returns a Python string using the UTF-16 encoding in native byte
596 order. The string always starts with a BOM mark. */
605 const char *string, /* Unicode-Escape encoded string */
606 Py_ssize_t length, /* size of string */
617 const char *string, /* Raw-Unicode-Escape encoded string */
618 Py_ssize_t length, /* size of string */
631 const char *string, /* Latin-1 encoded string */
632 Py_ssize_t length, /* size of string */
647 const char *string, /* ASCII encoded string */
648 Py_ssize_t length, /* size of string */
674 const char *string, /* Encoded string */
675 Py_ssize_t length, /* size of string */
689 const char *string, /* MBCS encoded string */
690 Py_ssize_t length, /* size of string */
695 const char *string, /* MBCS encoded string */
696 Py_ssize_t length, /* size of string */
704 const char *string, /* encoded string */
705 Py_ssize_t length, /* size of string */
728 /* Decode a string from the current locale encoding. The decoder is strict if
741 /* Similar to PyUnicode_DecodeLocaleAndSize(), but compute the string
750 "surrogateescape" error handler is used. Return a bytes object. The string
771 /* Decode a null-terminated string using Py_FileSystemDefaultEncoding
777 Use PyUnicode_DecodeFSDefaultAndSize() if the string length is known.
781 const char *s /* encoded string */
784 /* Decode a string using Py_FileSystemDefaultEncoding
792 const char *s, /* encoded string */
813 /* Concat two strings giving a new Unicode string. */
816 PyObject *left, /* Left string */
817 PyObject *right /* Right string */
824 PyObject **pleft, /* Pointer to left string */
825 PyObject *right /* Right string */
832 PyObject **pleft, /* Pointer to left string */
833 PyObject *right /* Right string */
836 /* Split a string giving a list of Unicode strings.
863 /* Partition a string using a given separator. */
870 /* Partition a string using a given separator, searching from the end of the
871 string. */
878 /* Split a string giving a list of Unicode strings.
884 PyUnicode_RSplit splits from the end of the string. If negative,
897 /* Translate a string by applying a character mapping table to it and
916 the resulting Unicode string. */
919 PyObject *separator, /* Separator string */
928 PyObject *substr, /* Prefix or Suffix string */
982 PyObject *left, /* Left string */
983 PyObject *right /* Right string */
986 /* Compare a Unicode object with C string and return -1, 0, 1 for less than,
988 ASCII-encoded strings, but the function interprets the input string as
994 const char *right /* ASCII-encoded string */
1010 PyObject *left, /* Left string */
1011 PyObject *right, /* Right string */
1015 /* Apply an argument tuple or dictionary to a format string and return
1016 the resulting Unicode string. */
1019 PyObject *format, /* Format string */
1026 element has to coerce to a one element Unicode string. -1 is
1030 PyObject *container, /* Container string */
1031 PyObject *element /* Element string */