/
opt
/
imh
/
python3.13
/
include
/
python3.13
/
internal
/
/opt/imh/python3.13/include/python3.13/internal
mkdir
upload
Name
Size
Mode
Actions
mimalloc/
-
0755
rm
pycore_abstract.h
1915
0644
edit
dl
rm
pycore_asdl.h
3035
0644
edit
dl
rm
pycore_ast.h
31520
0644
edit
dl
rm
pycore_ast_state.h
6779
0644
edit
dl
rm
pycore_atexit.h
1433
0644
edit
dl
rm
pycore_backoff.h
3902
0644
edit
dl
rm
pycore_bitutils.h
6026
0644
edit
dl
rm
pycore_blocks_output_buffer.h
8772
0644
edit
dl
rm
pycore_brc.h
2102
0644
edit
dl
rm
pycore_bytesobject.h
5099
0644
edit
dl
rm
pycore_bytes_methods.h
3933
0644
edit
dl
rm
pycore_call.h
6135
0644
edit
dl
rm
pycore_capsule.h
397
0644
edit
dl
rm
pycore_cell.h
1057
0644
edit
dl
rm
pycore_ceval.h
11162
0644
edit
dl
rm
pycore_ceval_state.h
3921
0644
edit
dl
rm
pycore_code.h
19864
0644
edit
dl
rm
pycore_codecs.h
2465
0644
edit
dl
rm
pycore_compile.h
3750
0644
edit
dl
rm
pycore_complexobject.h
588
0644
edit
dl
rm
pycore_condvar.h
2704
0644
edit
dl
rm
pycore_context.h
1182
0644
edit
dl
rm
pycore_critical_section.h
7968
0644
edit
dl
rm
pycore_crossinterp.h
12128
0644
edit
dl
rm
pycore_descrobject.h
543
0644
edit
dl
rm
pycore_dict.h
12264
0644
edit
dl
rm
pycore_dict_state.h
732
0644
edit
dl
rm
pycore_dtoa.h
1727
0644
edit
dl
rm
pycore_emscripten_signal.h
685
0644
edit
dl
rm
pycore_emscripten_trampoline.h
3180
0644
edit
dl
rm
pycore_exceptions.h
900
0644
edit
dl
rm
pycore_faulthandler.h
2245
0644
edit
dl
rm
pycore_fileutils.h
9468
0644
edit
dl
rm
pycore_fileutils_windows.h
2713
0644
edit
dl
rm
pycore_floatobject.h
1495
0644
edit
dl
rm
pycore_flowgraph.h
1489
0644
edit
dl
rm
pycore_format.h
480
0644
edit
dl
rm
pycore_frame.h
10875
0644
edit
dl
rm
pycore_freelist.h
4810
0644
edit
dl
rm
pycore_function.h
1538
0644
edit
dl
rm
pycore_gc.h
12967
0644
edit
dl
rm
pycore_genobject.h
859
0644
edit
dl
rm
pycore_getopt.h
490
0644
edit
dl
rm
pycore_gil.h
2196
0644
edit
dl
rm
pycore_global_objects.h
3090
0644
edit
dl
rm
pycore_global_objects_fini_generated.h
117804
0644
edit
dl
rm
pycore_global_strings.h
26706
0644
edit
dl
rm
pycore_hamt.h
3742
0644
edit
dl
rm
pycore_hashtable.h
4361
0644
edit
dl
rm
pycore_identifier.h
515
0644
edit
dl
rm
pycore_import.h
7731
0644
edit
dl
rm
pycore_importdl.h
4055
0644
edit
dl
rm
pycore_initconfig.h
6375
0644
edit
dl
rm
pycore_instruction_sequence.h
2161
0644
edit
dl
rm
pycore_instruments.h
2331
0644
edit
dl
rm
pycore_interp.h
15063
0644
edit
dl
rm
pycore_intrinsics.h
1756
0644
edit
dl
rm
pycore_jit.h
527
0644
edit
dl
rm
pycore_list.h
1859
0644
edit
dl
rm
pycore_llist.h
2420
0644
edit
dl
rm
pycore_lock.h
8538
0644
edit
dl
rm
pycore_long.h
9966
0644
edit
dl
rm
pycore_memoryobject.h
427
0644
edit
dl
rm
pycore_mimalloc.h
1637
0644
edit
dl
rm
pycore_modsupport.h
3351
0644
edit
dl
rm
pycore_moduleobject.h
1572
0644
edit
dl
rm
pycore_namespace.h
435
0644
edit
dl
rm
pycore_object.h
27936
0644
edit
dl
rm
pycore_object_alloc.h
2176
0644
edit
dl
rm
pycore_object_stack.h
2384
0644
edit
dl
rm
pycore_object_state.h
942
0644
edit
dl
rm
pycore_obmalloc.h
27418
0644
edit
dl
rm
pycore_obmalloc_init.h
1935
0644
edit
dl
rm
pycore_opcode_metadata.h
84722
0644
edit
dl
rm
pycore_opcode_utils.h
2122
0644
edit
dl
rm
pycore_optimizer.h
8303
0644
edit
dl
rm
pycore_parking_lot.h
3351
0644
edit
dl
rm
pycore_parser.h
2089
0644
edit
dl
rm
pycore_pathconfig.h
658
0644
edit
dl
rm
pycore_pyarena.h
2862
0644
edit
dl
rm
pycore_pyatomic_ft_wrappers.h
8056
0644
edit
dl
rm
pycore_pybuffer.h
510
0644
edit
dl
rm
pycore_pyerrors.h
4960
0644
edit
dl
rm
pycore_pyhash.h
2813
0644
edit
dl
rm
pycore_pylifecycle.h
4465
0644
edit
dl
rm
pycore_pymath.h
8600
0644
edit
dl
rm
pycore_pymem.h
4485
0644
edit
dl
rm
pycore_pymem_init.h
3520
0644
edit
dl
rm
pycore_pystate.h
9964
0644
edit
dl
rm
pycore_pystats.h
420
0644
edit
dl
rm
pycore_pythonrun.h
758
0644
edit
dl
rm
pycore_pythread.h
5431
0644
edit
dl
rm
pycore_qsbr.h
5524
0644
edit
dl
rm
pycore_range.h
346
0644
edit
dl
rm
pycore_runtime.h
13165
0644
edit
dl
rm
pycore_runtime_init.h
13045
0644
edit
dl
rm
pycore_runtime_init_generated.h
46820
0644
edit
dl
rm
pycore_semaphore.h
1731
0644
edit
dl
rm
pycore_setobject.h
951
0644
edit
dl
rm
pycore_signal.h
2931
0644
edit
dl
rm
pycore_sliceobject.h
369
0644
edit
dl
rm
pycore_stackref.h
5186
0644
edit
dl
rm
pycore_strhex.h
1013
0644
edit
dl
rm
pycore_structseq.h
963
0644
edit
dl
rm
pycore_symtable.h
8671
0644
edit
dl
rm
pycore_sysmodule.h
1177
0644
edit
dl
rm
pycore_time.h
11794
0644
edit
dl
rm
pycore_token.h
3001
0644
edit
dl
rm
pycore_traceback.h
3629
0644
edit
dl
rm
pycore_tracemalloc.h
4533
0644
edit
dl
rm
pycore_tstate.h
1354
0644
edit
dl
rm
pycore_tuple.h
820
0644
edit
dl
rm
pycore_typeobject.h
8877
0644
edit
dl
rm
pycore_typevarobject.h
924
0644
edit
dl
rm
pycore_ucnhash.h
958
0644
edit
dl
rm
pycore_unicodeobject.h
13270
0644
edit
dl
rm
pycore_unicodeobject_generated.h
132140
0644
edit
dl
rm
pycore_unionobject.h
742
0644
edit
dl
rm
pycore_uop_ids.h
10267
0644
edit
dl
rm
pycore_uop_metadata.h
39469
0644
edit
dl
rm
pycore_warnings.h
840
0644
edit
dl
rm
pycore_weakref.h
3889
0644
edit
dl
rm
Edit:
/opt/imh/python3.13/include/python3.13/internal/pycore_unicodeobject.h
(13270B)
#ifndef Py_INTERNAL_UNICODEOBJECT_H #define Py_INTERNAL_UNICODEOBJECT_H #ifdef __cplusplus extern "C" { #endif #ifndef Py_BUILD_CORE # error "this header requires Py_BUILD_CORE define" #endif #include "pycore_lock.h" // PyMutex #include "pycore_fileutils.h" // _Py_error_handler #include "pycore_identifier.h" // _Py_Identifier #include "pycore_ucnhash.h" // _PyUnicode_Name_CAPI #include "pycore_global_objects.h" // _Py_SINGLETON /* --- Characters Type APIs ----------------------------------------------- */ extern int _PyUnicode_IsXidStart(Py_UCS4 ch); extern int _PyUnicode_IsXidContinue(Py_UCS4 ch); extern int _PyUnicode_ToLowerFull(Py_UCS4 ch, Py_UCS4 *res); extern int _PyUnicode_ToTitleFull(Py_UCS4 ch, Py_UCS4 *res); extern int _PyUnicode_ToUpperFull(Py_UCS4 ch, Py_UCS4 *res); extern int _PyUnicode_ToFoldedFull(Py_UCS4 ch, Py_UCS4 *res); extern int _PyUnicode_IsCaseIgnorable(Py_UCS4 ch); extern int _PyUnicode_IsCased(Py_UCS4 ch); /* --- Unicode API -------------------------------------------------------- */ // Export for '_json' shared extension PyAPI_FUNC(int) _PyUnicode_CheckConsistency( PyObject *op, int check_content); PyAPI_FUNC(void) _PyUnicode_ExactDealloc(PyObject *op); extern Py_ssize_t _PyUnicode_InternedSize(void); extern Py_ssize_t _PyUnicode_InternedSize_Immortal(void); // Get a copy of a Unicode string. // Export for '_datetime' shared extension. PyAPI_FUNC(PyObject*) _PyUnicode_Copy( PyObject *unicode); /* Unsafe version of PyUnicode_Fill(): don't check arguments and so may crash if parameters are invalid (e.g. if length is longer than the string). */ extern void _PyUnicode_FastFill( PyObject *unicode, Py_ssize_t start, Py_ssize_t length, Py_UCS4 fill_char ); /* Unsafe version of PyUnicode_CopyCharacters(): don't check arguments and so may crash if parameters are invalid (e.g. if the output string is too short). */ extern void _PyUnicode_FastCopyCharacters( PyObject *to, Py_ssize_t to_start, PyObject *from, Py_ssize_t from_start, Py_ssize_t how_many ); /* Create a new string from a buffer of ASCII characters. WARNING: Don't check if the string contains any non-ASCII character. */ extern PyObject* _PyUnicode_FromASCII( const char *buffer, Py_ssize_t size); /* Compute the maximum character of the substring unicode[start:end]. Return 127 for an empty string. */ extern Py_UCS4 _PyUnicode_FindMaxChar ( PyObject *unicode, Py_ssize_t start, Py_ssize_t end); /* --- _PyUnicodeWriter API ----------------------------------------------- */ /* Format the object based on the format_spec, as defined in PEP 3101 (Advanced String Formatting). */ extern int _PyUnicode_FormatAdvancedWriter( _PyUnicodeWriter *writer, PyObject *obj, PyObject *format_spec, Py_ssize_t start, Py_ssize_t end); /* --- UTF-7 Codecs ------------------------------------------------------- */ extern PyObject* _PyUnicode_EncodeUTF7( PyObject *unicode, /* Unicode object */ int base64SetO, /* Encode RFC2152 Set O characters in base64 */ int base64WhiteSpace, /* Encode whitespace (sp, ht, nl, cr) in base64 */ const char *errors); /* error handling */ /* --- UTF-8 Codecs ------------------------------------------------------- */ // Export for '_tkinter' shared extension. PyAPI_FUNC(PyObject*) _PyUnicode_AsUTF8String( PyObject *unicode, const char *errors); /* --- UTF-32 Codecs ------------------------------------------------------ */ // Export for '_tkinter' shared extension PyAPI_FUNC(PyObject*) _PyUnicode_EncodeUTF32( PyObject *object, /* Unicode object */ const char *errors, /* error handling */ int byteorder); /* byteorder to use 0=BOM+native;-1=LE,1=BE */ /* --- UTF-16 Codecs ------------------------------------------------------ */ // Returns a Python string object holding the UTF-16 encoded value of // the Unicode data. // // If byteorder is not 0, output is written according to the following // byte order: // // byteorder == -1: little endian // byteorder == 0: native byte order (writes a BOM mark) // byteorder == 1: big endian // // If byteorder is 0, the output string will always start with the // Unicode BOM mark (U+FEFF). In the other two modes, no BOM mark is // prepended. // // Export for '_tkinter' shared extension PyAPI_FUNC(PyObject*) _PyUnicode_EncodeUTF16( PyObject* unicode, /* Unicode object */ const char *errors, /* error handling */ int byteorder); /* byteorder to use 0=BOM+native;-1=LE,1=BE */ /* --- Unicode-Escape Codecs ---------------------------------------------- */ /* Variant of PyUnicode_DecodeUnicodeEscape that supports partial decoding. */ extern PyObject* _PyUnicode_DecodeUnicodeEscapeStateful( const char *string, /* Unicode-Escape encoded string */ Py_ssize_t length, /* size of string */ const char *errors, /* error handling */ Py_ssize_t *consumed); /* bytes consumed */ // Helper for PyUnicode_DecodeUnicodeEscape that detects invalid escape // chars. // Export for test_peg_generator. PyAPI_FUNC(PyObject*) _PyUnicode_DecodeUnicodeEscapeInternal2( const char *string, /* Unicode-Escape encoded string */ Py_ssize_t length, /* size of string */ const char *errors, /* error handling */ Py_ssize_t *consumed, /* bytes consumed */ int *first_invalid_escape_char, /* on return, if not -1, contain the first invalid escaped char (<= 0xff) or invalid octal escape (> 0xff) in string. */ const char **first_invalid_escape_ptr); /* on return, if not NULL, may point to the first invalid escaped char in string. May be NULL if errors is not NULL. */ // Export for binary compatibility. PyAPI_FUNC(PyObject*) _PyUnicode_DecodeUnicodeEscapeInternal( const char *string, /* Unicode-Escape encoded string */ Py_ssize_t length, /* size of string */ const char *errors, /* error handling */ Py_ssize_t *consumed, /* bytes consumed */ const char **first_invalid_escape); /* on return, points to first invalid escaped char in string. */ /* --- Raw-Unicode-Escape Codecs ---------------------------------------------- */ /* Variant of PyUnicode_DecodeRawUnicodeEscape that supports partial decoding. */ extern PyObject* _PyUnicode_DecodeRawUnicodeEscapeStateful( const char *string, /* Unicode-Escape encoded string */ Py_ssize_t length, /* size of string */ const char *errors, /* error handling */ Py_ssize_t *consumed); /* bytes consumed */ /* --- Latin-1 Codecs ----------------------------------------------------- */ extern PyObject* _PyUnicode_AsLatin1String( PyObject* unicode, const char* errors); /* --- ASCII Codecs ------------------------------------------------------- */ extern PyObject* _PyUnicode_AsASCIIString( PyObject* unicode, const char* errors); /* --- Character Map Codecs ----------------------------------------------- */ /* Translate an Unicode object by applying a character mapping table to it and return the resulting Unicode object. The mapping table must map Unicode ordinal integers to Unicode strings, 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. */ extern PyObject* _PyUnicode_EncodeCharmap( PyObject *unicode, /* Unicode object */ PyObject *mapping, /* encoding mapping */ const char *errors); /* error handling */ /* --- Decimal Encoder ---------------------------------------------------- */ // Coverts a Unicode object holding a decimal value to an ASCII string // for using in int, float and complex parsers. // Transforms code points that have decimal digit property to the // corresponding ASCII digit code points. Transforms spaces to ASCII. // Transforms code points starting from the first non-ASCII code point that // is neither a decimal digit nor a space to the end into '?'. // // Export for '_testinternalcapi' shared extension. PyAPI_FUNC(PyObject*) _PyUnicode_TransformDecimalAndSpaceToASCII( PyObject *unicode); /* Unicode object */ /* --- Methods & Slots ---------------------------------------------------- */ PyAPI_FUNC(PyObject*) _PyUnicode_JoinArray( PyObject *separator, PyObject *const *items, Py_ssize_t seqlen ); /* Test whether a unicode is equal to ASCII identifier. Return 1 if true, 0 otherwise. The right argument must be ASCII identifier. Any error occurs inside will be cleared before return. */ extern int _PyUnicode_EqualToASCIIId( PyObject *left, /* Left string */ _Py_Identifier *right /* Right identifier */ ); // Test whether a unicode is equal to ASCII string. Return 1 if true, // 0 otherwise. The right argument must be ASCII-encoded string. // Any error occurs inside will be cleared before return. // Export for '_ctypes' shared extension PyAPI_FUNC(int) _PyUnicode_EqualToASCIIString( PyObject *left, const char *right /* ASCII-encoded string */ ); /* Externally visible for str.strip(unicode) */ extern PyObject* _PyUnicode_XStrip( PyObject *self, int striptype, PyObject *sepobj ); /* Using explicit passed-in values, insert the thousands grouping into the string pointed to by buffer. For the argument descriptions, see Objects/stringlib/localeutil.h */ extern Py_ssize_t _PyUnicode_InsertThousandsGrouping( _PyUnicodeWriter *writer, Py_ssize_t n_buffer, PyObject *digits, Py_ssize_t d_pos, Py_ssize_t n_digits, Py_ssize_t min_width, const char *grouping, PyObject *thousands_sep, Py_UCS4 *maxchar); /* --- Misc functions ----------------------------------------------------- */ extern PyObject* _PyUnicode_FormatLong(PyObject *, int, int, int); /* Fast equality check when the inputs are known to be exact unicode types and where the hash values are equal (i.e. a very probable match) */ extern int _PyUnicode_EQ(PyObject *, PyObject *); // Equality check. // Export for '_pickle' shared extension. PyAPI_FUNC(int) _PyUnicode_Equal(PyObject *, PyObject *); extern int _PyUnicode_WideCharString_Converter(PyObject *, void *); extern int _PyUnicode_WideCharString_Opt_Converter(PyObject *, void *); // Export for test_peg_generator PyAPI_FUNC(Py_ssize_t) _PyUnicode_ScanIdentifier(PyObject *); /* --- Runtime lifecycle -------------------------------------------------- */ extern void _PyUnicode_InitState(PyInterpreterState *); extern PyStatus _PyUnicode_InitGlobalObjects(PyInterpreterState *); extern PyStatus _PyUnicode_InitTypes(PyInterpreterState *); extern void _PyUnicode_Fini(PyInterpreterState *); extern void _PyUnicode_FiniTypes(PyInterpreterState *); extern PyTypeObject _PyUnicodeASCIIIter_Type; /* --- Interning ---------------------------------------------------------- */ // All these are "ref-neutral", like the public PyUnicode_InternInPlace. // Explicit interning routines: PyAPI_FUNC(void) _PyUnicode_InternMortal(PyInterpreterState *interp, PyObject **); PyAPI_FUNC(void) _PyUnicode_InternImmortal(PyInterpreterState *interp, PyObject **); // Left here to help backporting: PyAPI_FUNC(void) _PyUnicode_InternInPlace(PyInterpreterState *interp, PyObject **p); // Only for singletons in the _PyRuntime struct: extern void _PyUnicode_InternStatic(PyInterpreterState *interp, PyObject **); /* --- Other API ---------------------------------------------------------- */ struct _Py_unicode_runtime_ids { PyMutex mutex; // next_index value must be preserved when Py_Initialize()/Py_Finalize() // is called multiple times: see _PyUnicode_FromId() implementation. Py_ssize_t next_index; }; struct _Py_unicode_runtime_state { struct _Py_unicode_runtime_ids ids; }; /* fs_codec.encoding is initialized to NULL. Later, it is set to a non-NULL string by _PyUnicode_InitEncodings(). */ struct _Py_unicode_fs_codec { char *encoding; // Filesystem encoding (encoded to UTF-8) int utf8; // encoding=="utf-8"? char *errors; // Filesystem errors (encoded to UTF-8) _Py_error_handler error_handler; }; struct _Py_unicode_ids { Py_ssize_t size; PyObject **array; }; struct _Py_unicode_state { struct _Py_unicode_fs_codec fs_codec; _PyUnicode_Name_CAPI *ucnhash_capi; // Unicode identifiers (_Py_Identifier): see _PyUnicode_FromId() struct _Py_unicode_ids ids; }; extern void _PyUnicode_ClearInterned(PyInterpreterState *interp); // Like PyUnicode_AsUTF8(), but check for embedded null characters. // Export for '_sqlite3' shared extension. PyAPI_FUNC(const char *) _PyUnicode_AsUTF8NoNUL(PyObject *); #ifdef __cplusplus } #endif #endif /* !Py_INTERNAL_UNICODEOBJECT_H */
Save
cmd:
run