Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-30 10:18:05

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  * The internal implementation behind PyBytes (bytes) and PyByteArray (bytearray)
0011  * methods of the given names, they operate on ASCII byte strings.
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 /* These store their len sized answer in the given preallocated *result arg. */
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 *args);
0030 extern PyObject *_Py_bytes_index(const char *str, Py_ssize_t len, PyObject *args);
0031 extern PyObject *_Py_bytes_rfind(const char *str, Py_ssize_t len, PyObject *args);
0032 extern PyObject *_Py_bytes_rindex(const char *str, Py_ssize_t len, PyObject *args);
0033 extern PyObject *_Py_bytes_count(const char *str, Py_ssize_t len, PyObject *args);
0034 extern int _Py_bytes_contains(const char *str, Py_ssize_t len, PyObject *arg);
0035 extern PyObject *_Py_bytes_startswith(const char *str, Py_ssize_t len, PyObject *args);
0036 extern PyObject *_Py_bytes_endswith(const char *str, Py_ssize_t len, PyObject *args);
0037 
0038 /* The maketrans() static method. */
0039 extern PyObject* _Py_bytes_maketrans(Py_buffer *frm, Py_buffer *to);
0040 
0041 /* Shared __doc__ strings. */
0042 extern const char _Py_isspace__doc__[];
0043 extern const char _Py_isalpha__doc__[];
0044 extern const char _Py_isalnum__doc__[];
0045 extern const char _Py_isascii__doc__[];
0046 extern const char _Py_isdigit__doc__[];
0047 extern const char _Py_islower__doc__[];
0048 extern const char _Py_isupper__doc__[];
0049 extern const char _Py_istitle__doc__[];
0050 extern const char _Py_lower__doc__[];
0051 extern const char _Py_upper__doc__[];
0052 extern const char _Py_title__doc__[];
0053 extern const char _Py_capitalize__doc__[];
0054 extern const char _Py_swapcase__doc__[];
0055 extern const char _Py_count__doc__[];
0056 extern const char _Py_find__doc__[];
0057 extern const char _Py_index__doc__[];
0058 extern const char _Py_rfind__doc__[];
0059 extern const char _Py_rindex__doc__[];
0060 extern const char _Py_startswith__doc__[];
0061 extern const char _Py_endswith__doc__[];
0062 extern const char _Py_maketrans__doc__[];
0063 extern const char _Py_expandtabs__doc__[];
0064 extern const char _Py_ljust__doc__[];
0065 extern const char _Py_rjust__doc__[];
0066 extern const char _Py_center__doc__[];
0067 extern const char _Py_zfill__doc__[];
0068 
0069 /* this is needed because some docs are shared from the .o, not static */
0070 #define PyDoc_STRVAR_shared(name,str) const char name[] = PyDoc_STR(str)
0071 
0072 #endif /* !Py_BYTES_CTYPE_H */
0073 #endif /* !Py_LIMITED_API */