Lines Matching defs:string
18 * Yet another Unicode string type for Python. This type supports the
30 * This Unicode String Type is
404 #define Py_UNICODE_MATCH(string, offset, substring) \
405 ((*((string)->str + (offset)) == *((substring)->str)) && \
406 ((*((string)->str + (offset) + (substring)->length-1) == *((substring)->str + (substring)->length-1))) && \
407 !memcmp((string)->str + (offset), (substring)->str, (substring)->length*sizeof(Py_UNICODE)))
421 string, or NULL; this is used for
478 const char *u /* string */
521 1. String and other char buffer compatible objects are decoded
560 (Advanced String Formatting). */
582 Note that the resulting wchar_t string may or may not be
584 that the wchar_t string is 0-terminated in case this is required by
642 /* Return a Python string holding the default encoded value of the
645 The resulting string is cached in the Unicode object for subsequent
650 The refcount of the string is *not* incremented.
682 /* Create a Unicode object by decoding the encoded string s of the
686 const char *s, /* encoded string */
693 Python string object. */
711 /* Encodes a Unicode object and returns the result as Python string
721 PyObject* string /* 256 character map */
728 const char *string, /* UTF-7 encoded string */
729 Py_ssize_t length, /* size of string */
734 const char *string, /* UTF-7 encoded string */
735 Py_ssize_t length, /* size of string */
751 const char *string, /* UTF-8 encoded string */
752 Py_ssize_t length, /* size of string */
757 const char *string, /* UTF-8 encoded string */
758 Py_ssize_t length, /* size of string */
775 /* Decodes length bytes from a UTF-32 encoded buffer string and returns
799 const char *string, /* UTF-32 encoded string */
800 Py_ssize_t length, /* size of string */
808 const char *string, /* UTF-32 encoded string */
809 Py_ssize_t length, /* size of string */
817 /* Returns a Python string using the UTF-32 encoding in native byte
818 order. The string always starts with a BOM mark. */
824 /* Returns a Python string object holding the UTF-32 encoded value of
834 If byteorder is 0, the output string will always start with the
849 /* Decodes length bytes from a UTF-16 encoded buffer string and returns
873 const char *string, /* UTF-16 encoded string */
874 Py_ssize_t length, /* size of string */
882 const char *string, /* UTF-16 encoded string */
883 Py_ssize_t length, /* size of string */
891 /* Returns a Python string using the UTF-16 encoding in native byte
892 order. The string always starts with a BOM mark. */
898 /* Returns a Python string object holding the UTF-16 encoded value of
908 If byteorder is 0, the output string will always start with the
928 const char *string, /* Unicode-Escape encoded string */
929 Py_ssize_t length, /* size of string */
945 const char *string, /* Raw-Unicode-Escape encoded string */
946 Py_ssize_t length, /* size of string */
964 const char *string,
976 const char *string, /* Latin-1 encoded string */
977 Py_ssize_t length, /* size of string */
998 const char *string, /* ASCII encoded string */
999 Py_ssize_t length, /* size of string */
1017 Decoding mappings must map single string characters to single
1023 string characters, integers (which are then interpreted as Latin-1
1036 const char *string, /* Encoded string */
1037 Py_ssize_t length, /* size of string */
1082 const char *string, /* MBCS encoded string */
1083 Py_ssize_t length, /* size of string */
1088 const char *string, /* MBCS encoded string */
1089 Py_ssize_t length, /* size of string */
1108 /* Takes a Unicode string holding a decimal value and writes it into
1112 area. The output string is 0-terminated.
1143 /* Concat two strings giving a new Unicode string. */
1146 PyObject *left, /* Left string */
1147 PyObject *right /* Right string */
1150 /* Split a string giving a list of Unicode strings.
1162 PyObject *s, /* String to split */
1163 PyObject *sep, /* String separator */
1173 PyObject *s, /* String to split */
1177 /* Partition a string using a given separator. */
1180 PyObject *s, /* String to partition */
1181 PyObject *sep /* String separator */
1184 /* Partition a string using a given separator, searching from the end of the
1185 string. */
1188 PyObject *s, /* String to partition */
1189 PyObject *sep /* String separator */
1192 /* Split a string giving a list of Unicode strings.
1198 PyUnicode_RSplit splits from the end of the string. If negative,
1206 PyObject *s, /* String to split */
1207 PyObject *sep, /* String separator */
1211 /* Translate a string by applying a character mapping table to it and
1224 PyObject *str, /* String */
1230 the resulting Unicode string. */
1233 PyObject *separator, /* Separator string */
1241 PyObject *str, /* String */
1242 PyObject *substr, /* Prefix or Suffix string */
1253 PyObject *str, /* String */
1263 PyObject *str, /* String */
1273 PyObject *str, /* String */
1284 PyObject *left, /* Left string */
1285 PyObject *right /* Right string */
1305 PyObject *left, /* Left string */
1306 PyObject *right, /* Right string */
1310 /* Apply a argument tuple or dictionary to a format string and return
1311 the resulting Unicode string. */
1314 PyObject *format, /* Format string */
1321 element has to coerce to an one element Unicode string. -1 is
1325 PyObject *container, /* Container string */
1326 PyObject *element /* Element string */