cinap_lenrekadd hg and python4bb9e2215 years agoHistory
1265 lines · 43.8 KB · C
RawDownload
PyAPI_FUNC(PyObject*) PyUnicode_Concat(    PyObject *left,	 	/* Left string */    PyObject *right	 	/* Right string */    ); /* Split a string giving a list of Unicode strings.    If sep is NULL, splitting will be done at all whitespace   substrings. Otherwise, splits occur at the given separator.    At most maxsplit splits will be done. If negative, no limit is set.    Separators are not included in the resulting list. */ PyAPI_FUNC(PyObject*) PyUnicode_Split(    PyObject *s,		/* String to split */    PyObject *sep,		/* String separator */    Py_ssize_t maxsplit		/* Maxsplit count */    );		 /* Dito, but split at line breaks.    CRLF is considered to be one line break. Line breaks are not   included in the resulting list. */    PyAPI_FUNC(PyObject*) PyUnicode_Splitlines(    PyObject *s,		/* String to split */    int keepends		/* If true, line end markers are included */    );		 /* Partition a string using a given separator. */ PyAPI_FUNC(PyObject*) PyUnicode_Partition(    PyObject *s,		/* String to partition */    PyObject *sep		/* String separator */    );		 /* Partition a string using a given separator, searching from the end of the   string. */ PyAPI_FUNC(PyObject*) PyUnicode_RPartition(    PyObject *s,		/* String to partition */    PyObject *sep		/* String separator */    );		 /* Split a string giving a list of Unicode strings.    If sep is NULL, splitting will be done at all whitespace   substrings. Otherwise, splits occur at the given separator.    At most maxsplit splits will be done. But unlike PyUnicode_Split   PyUnicode_RSplit splits from the end of the string. If negative,   no limit is set.    Separators are not included in the resulting list. */ PyAPI_FUNC(PyObject*) PyUnicode_RSplit(    PyObject *s,		/* String to split */    PyObject *sep,		/* String separator */    Py_ssize_t maxsplit		/* Maxsplit count */    );		 /* Translate a string by applying a character mapping table to it and   return the resulting Unicode object.    The mapping table must map Unicode ordinal integers to Unicode   ordinal integers or None (causing deletion of the character).     Mapping tables may be dictionaries or sequences. Unmapped character   ordinals (ones which cause a LookupError) are left untouched and   are copied as-is. */ PyAPI_FUNC(PyObject *) PyUnicode_Translate(    PyObject *str,		/* String */     PyObject *table,		/* Translate table */    const char *errors		/* error handling */    ); /* Join a sequence of strings using the given separator and return   the resulting Unicode string. */    PyAPI_FUNC(PyObject*) PyUnicode_Join(    PyObject *separator, 	/* Separator string */    PyObject *seq	 	/* Sequence object */    ); /* Return 1 if substr matches str[start:end] at the given tail end, 0   otherwise. */ PyAPI_FUNC(Py_ssize_t) PyUnicode_Tailmatch(    PyObject *str,		/* String */     PyObject *substr,		/* Prefix or Suffix string */    Py_ssize_t start,		/* Start index */    Py_ssize_t end,		/* Stop index */    int direction		/* Tail end: -1 prefix, +1 suffix */    ); /* Return the first position of substr in str[start:end] using the   given search direction or -1 if not found. -2 is returned in case   an error occurred and an exception is set. */ PyAPI_FUNC(Py_ssize_t) PyUnicode_Find(    PyObject *str,		/* String */     PyObject *substr,		/* Substring to find */    Py_ssize_t start,		/* Start index */    Py_ssize_t end,		/* Stop index */    int direction		/* Find direction: +1 forward, -1 backward */    ); /* Count the number of occurrences of substr in str[start:end]. */ PyAPI_FUNC(Py_ssize_t) PyUnicode_Count(    PyObject *str,		/* String */     PyObject *substr,		/* Substring to count */    Py_ssize_t start,		/* Start index */    Py_ssize_t end		/* Stop index */    ); /* Replace at most maxcount occurrences of substr in str with replstr   and return the resulting Unicode object. */ PyAPI_FUNC(PyObject *) PyUnicode_Replace(    PyObject *str,		/* String */     PyObject *substr,		/* Substring to find */    PyObject *replstr,		/* Substring to replace */    Py_ssize_t maxcount		/* Max. number of replacements to apply;				   -1 = all */    ); /* Compare two strings and return -1, 0, 1 for less than, equal,   greater than resp. */ PyAPI_FUNC(int) PyUnicode_Compare(    PyObject *left,		/* Left string */     PyObject *right		/* Right string */    ); /* Rich compare two strings and return one of the following:    - NULL in case an exception was raised   - Py_True or Py_False for successfuly comparisons   - Py_NotImplemented in case the type combination is unknown    Note that Py_EQ and Py_NE comparisons can cause a UnicodeWarning in   case the conversion of the arguments to Unicode fails with a   UnicodeDecodeError.    Possible values for op:      Py_GT, Py_GE, Py_EQ, Py_NE, Py_LT, Py_LE */ PyAPI_FUNC(PyObject *) PyUnicode_RichCompare(    PyObject *left,		/* Left string */     PyObject *right,		/* Right string */    int op			/* Operation: Py_EQ, Py_NE, Py_GT, etc. */    ); /* Apply a argument tuple or dictionary to a format string and return   the resulting Unicode string. */ PyAPI_FUNC(PyObject *) PyUnicode_Format(    PyObject *format,		/* Format string */     PyObject *args		/* Argument tuple or dictionary */    ); /* Checks whether element is contained in container and return 1/0   accordingly.    element has to coerce to an one element Unicode string. -1 is   returned in case of an error. */ PyAPI_FUNC(int) PyUnicode_Contains(    PyObject *container,	/* Container string */     PyObject *element		/* Element string */    ); /* Externally visible for str.strip(unicode) */PyAPI_FUNC(PyObject *) _PyUnicode_XStrip(    PyUnicodeObject *self,    int striptype,    PyObject *sepobj    ); /* === Characters Type APIs =============================================== */ /* These should not be used directly. Use the Py_UNICODE_IS* and   Py_UNICODE_TO* macros instead.     These APIs are implemented in Objects/unicodectype.c. */ PyAPI_FUNC(int) _PyUnicode_IsLowercase(    Py_UNICODE ch 	/* Unicode character */    ); PyAPI_FUNC(int) _PyUnicode_IsUppercase(    Py_UNICODE ch 	/* Unicode character */    ); PyAPI_FUNC(int) _PyUnicode_IsTitlecase(    Py_UNICODE ch 	/* Unicode character */    ); PyAPI_FUNC(int) _PyUnicode_IsWhitespace(    const Py_UNICODE ch 	/* Unicode character */    ); PyAPI_FUNC(int) _PyUnicode_IsLinebreak(    const Py_UNICODE ch 	/* Unicode character */    ); PyAPI_FUNC(Py_UNICODE) _PyUnicode_ToLowercase(    Py_UNICODE ch 	/* Unicode character */    ); PyAPI_FUNC(Py_UNICODE) _PyUnicode_ToUppercase(    Py_UNICODE ch 	/* Unicode character */    ); PyAPI_FUNC(Py_UNICODE) _PyUnicode_ToTitlecase(    Py_UNICODE ch 	/* Unicode character */    ); PyAPI_FUNC(int) _PyUnicode_ToDecimalDigit(    Py_UNICODE ch 	/* Unicode character */    ); PyAPI_FUNC(int) _PyUnicode_ToDigit(    Py_UNICODE ch 	/* Unicode character */    ); PyAPI_FUNC(double) _PyUnicode_ToNumeric(    Py_UNICODE ch 	/* Unicode character */    ); PyAPI_FUNC(int) _PyUnicode_IsDecimalDigit(    Py_UNICODE ch 	/* Unicode character */    ); PyAPI_FUNC(int) _PyUnicode_IsDigit(    Py_UNICODE ch 	/* Unicode character */    ); PyAPI_FUNC(int) _PyUnicode_IsNumeric(    Py_UNICODE ch 	/* Unicode character */    ); PyAPI_FUNC(int) _PyUnicode_IsAlpha(    Py_UNICODE ch 	/* Unicode character */    ); #ifdef __cplusplus}#endif#endif /* Py_USING_UNICODE */#endif /* !Py_UNICODEOBJECT_H */

Lines 1001–1265 of 1265. Previous lines