File indexing completed on 2025-11-19 09:50:45
0001 #ifndef Py_LIMITED_API
0002 #ifndef Py_BYTES_CTYPE_H
0003 #define Py_BYTES_CTYPE_H
0004
0005 #ifndef Py_BUILD_CORE
0006 # error "this header requires Py_BUILD_CORE define"
0007 #endif
0008
0009
0010
0011
0012
0013 extern PyObject* _Py_bytes_isspace(const char *cptr, Py_ssize_t len);
0014 extern PyObject* _Py_bytes_isalpha(const char *cptr, Py_ssize_t len);
0015 extern PyObject* _Py_bytes_isalnum(const char *cptr, Py_ssize_t len);
0016 extern PyObject* _Py_bytes_isascii(const char *cptr, Py_ssize_t len);
0017 extern PyObject* _Py_bytes_isdigit(const char *cptr, Py_ssize_t len);
0018 extern PyObject* _Py_bytes_islower(const char *cptr, Py_ssize_t len);
0019 extern PyObject* _Py_bytes_isupper(const char *cptr, Py_ssize_t len);
0020 extern PyObject* _Py_bytes_istitle(const char *cptr, Py_ssize_t len);
0021
0022
0023 extern void _Py_bytes_lower(char *result, const char *cptr, Py_ssize_t len);
0024 extern void _Py_bytes_upper(char *result, const char *cptr, Py_ssize_t len);
0025 extern void _Py_bytes_title(char *result, const char *s, Py_ssize_t len);
0026 extern void _Py_bytes_capitalize(char *result, const char *s, Py_ssize_t len);
0027 extern void _Py_bytes_swapcase(char *result, const char *s, Py_ssize_t len);
0028
0029 extern PyObject *_Py_bytes_find(const char *str, Py_ssize_t len, PyObject *sub,
0030 Py_ssize_t start, Py_ssize_t end);
0031 extern PyObject *_Py_bytes_index(const char *str, Py_ssize_t len, PyObject *sub,
0032 Py_ssize_t start, Py_ssize_t end);
0033 extern PyObject *_Py_bytes_rfind(const char *str, Py_ssize_t len, PyObject *sub,
0034 Py_ssize_t start, Py_ssize_t end);
0035 extern PyObject *_Py_bytes_rindex(const char *str, Py_ssize_t len, PyObject *sub,
0036 Py_ssize_t start, Py_ssize_t end);
0037 extern PyObject *_Py_bytes_count(const char *str, Py_ssize_t len, PyObject *sub,
0038 Py_ssize_t start, Py_ssize_t end);
0039 extern int _Py_bytes_contains(const char *str, Py_ssize_t len, PyObject *arg);
0040 extern PyObject *_Py_bytes_startswith(const char *str, Py_ssize_t len,
0041 PyObject *subobj, Py_ssize_t start,
0042 Py_ssize_t end);
0043 extern PyObject *_Py_bytes_endswith(const char *str, Py_ssize_t len,
0044 PyObject *subobj, Py_ssize_t start,
0045 Py_ssize_t end);
0046
0047
0048 extern PyObject* _Py_bytes_maketrans(Py_buffer *frm, Py_buffer *to);
0049
0050
0051 extern const char _Py_isspace__doc__[];
0052 extern const char _Py_isalpha__doc__[];
0053 extern const char _Py_isalnum__doc__[];
0054 extern const char _Py_isascii__doc__[];
0055 extern const char _Py_isdigit__doc__[];
0056 extern const char _Py_islower__doc__[];
0057 extern const char _Py_isupper__doc__[];
0058 extern const char _Py_istitle__doc__[];
0059 extern const char _Py_lower__doc__[];
0060 extern const char _Py_upper__doc__[];
0061 extern const char _Py_title__doc__[];
0062 extern const char _Py_capitalize__doc__[];
0063 extern const char _Py_swapcase__doc__[];
0064 extern const char _Py_count__doc__[];
0065 extern const char _Py_find__doc__[];
0066 extern const char _Py_index__doc__[];
0067 extern const char _Py_rfind__doc__[];
0068 extern const char _Py_rindex__doc__[];
0069 extern const char _Py_startswith__doc__[];
0070 extern const char _Py_endswith__doc__[];
0071 extern const char _Py_maketrans__doc__[];
0072 extern const char _Py_expandtabs__doc__[];
0073 extern const char _Py_ljust__doc__[];
0074 extern const char _Py_rjust__doc__[];
0075 extern const char _Py_center__doc__[];
0076 extern const char _Py_zfill__doc__[];
0077
0078
0079 #define PyDoc_STRVAR_shared(name,str) const char name[] = PyDoc_STR(str)
0080
0081 #endif
0082 #endif