@simplexai/localmodels-darwin-arm64 0.1.0-dev.31.build.gitb5579b4b26f273bf03468c6aedf61b327fa6c245 → 0.1.0-dev.32

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (583) hide show
  1. package/bootstrap.identity +1 -1
  2. package/bootstrap.sha256 +10 -582
  3. package/modules/localmodels/__init__.py +1 -1
  4. package/modules/{simplex_localmodels-0.1.0.dev31.dist-info → simplex_localmodels-0.1.0.dev32.dist-info}/METADATA +1 -1
  5. package/modules/{simplex_localmodels-0.1.0.dev31.dist-info → simplex_localmodels-0.1.0.dev32.dist-info}/RECORD +7 -7
  6. package/package.json +1 -1
  7. package/tool.json +1 -1
  8. package/python/bin/2to3 +0 -7
  9. package/python/bin/2to3-3.12 +0 -7
  10. package/python/bin/idle3 +0 -7
  11. package/python/bin/idle3.12 +0 -7
  12. package/python/bin/pip +0 -8
  13. package/python/bin/pip3 +0 -8
  14. package/python/bin/pip3.12 +0 -8
  15. package/python/bin/pydoc3 +0 -7
  16. package/python/bin/pydoc3.12 +0 -7
  17. package/python/bin/python +0 -0
  18. package/python/bin/python3 +0 -0
  19. package/python/bin/python3-config +0 -76
  20. package/python/bin/python3.12-config +0 -76
  21. package/python/include/python3.12/Python.h +0 -109
  22. package/python/include/python3.12/abstract.h +0 -899
  23. package/python/include/python3.12/bltinmodule.h +0 -14
  24. package/python/include/python3.12/boolobject.h +0 -42
  25. package/python/include/python3.12/bytearrayobject.h +0 -44
  26. package/python/include/python3.12/bytesobject.h +0 -69
  27. package/python/include/python3.12/ceval.h +0 -168
  28. package/python/include/python3.12/codecs.h +0 -248
  29. package/python/include/python3.12/compile.h +0 -22
  30. package/python/include/python3.12/complexobject.h +0 -30
  31. package/python/include/python3.12/cpython/abstract.h +0 -206
  32. package/python/include/python3.12/cpython/bytearrayobject.h +0 -34
  33. package/python/include/python3.12/cpython/bytesobject.h +0 -133
  34. package/python/include/python3.12/cpython/cellobject.h +0 -44
  35. package/python/include/python3.12/cpython/ceval.h +0 -35
  36. package/python/include/python3.12/cpython/classobject.h +0 -71
  37. package/python/include/python3.12/cpython/code.h +0 -389
  38. package/python/include/python3.12/cpython/compile.h +0 -69
  39. package/python/include/python3.12/cpython/complexobject.h +0 -44
  40. package/python/include/python3.12/cpython/context.h +0 -78
  41. package/python/include/python3.12/cpython/descrobject.h +0 -64
  42. package/python/include/python3.12/cpython/dictobject.h +0 -118
  43. package/python/include/python3.12/cpython/fileobject.h +0 -19
  44. package/python/include/python3.12/cpython/fileutils.h +0 -8
  45. package/python/include/python3.12/cpython/floatobject.h +0 -27
  46. package/python/include/python3.12/cpython/frameobject.h +0 -29
  47. package/python/include/python3.12/cpython/funcobject.h +0 -190
  48. package/python/include/python3.12/cpython/genobject.h +0 -89
  49. package/python/include/python3.12/cpython/import.h +0 -46
  50. package/python/include/python3.12/cpython/initconfig.h +0 -256
  51. package/python/include/python3.12/cpython/interpreteridobject.h +0 -11
  52. package/python/include/python3.12/cpython/listobject.h +0 -47
  53. package/python/include/python3.12/cpython/longintrepr.h +0 -133
  54. package/python/include/python3.12/cpython/longobject.h +0 -100
  55. package/python/include/python3.12/cpython/memoryobject.h +0 -52
  56. package/python/include/python3.12/cpython/methodobject.h +0 -66
  57. package/python/include/python3.12/cpython/modsupport.h +0 -109
  58. package/python/include/python3.12/cpython/object.h +0 -575
  59. package/python/include/python3.12/cpython/objimpl.h +0 -95
  60. package/python/include/python3.12/cpython/odictobject.h +0 -43
  61. package/python/include/python3.12/cpython/picklebufobject.h +0 -31
  62. package/python/include/python3.12/cpython/pthread_stubs.h +0 -88
  63. package/python/include/python3.12/cpython/pyctype.h +0 -39
  64. package/python/include/python3.12/cpython/pydebug.h +0 -38
  65. package/python/include/python3.12/cpython/pyerrors.h +0 -178
  66. package/python/include/python3.12/cpython/pyfpe.h +0 -15
  67. package/python/include/python3.12/cpython/pyframe.h +0 -35
  68. package/python/include/python3.12/cpython/pylifecycle.h +0 -111
  69. package/python/include/python3.12/cpython/pymem.h +0 -98
  70. package/python/include/python3.12/cpython/pystate.h +0 -456
  71. package/python/include/python3.12/cpython/pythonrun.h +0 -121
  72. package/python/include/python3.12/cpython/pythread.h +0 -42
  73. package/python/include/python3.12/cpython/pytime.h +0 -331
  74. package/python/include/python3.12/cpython/setobject.h +0 -72
  75. package/python/include/python3.12/cpython/sysmodule.h +0 -16
  76. package/python/include/python3.12/cpython/traceback.h +0 -16
  77. package/python/include/python3.12/cpython/tupleobject.h +0 -39
  78. package/python/include/python3.12/cpython/unicodeobject.h +0 -976
  79. package/python/include/python3.12/cpython/warnings.h +0 -20
  80. package/python/include/python3.12/cpython/weakrefobject.h +0 -56
  81. package/python/include/python3.12/datetime.h +0 -267
  82. package/python/include/python3.12/descrobject.h +0 -100
  83. package/python/include/python3.12/dictobject.h +0 -97
  84. package/python/include/python3.12/dynamic_annotations.h +0 -499
  85. package/python/include/python3.12/enumobject.h +0 -17
  86. package/python/include/python3.12/errcode.h +0 -38
  87. package/python/include/python3.12/exports.h +0 -36
  88. package/python/include/python3.12/fileobject.h +0 -49
  89. package/python/include/python3.12/fileutils.h +0 -26
  90. package/python/include/python3.12/floatobject.h +0 -54
  91. package/python/include/python3.12/frameobject.h +0 -20
  92. package/python/include/python3.12/genericaliasobject.h +0 -14
  93. package/python/include/python3.12/import.h +0 -98
  94. package/python/include/python3.12/internal/pycore_abstract.h +0 -25
  95. package/python/include/python3.12/internal/pycore_asdl.h +0 -112
  96. package/python/include/python3.12/internal/pycore_ast.h +0 -922
  97. package/python/include/python3.12/internal/pycore_ast_state.h +0 -265
  98. package/python/include/python3.12/internal/pycore_atexit.h +0 -57
  99. package/python/include/python3.12/internal/pycore_atomic.h +0 -557
  100. package/python/include/python3.12/internal/pycore_atomic_funcs.h +0 -94
  101. package/python/include/python3.12/internal/pycore_bitutils.h +0 -186
  102. package/python/include/python3.12/internal/pycore_blocks_output_buffer.h +0 -317
  103. package/python/include/python3.12/internal/pycore_bytes_methods.h +0 -73
  104. package/python/include/python3.12/internal/pycore_bytesobject.h +0 -47
  105. package/python/include/python3.12/internal/pycore_call.h +0 -133
  106. package/python/include/python3.12/internal/pycore_ceval.h +0 -164
  107. package/python/include/python3.12/internal/pycore_ceval_state.h +0 -103
  108. package/python/include/python3.12/internal/pycore_code.h +0 -496
  109. package/python/include/python3.12/internal/pycore_compile.h +0 -118
  110. package/python/include/python3.12/internal/pycore_condvar.h +0 -99
  111. package/python/include/python3.12/internal/pycore_context.h +0 -71
  112. package/python/include/python3.12/internal/pycore_descrobject.h +0 -26
  113. package/python/include/python3.12/internal/pycore_dict.h +0 -199
  114. package/python/include/python3.12/internal/pycore_dict_state.h +0 -50
  115. package/python/include/python3.12/internal/pycore_dtoa.h +0 -69
  116. package/python/include/python3.12/internal/pycore_emscripten_signal.h +0 -25
  117. package/python/include/python3.12/internal/pycore_exceptions.h +0 -37
  118. package/python/include/python3.12/internal/pycore_faulthandler.h +0 -99
  119. package/python/include/python3.12/internal/pycore_fileutils.h +0 -292
  120. package/python/include/python3.12/internal/pycore_fileutils_windows.h +0 -98
  121. package/python/include/python3.12/internal/pycore_floatobject.h +0 -71
  122. package/python/include/python3.12/internal/pycore_flowgraph.h +0 -120
  123. package/python/include/python3.12/internal/pycore_format.h +0 -27
  124. package/python/include/python3.12/internal/pycore_frame.h +0 -283
  125. package/python/include/python3.12/internal/pycore_function.h +0 -26
  126. package/python/include/python3.12/internal/pycore_gc.h +0 -211
  127. package/python/include/python3.12/internal/pycore_genobject.h +0 -49
  128. package/python/include/python3.12/internal/pycore_getopt.h +0 -22
  129. package/python/include/python3.12/internal/pycore_gil.h +0 -50
  130. package/python/include/python3.12/internal/pycore_global_objects.h +0 -105
  131. package/python/include/python3.12/internal/pycore_global_objects_fini_generated.h +0 -1517
  132. package/python/include/python3.12/internal/pycore_global_strings.h +0 -777
  133. package/python/include/python3.12/internal/pycore_hamt.h +0 -134
  134. package/python/include/python3.12/internal/pycore_hashtable.h +0 -149
  135. package/python/include/python3.12/internal/pycore_import.h +0 -183
  136. package/python/include/python3.12/internal/pycore_initconfig.h +0 -179
  137. package/python/include/python3.12/internal/pycore_instruments.h +0 -106
  138. package/python/include/python3.12/internal/pycore_interp.h +0 -275
  139. package/python/include/python3.12/internal/pycore_intrinsics.h +0 -32
  140. package/python/include/python3.12/internal/pycore_list.h +0 -83
  141. package/python/include/python3.12/internal/pycore_long.h +0 -258
  142. package/python/include/python3.12/internal/pycore_memoryobject.h +0 -18
  143. package/python/include/python3.12/internal/pycore_moduleobject.h +0 -45
  144. package/python/include/python3.12/internal/pycore_namespace.h +0 -20
  145. package/python/include/python3.12/internal/pycore_object.h +0 -455
  146. package/python/include/python3.12/internal/pycore_object_state.h +0 -42
  147. package/python/include/python3.12/internal/pycore_obmalloc.h +0 -700
  148. package/python/include/python3.12/internal/pycore_obmalloc_init.h +0 -73
  149. package/python/include/python3.12/internal/pycore_opcode.h +0 -587
  150. package/python/include/python3.12/internal/pycore_opcode_utils.h +0 -92
  151. package/python/include/python3.12/internal/pycore_parser.h +0 -66
  152. package/python/include/python3.12/internal/pycore_pathconfig.h +0 -24
  153. package/python/include/python3.12/internal/pycore_pyarena.h +0 -64
  154. package/python/include/python3.12/internal/pycore_pyerrors.h +0 -129
  155. package/python/include/python3.12/internal/pycore_pyhash.h +0 -40
  156. package/python/include/python3.12/internal/pycore_pylifecycle.h +0 -99
  157. package/python/include/python3.12/internal/pycore_pymath.h +0 -205
  158. package/python/include/python3.12/internal/pycore_pymem.h +0 -98
  159. package/python/include/python3.12/internal/pycore_pymem_init.h +0 -85
  160. package/python/include/python3.12/internal/pycore_pystate.h +0 -180
  161. package/python/include/python3.12/internal/pycore_pythread.h +0 -81
  162. package/python/include/python3.12/internal/pycore_range.h +0 -21
  163. package/python/include/python3.12/internal/pycore_runtime.h +0 -235
  164. package/python/include/python3.12/internal/pycore_runtime_init.h +0 -188
  165. package/python/include/python3.12/internal/pycore_runtime_init_generated.h +0 -1511
  166. package/python/include/python3.12/internal/pycore_signal.h +0 -98
  167. package/python/include/python3.12/internal/pycore_sliceobject.h +0 -22
  168. package/python/include/python3.12/internal/pycore_strhex.h +0 -36
  169. package/python/include/python3.12/internal/pycore_structseq.h +0 -39
  170. package/python/include/python3.12/internal/pycore_symtable.h +0 -160
  171. package/python/include/python3.12/internal/pycore_sysmodule.h +0 -34
  172. package/python/include/python3.12/internal/pycore_time.h +0 -25
  173. package/python/include/python3.12/internal/pycore_token.h +0 -108
  174. package/python/include/python3.12/internal/pycore_traceback.h +0 -101
  175. package/python/include/python3.12/internal/pycore_tracemalloc.h +0 -123
  176. package/python/include/python3.12/internal/pycore_tuple.h +0 -79
  177. package/python/include/python3.12/internal/pycore_typeobject.h +0 -151
  178. package/python/include/python3.12/internal/pycore_typevarobject.h +0 -24
  179. package/python/include/python3.12/internal/pycore_ucnhash.h +0 -34
  180. package/python/include/python3.12/internal/pycore_unicodeobject.h +0 -86
  181. package/python/include/python3.12/internal/pycore_unicodeobject_generated.h +0 -2832
  182. package/python/include/python3.12/internal/pycore_unionobject.h +0 -23
  183. package/python/include/python3.12/internal/pycore_warnings.h +0 -29
  184. package/python/include/python3.12/interpreteridobject.h +0 -17
  185. package/python/include/python3.12/intrcheck.h +0 -30
  186. package/python/include/python3.12/iterobject.h +0 -27
  187. package/python/include/python3.12/listobject.h +0 -52
  188. package/python/include/python3.12/longobject.h +0 -108
  189. package/python/include/python3.12/marshal.h +0 -31
  190. package/python/include/python3.12/memoryobject.h +0 -34
  191. package/python/include/python3.12/methodobject.h +0 -132
  192. package/python/include/python3.12/modsupport.h +0 -168
  193. package/python/include/python3.12/moduleobject.h +0 -119
  194. package/python/include/python3.12/object.h +0 -993
  195. package/python/include/python3.12/objimpl.h +0 -234
  196. package/python/include/python3.12/opcode.h +0 -271
  197. package/python/include/python3.12/osdefs.h +0 -51
  198. package/python/include/python3.12/osmodule.h +0 -17
  199. package/python/include/python3.12/patchlevel.h +0 -35
  200. package/python/include/python3.12/py_curses.h +0 -99
  201. package/python/include/python3.12/pybuffer.h +0 -145
  202. package/python/include/python3.12/pycapsule.h +0 -59
  203. package/python/include/python3.12/pyconfig.h +0 -1943
  204. package/python/include/python3.12/pydtrace.h +0 -59
  205. package/python/include/python3.12/pyerrors.h +0 -337
  206. package/python/include/python3.12/pyexpat.h +0 -70
  207. package/python/include/python3.12/pyframe.h +0 -26
  208. package/python/include/python3.12/pyhash.h +0 -146
  209. package/python/include/python3.12/pylifecycle.h +0 -78
  210. package/python/include/python3.12/pymacconfig.h +0 -99
  211. package/python/include/python3.12/pymacro.h +0 -172
  212. package/python/include/python3.12/pymath.h +0 -62
  213. package/python/include/python3.12/pymem.h +0 -104
  214. package/python/include/python3.12/pyport.h +0 -782
  215. package/python/include/python3.12/pystate.h +0 -132
  216. package/python/include/python3.12/pystats.h +0 -110
  217. package/python/include/python3.12/pystrcmp.h +0 -23
  218. package/python/include/python3.12/pystrtod.h +0 -46
  219. package/python/include/python3.12/pythonrun.h +0 -49
  220. package/python/include/python3.12/pythread.h +0 -135
  221. package/python/include/python3.12/pytypedefs.h +0 -30
  222. package/python/include/python3.12/rangeobject.h +0 -27
  223. package/python/include/python3.12/setobject.h +0 -49
  224. package/python/include/python3.12/sliceobject.h +0 -65
  225. package/python/include/python3.12/structmember.h +0 -56
  226. package/python/include/python3.12/structseq.h +0 -49
  227. package/python/include/python3.12/sysmodule.h +0 -54
  228. package/python/include/python3.12/traceback.h +0 -26
  229. package/python/include/python3.12/tracemalloc.h +0 -77
  230. package/python/include/python3.12/tupleobject.h +0 -46
  231. package/python/include/python3.12/typeslots.h +0 -88
  232. package/python/include/python3.12/unicodeobject.h +0 -1020
  233. package/python/include/python3.12/warnings.h +0 -45
  234. package/python/include/python3.12/weakrefobject.h +0 -42
  235. package/python/lib/itcl4.3.8/itcl.tcl +0 -151
  236. package/python/lib/itcl4.3.8/itclConfig.sh +0 -67
  237. package/python/lib/itcl4.3.8/itclHullCmds.tcl +0 -562
  238. package/python/lib/itcl4.3.8/itclWidget.tcl +0 -447
  239. package/python/lib/itcl4.3.8/libitcl4.3.8.dylib +0 -0
  240. package/python/lib/itcl4.3.8/libitclstub.a +0 -0
  241. package/python/lib/itcl4.3.8/libitclstub4.3.8.a +0 -0
  242. package/python/lib/itcl4.3.8/libtcl9itcl4.3.8.dylib +0 -0
  243. package/python/lib/itcl4.3.8/pkgIndex.tcl +0 -14
  244. package/python/lib/libpython3.12.dylib +0 -0
  245. package/python/lib/libtcl9.0.dylib +0 -0
  246. package/python/lib/libtcl9tk9.0.dylib +0 -0
  247. package/python/lib/pkgconfig/python-3.12-embed.pc +0 -13
  248. package/python/lib/pkgconfig/python-3.12.pc +0 -13
  249. package/python/lib/pkgconfig/python3-embed.pc +0 -13
  250. package/python/lib/pkgconfig/python3.pc +0 -13
  251. package/python/lib/python3.12/config-3.12-darwin/Makefile +0 -3273
  252. package/python/lib/python3.12/config-3.12-darwin/Setup +0 -303
  253. package/python/lib/python3.12/config-3.12-darwin/Setup.bootstrap +0 -36
  254. package/python/lib/python3.12/config-3.12-darwin/Setup.local +0 -19
  255. package/python/lib/python3.12/config-3.12-darwin/Setup.stdlib +0 -183
  256. package/python/lib/python3.12/config-3.12-darwin/config.c +0 -246
  257. package/python/lib/python3.12/config-3.12-darwin/config.c.in +0 -71
  258. package/python/lib/python3.12/config-3.12-darwin/install-sh +0 -541
  259. package/python/lib/python3.12/config-3.12-darwin/makesetup +0 -353
  260. package/python/lib/python3.12/config-3.12-darwin/python-config.py +0 -76
  261. package/python/lib/python3.12/config-3.12-darwin/python.o +0 -0
  262. package/python/lib/python3.12/idlelib/CREDITS.txt +0 -47
  263. package/python/lib/python3.12/idlelib/ChangeLog +0 -1591
  264. package/python/lib/python3.12/idlelib/HISTORY.txt +0 -296
  265. package/python/lib/python3.12/idlelib/Icons/README.txt +0 -51
  266. package/python/lib/python3.12/idlelib/Icons/folder.gif +0 -0
  267. package/python/lib/python3.12/idlelib/Icons/idle.ico +0 -0
  268. package/python/lib/python3.12/idlelib/Icons/idle_16.gif +0 -0
  269. package/python/lib/python3.12/idlelib/Icons/idle_16.png +0 -0
  270. package/python/lib/python3.12/idlelib/Icons/idle_256.png +0 -0
  271. package/python/lib/python3.12/idlelib/Icons/idle_32.gif +0 -0
  272. package/python/lib/python3.12/idlelib/Icons/idle_32.png +0 -0
  273. package/python/lib/python3.12/idlelib/Icons/idle_48.gif +0 -0
  274. package/python/lib/python3.12/idlelib/Icons/idle_48.png +0 -0
  275. package/python/lib/python3.12/idlelib/Icons/minusnode.gif +0 -0
  276. package/python/lib/python3.12/idlelib/Icons/openfolder.gif +0 -0
  277. package/python/lib/python3.12/idlelib/Icons/plusnode.gif +0 -0
  278. package/python/lib/python3.12/idlelib/Icons/python.gif +0 -0
  279. package/python/lib/python3.12/idlelib/Icons/tk.gif +0 -0
  280. package/python/lib/python3.12/idlelib/NEWS2x.txt +0 -660
  281. package/python/lib/python3.12/idlelib/News3.txt +0 -1390
  282. package/python/lib/python3.12/idlelib/README.txt +0 -290
  283. package/python/lib/python3.12/idlelib/TODO.txt +0 -210
  284. package/python/lib/python3.12/idlelib/__init__.py +0 -10
  285. package/python/lib/python3.12/idlelib/__main__.py +0 -7
  286. package/python/lib/python3.12/idlelib/autocomplete.py +0 -228
  287. package/python/lib/python3.12/idlelib/autocomplete_w.py +0 -498
  288. package/python/lib/python3.12/idlelib/autoexpand.py +0 -96
  289. package/python/lib/python3.12/idlelib/browser.py +0 -260
  290. package/python/lib/python3.12/idlelib/calltip.py +0 -205
  291. package/python/lib/python3.12/idlelib/calltip_w.py +0 -202
  292. package/python/lib/python3.12/idlelib/codecontext.py +0 -270
  293. package/python/lib/python3.12/idlelib/colorizer.py +0 -384
  294. package/python/lib/python3.12/idlelib/config-extensions.def +0 -62
  295. package/python/lib/python3.12/idlelib/config-highlight.def +0 -105
  296. package/python/lib/python3.12/idlelib/config-keys.def +0 -309
  297. package/python/lib/python3.12/idlelib/config-main.def +0 -93
  298. package/python/lib/python3.12/idlelib/config.py +0 -917
  299. package/python/lib/python3.12/idlelib/config_key.py +0 -354
  300. package/python/lib/python3.12/idlelib/configdialog.py +0 -2408
  301. package/python/lib/python3.12/idlelib/debugger.py +0 -602
  302. package/python/lib/python3.12/idlelib/debugger_r.py +0 -390
  303. package/python/lib/python3.12/idlelib/debugobj.py +0 -146
  304. package/python/lib/python3.12/idlelib/debugobj_r.py +0 -41
  305. package/python/lib/python3.12/idlelib/delegator.py +0 -34
  306. package/python/lib/python3.12/idlelib/dynoption.py +0 -57
  307. package/python/lib/python3.12/idlelib/editor.py +0 -1767
  308. package/python/lib/python3.12/idlelib/extend.txt +0 -83
  309. package/python/lib/python3.12/idlelib/filelist.py +0 -132
  310. package/python/lib/python3.12/idlelib/format.py +0 -426
  311. package/python/lib/python3.12/idlelib/grep.py +0 -223
  312. package/python/lib/python3.12/idlelib/help.html +0 -805
  313. package/python/lib/python3.12/idlelib/help.py +0 -297
  314. package/python/lib/python3.12/idlelib/help_about.py +0 -211
  315. package/python/lib/python3.12/idlelib/history.py +0 -106
  316. package/python/lib/python3.12/idlelib/hyperparser.py +0 -312
  317. package/python/lib/python3.12/idlelib/idle.bat +0 -4
  318. package/python/lib/python3.12/idlelib/idle.py +0 -14
  319. package/python/lib/python3.12/idlelib/idle.pyw +0 -17
  320. package/python/lib/python3.12/idlelib/iomenu.py +0 -441
  321. package/python/lib/python3.12/idlelib/macosx.py +0 -278
  322. package/python/lib/python3.12/idlelib/mainmenu.py +0 -126
  323. package/python/lib/python3.12/idlelib/multicall.py +0 -451
  324. package/python/lib/python3.12/idlelib/outwin.py +0 -188
  325. package/python/lib/python3.12/idlelib/parenmatch.py +0 -183
  326. package/python/lib/python3.12/idlelib/pathbrowser.py +0 -107
  327. package/python/lib/python3.12/idlelib/percolator.py +0 -120
  328. package/python/lib/python3.12/idlelib/pyparse.py +0 -589
  329. package/python/lib/python3.12/idlelib/pyshell.py +0 -1694
  330. package/python/lib/python3.12/idlelib/query.py +0 -392
  331. package/python/lib/python3.12/idlelib/redirector.py +0 -173
  332. package/python/lib/python3.12/idlelib/replace.py +0 -300
  333. package/python/lib/python3.12/idlelib/rpc.py +0 -635
  334. package/python/lib/python3.12/idlelib/run.py +0 -646
  335. package/python/lib/python3.12/idlelib/runscript.py +0 -213
  336. package/python/lib/python3.12/idlelib/scrolledlist.py +0 -151
  337. package/python/lib/python3.12/idlelib/search.py +0 -165
  338. package/python/lib/python3.12/idlelib/searchbase.py +0 -210
  339. package/python/lib/python3.12/idlelib/searchengine.py +0 -235
  340. package/python/lib/python3.12/idlelib/sidebar.py +0 -544
  341. package/python/lib/python3.12/idlelib/squeezer.py +0 -345
  342. package/python/lib/python3.12/idlelib/stackviewer.py +0 -134
  343. package/python/lib/python3.12/idlelib/statusbar.py +0 -52
  344. package/python/lib/python3.12/idlelib/textview.py +0 -193
  345. package/python/lib/python3.12/idlelib/tooltip.py +0 -190
  346. package/python/lib/python3.12/idlelib/tree.py +0 -509
  347. package/python/lib/python3.12/idlelib/undo.py +0 -367
  348. package/python/lib/python3.12/idlelib/util.py +0 -37
  349. package/python/lib/python3.12/idlelib/window.py +0 -98
  350. package/python/lib/python3.12/idlelib/zoomheight.py +0 -124
  351. package/python/lib/python3.12/idlelib/zzdummy.py +0 -73
  352. package/python/lib/python3.12/lib-dynload/_tkinter.cpython-312-darwin.so +0 -0
  353. package/python/lib/python3.12/tkinter/__init__.py +0 -4682
  354. package/python/lib/python3.12/tkinter/__main__.py +0 -7
  355. package/python/lib/python3.12/tkinter/colorchooser.py +0 -86
  356. package/python/lib/python3.12/tkinter/commondialog.py +0 -53
  357. package/python/lib/python3.12/tkinter/constants.py +0 -110
  358. package/python/lib/python3.12/tkinter/dialog.py +0 -49
  359. package/python/lib/python3.12/tkinter/dnd.py +0 -324
  360. package/python/lib/python3.12/tkinter/filedialog.py +0 -492
  361. package/python/lib/python3.12/tkinter/font.py +0 -239
  362. package/python/lib/python3.12/tkinter/messagebox.py +0 -146
  363. package/python/lib/python3.12/tkinter/scrolledtext.py +0 -56
  364. package/python/lib/python3.12/tkinter/simpledialog.py +0 -441
  365. package/python/lib/python3.12/tkinter/tix.py +0 -1948
  366. package/python/lib/python3.12/tkinter/ttk.py +0 -1640
  367. package/python/lib/python3.12/turtle.py +0 -4207
  368. package/python/lib/python3.12/turtledemo/__init__.py +0 -14
  369. package/python/lib/python3.12/turtledemo/__main__.py +0 -404
  370. package/python/lib/python3.12/turtledemo/bytedesign.py +0 -161
  371. package/python/lib/python3.12/turtledemo/chaos.py +0 -59
  372. package/python/lib/python3.12/turtledemo/clock.py +0 -138
  373. package/python/lib/python3.12/turtledemo/colormixer.py +0 -58
  374. package/python/lib/python3.12/turtledemo/forest.py +0 -108
  375. package/python/lib/python3.12/turtledemo/fractalcurves.py +0 -138
  376. package/python/lib/python3.12/turtledemo/lindenmayer.py +0 -119
  377. package/python/lib/python3.12/turtledemo/minimal_hanoi.py +0 -79
  378. package/python/lib/python3.12/turtledemo/nim.py +0 -226
  379. package/python/lib/python3.12/turtledemo/paint.py +0 -54
  380. package/python/lib/python3.12/turtledemo/peace.py +0 -61
  381. package/python/lib/python3.12/turtledemo/penrose.py +0 -175
  382. package/python/lib/python3.12/turtledemo/planet_and_moon.py +0 -111
  383. package/python/lib/python3.12/turtledemo/rosette.py +0 -65
  384. package/python/lib/python3.12/turtledemo/round_dance.py +0 -86
  385. package/python/lib/python3.12/turtledemo/sorting_animate.py +0 -204
  386. package/python/lib/python3.12/turtledemo/tree.py +0 -62
  387. package/python/lib/python3.12/turtledemo/turtle.cfg +0 -10
  388. package/python/lib/python3.12/turtledemo/two_canvases.py +0 -54
  389. package/python/lib/python3.12/turtledemo/yinyang.py +0 -49
  390. package/python/lib/tcl9/9.0/http-2.10.2.tm +0 -5451
  391. package/python/lib/tcl9/9.0/msgcat-1.7.1.tm +0 -1349
  392. package/python/lib/tcl9/9.0/platform/shell-1.1.4.tm +0 -241
  393. package/python/lib/tcl9/9.0/platform-1.1.0.tm +0 -442
  394. package/python/lib/tcl9/9.0/tcltest-2.5.11.tm +0 -3600
  395. package/python/lib/tcl9.0/auto.tcl +0 -710
  396. package/python/lib/tcl9.0/clock.tcl +0 -2110
  397. package/python/lib/tcl9.0/cookiejar0.2/cookiejar.tcl +0 -746
  398. package/python/lib/tcl9.0/cookiejar0.2/idna.tcl +0 -292
  399. package/python/lib/tcl9.0/cookiejar0.2/pkgIndex.tcl +0 -3
  400. package/python/lib/tcl9.0/cookiejar0.2/public_suffix_list.dat.gz +0 -0
  401. package/python/lib/tcl9.0/encoding/ascii.enc +0 -20
  402. package/python/lib/tcl9.0/encoding/big5.enc +0 -1516
  403. package/python/lib/tcl9.0/encoding/cns11643.enc +0 -1584
  404. package/python/lib/tcl9.0/encoding/cp1250.enc +0 -20
  405. package/python/lib/tcl9.0/encoding/cp1251.enc +0 -20
  406. package/python/lib/tcl9.0/encoding/cp1252.enc +0 -20
  407. package/python/lib/tcl9.0/encoding/cp1253.enc +0 -20
  408. package/python/lib/tcl9.0/encoding/cp1254.enc +0 -20
  409. package/python/lib/tcl9.0/encoding/cp1255.enc +0 -20
  410. package/python/lib/tcl9.0/encoding/cp1256.enc +0 -20
  411. package/python/lib/tcl9.0/encoding/cp1257.enc +0 -20
  412. package/python/lib/tcl9.0/encoding/cp1258.enc +0 -20
  413. package/python/lib/tcl9.0/encoding/cp165.enc +0 -20
  414. package/python/lib/tcl9.0/encoding/cp437.enc +0 -20
  415. package/python/lib/tcl9.0/encoding/cp737.enc +0 -20
  416. package/python/lib/tcl9.0/encoding/cp775.enc +0 -20
  417. package/python/lib/tcl9.0/encoding/cp850.enc +0 -20
  418. package/python/lib/tcl9.0/encoding/cp852.enc +0 -20
  419. package/python/lib/tcl9.0/encoding/cp855.enc +0 -20
  420. package/python/lib/tcl9.0/encoding/cp857.enc +0 -20
  421. package/python/lib/tcl9.0/encoding/cp860.enc +0 -20
  422. package/python/lib/tcl9.0/encoding/cp861.enc +0 -20
  423. package/python/lib/tcl9.0/encoding/cp862.enc +0 -20
  424. package/python/lib/tcl9.0/encoding/cp863.enc +0 -20
  425. package/python/lib/tcl9.0/encoding/cp864.enc +0 -20
  426. package/python/lib/tcl9.0/encoding/cp865.enc +0 -20
  427. package/python/lib/tcl9.0/encoding/cp866.enc +0 -20
  428. package/python/lib/tcl9.0/encoding/cp869.enc +0 -20
  429. package/python/lib/tcl9.0/encoding/cp874.enc +0 -20
  430. package/python/lib/tcl9.0/encoding/cp932.enc +0 -801
  431. package/python/lib/tcl9.0/encoding/cp936.enc +0 -2162
  432. package/python/lib/tcl9.0/encoding/cp949.enc +0 -2128
  433. package/python/lib/tcl9.0/encoding/cp950.enc +0 -1499
  434. package/python/lib/tcl9.0/encoding/dingbats.enc +0 -20
  435. package/python/lib/tcl9.0/encoding/ebcdic.enc +0 -20
  436. package/python/lib/tcl9.0/encoding/euc-cn.enc +0 -1397
  437. package/python/lib/tcl9.0/encoding/euc-jp.enc +0 -1353
  438. package/python/lib/tcl9.0/encoding/euc-kr.enc +0 -1533
  439. package/python/lib/tcl9.0/encoding/gb12345.enc +0 -1414
  440. package/python/lib/tcl9.0/encoding/gb1988.enc +0 -20
  441. package/python/lib/tcl9.0/encoding/gb2312-raw.enc +0 -1380
  442. package/python/lib/tcl9.0/encoding/gb2312.enc +0 -1397
  443. package/python/lib/tcl9.0/encoding/iso2022-jp.enc +0 -12
  444. package/python/lib/tcl9.0/encoding/iso2022-kr.enc +0 -7
  445. package/python/lib/tcl9.0/encoding/iso2022.enc +0 -14
  446. package/python/lib/tcl9.0/encoding/iso8859-1.enc +0 -20
  447. package/python/lib/tcl9.0/encoding/iso8859-10.enc +0 -20
  448. package/python/lib/tcl9.0/encoding/iso8859-11.enc +0 -20
  449. package/python/lib/tcl9.0/encoding/iso8859-13.enc +0 -20
  450. package/python/lib/tcl9.0/encoding/iso8859-14.enc +0 -20
  451. package/python/lib/tcl9.0/encoding/iso8859-15.enc +0 -20
  452. package/python/lib/tcl9.0/encoding/iso8859-16.enc +0 -20
  453. package/python/lib/tcl9.0/encoding/iso8859-2.enc +0 -20
  454. package/python/lib/tcl9.0/encoding/iso8859-3.enc +0 -20
  455. package/python/lib/tcl9.0/encoding/iso8859-4.enc +0 -20
  456. package/python/lib/tcl9.0/encoding/iso8859-5.enc +0 -20
  457. package/python/lib/tcl9.0/encoding/iso8859-6.enc +0 -20
  458. package/python/lib/tcl9.0/encoding/iso8859-7.enc +0 -20
  459. package/python/lib/tcl9.0/encoding/iso8859-8.enc +0 -20
  460. package/python/lib/tcl9.0/encoding/iso8859-9.enc +0 -20
  461. package/python/lib/tcl9.0/encoding/jis0201.enc +0 -20
  462. package/python/lib/tcl9.0/encoding/jis0208.enc +0 -1319
  463. package/python/lib/tcl9.0/encoding/jis0212.enc +0 -1159
  464. package/python/lib/tcl9.0/encoding/koi8-r.enc +0 -20
  465. package/python/lib/tcl9.0/encoding/koi8-ru.enc +0 -20
  466. package/python/lib/tcl9.0/encoding/koi8-t.enc +0 -20
  467. package/python/lib/tcl9.0/encoding/koi8-u.enc +0 -20
  468. package/python/lib/tcl9.0/encoding/ksc5601.enc +0 -1516
  469. package/python/lib/tcl9.0/encoding/macCentEuro.enc +0 -20
  470. package/python/lib/tcl9.0/encoding/macCroatian.enc +0 -20
  471. package/python/lib/tcl9.0/encoding/macCyrillic.enc +0 -20
  472. package/python/lib/tcl9.0/encoding/macDingbats.enc +0 -20
  473. package/python/lib/tcl9.0/encoding/macGreek.enc +0 -20
  474. package/python/lib/tcl9.0/encoding/macIceland.enc +0 -20
  475. package/python/lib/tcl9.0/encoding/macJapan.enc +0 -785
  476. package/python/lib/tcl9.0/encoding/macRoman.enc +0 -20
  477. package/python/lib/tcl9.0/encoding/macRomania.enc +0 -20
  478. package/python/lib/tcl9.0/encoding/macThai.enc +0 -20
  479. package/python/lib/tcl9.0/encoding/macTurkish.enc +0 -20
  480. package/python/lib/tcl9.0/encoding/macUkraine.enc +0 -20
  481. package/python/lib/tcl9.0/encoding/shiftjis.enc +0 -690
  482. package/python/lib/tcl9.0/encoding/symbol.enc +0 -20
  483. package/python/lib/tcl9.0/encoding/tis-620.enc +0 -20
  484. package/python/lib/tcl9.0/foreachline.tcl +0 -25
  485. package/python/lib/tcl9.0/history.tcl +0 -335
  486. package/python/lib/tcl9.0/icu.tcl +0 -145
  487. package/python/lib/tcl9.0/init.tcl +0 -772
  488. package/python/lib/tcl9.0/install.tcl +0 -274
  489. package/python/lib/tcl9.0/opt0.4/optparse.tcl +0 -1060
  490. package/python/lib/tcl9.0/opt0.4/pkgIndex.tcl +0 -12
  491. package/python/lib/tcl9.0/package.tcl +0 -776
  492. package/python/lib/tcl9.0/parray.tcl +0 -28
  493. package/python/lib/tcl9.0/readfile.tcl +0 -23
  494. package/python/lib/tcl9.0/safe.tcl +0 -1459
  495. package/python/lib/tcl9.0/tclAppInit.c +0 -183
  496. package/python/lib/tcl9.0/tclIndex +0 -112
  497. package/python/lib/tcl9.0/tm.tcl +0 -378
  498. package/python/lib/tcl9.0/word.tcl +0 -155
  499. package/python/lib/tcl9.0/writefile.tcl +0 -37
  500. package/python/lib/thread3.0.6/libtcl9thread3.0.6.dylib +0 -0
  501. package/python/lib/thread3.0.6/libthread3.0.6.dylib +0 -0
  502. package/python/lib/thread3.0.6/pkgIndex.tcl +0 -52
  503. package/python/lib/thread3.0.6/ttrace.tcl +0 -943
  504. package/python/lib/tk9.0/bgerror.tcl +0 -282
  505. package/python/lib/tk9.0/button.tcl +0 -782
  506. package/python/lib/tk9.0/choosedir.tcl +0 -310
  507. package/python/lib/tk9.0/clrpick.tcl +0 -696
  508. package/python/lib/tk9.0/comdlg.tcl +0 -322
  509. package/python/lib/tk9.0/console.tcl +0 -1148
  510. package/python/lib/tk9.0/dialog.tcl +0 -175
  511. package/python/lib/tk9.0/entry.tcl +0 -721
  512. package/python/lib/tk9.0/focus.tcl +0 -178
  513. package/python/lib/tk9.0/fontchooser.tcl +0 -512
  514. package/python/lib/tk9.0/iconbadges.tcl +0 -253
  515. package/python/lib/tk9.0/iconlist.tcl +0 -705
  516. package/python/lib/tk9.0/icons.tcl +0 -54
  517. package/python/lib/tk9.0/images/README +0 -7
  518. package/python/lib/tk9.0/images/logo.eps +0 -2091
  519. package/python/lib/tk9.0/images/logo100.gif +0 -0
  520. package/python/lib/tk9.0/images/logo64.gif +0 -0
  521. package/python/lib/tk9.0/images/logoLarge.gif +0 -0
  522. package/python/lib/tk9.0/images/logoMed.gif +0 -0
  523. package/python/lib/tk9.0/images/pwrdLogo.eps +0 -1897
  524. package/python/lib/tk9.0/images/pwrdLogo100.gif +0 -0
  525. package/python/lib/tk9.0/images/pwrdLogo150.gif +0 -0
  526. package/python/lib/tk9.0/images/pwrdLogo175.gif +0 -0
  527. package/python/lib/tk9.0/images/pwrdLogo200.gif +0 -0
  528. package/python/lib/tk9.0/images/pwrdLogo75.gif +0 -0
  529. package/python/lib/tk9.0/images/tai-ku.gif +0 -0
  530. package/python/lib/tk9.0/listbox.tcl +0 -522
  531. package/python/lib/tk9.0/megawidget.tcl +0 -297
  532. package/python/lib/tk9.0/menu.tcl +0 -1376
  533. package/python/lib/tk9.0/mkpsenc.tcl +0 -1488
  534. package/python/lib/tk9.0/msgbox.tcl +0 -454
  535. package/python/lib/tk9.0/optMenu.tcl +0 -43
  536. package/python/lib/tk9.0/palette.tcl +0 -283
  537. package/python/lib/tk9.0/panedwindow.tcl +0 -194
  538. package/python/lib/tk9.0/pkgIndex.tcl +0 -3
  539. package/python/lib/tk9.0/print.tcl +0 -1460
  540. package/python/lib/tk9.0/safetk.tcl +0 -262
  541. package/python/lib/tk9.0/scale.tcl +0 -299
  542. package/python/lib/tk9.0/scaling.tcl +0 -232
  543. package/python/lib/tk9.0/scrlbar.tcl +0 -506
  544. package/python/lib/tk9.0/spinbox.tcl +0 -590
  545. package/python/lib/tk9.0/systray.tcl +0 -483
  546. package/python/lib/tk9.0/tclIndex +0 -252
  547. package/python/lib/tk9.0/tearoff.tcl +0 -155
  548. package/python/lib/tk9.0/text.tcl +0 -1295
  549. package/python/lib/tk9.0/tk.tcl +0 -853
  550. package/python/lib/tk9.0/tkAppInit.c +0 -200
  551. package/python/lib/tk9.0/tkfbox.tcl +0 -1251
  552. package/python/lib/tk9.0/ttk/altTheme.tcl +0 -158
  553. package/python/lib/tk9.0/ttk/aquaTheme.tcl +0 -254
  554. package/python/lib/tk9.0/ttk/button.tcl +0 -83
  555. package/python/lib/tk9.0/ttk/clamTheme.tcl +0 -200
  556. package/python/lib/tk9.0/ttk/classicTheme.tcl +0 -165
  557. package/python/lib/tk9.0/ttk/combobox.tcl +0 -555
  558. package/python/lib/tk9.0/ttk/cursors.tcl +0 -205
  559. package/python/lib/tk9.0/ttk/defaults.tcl +0 -250
  560. package/python/lib/tk9.0/ttk/entry.tcl +0 -678
  561. package/python/lib/tk9.0/ttk/fonts.tcl +0 -152
  562. package/python/lib/tk9.0/ttk/menubutton.tcl +0 -237
  563. package/python/lib/tk9.0/ttk/notebook.tcl +0 -261
  564. package/python/lib/tk9.0/ttk/panedwindow.tcl +0 -89
  565. package/python/lib/tk9.0/ttk/progress.tcl +0 -55
  566. package/python/lib/tk9.0/ttk/scale.tcl +0 -94
  567. package/python/lib/tk9.0/ttk/scrollbar.tcl +0 -119
  568. package/python/lib/tk9.0/ttk/sizegrip.tcl +0 -102
  569. package/python/lib/tk9.0/ttk/spinbox.tcl +0 -204
  570. package/python/lib/tk9.0/ttk/treeview.tcl +0 -464
  571. package/python/lib/tk9.0/ttk/ttk.tcl +0 -220
  572. package/python/lib/tk9.0/ttk/utils.tcl +0 -317
  573. package/python/lib/tk9.0/ttk/vistaTheme.tcl +0 -260
  574. package/python/lib/tk9.0/ttk/winTheme.tcl +0 -123
  575. package/python/lib/tk9.0/ttk/xpTheme.tcl +0 -99
  576. package/python/lib/tk9.0/xmfbox.tcl +0 -982
  577. package/python/share/man/man1/python.1 +0 -630
  578. package/python/share/man/man1/python3.1 +0 -630
  579. package/python/share/man/man1/python3.12.1 +0 -630
  580. /package/modules/{simplex_localmodels-0.1.0.dev31.dist-info → simplex_localmodels-0.1.0.dev32.dist-info}/WHEEL +0 -0
  581. /package/modules/{simplex_localmodels-0.1.0.dev31.dist-info → simplex_localmodels-0.1.0.dev32.dist-info}/entry_points.txt +0 -0
  582. /package/modules/{simplex_localmodels-0.1.0.dev31.dist-info → simplex_localmodels-0.1.0.dev32.dist-info}/licenses/NOTICE +0 -0
  583. /package/modules/{simplex_localmodels-0.1.0.dev31.dist-info → simplex_localmodels-0.1.0.dev32.dist-info}/licenses/localmodels/HERMES-LICENSE +0 -0
@@ -1,1020 +0,0 @@
1
- #ifndef Py_UNICODEOBJECT_H
2
- #define Py_UNICODEOBJECT_H
3
-
4
- #include <stdarg.h> // va_list
5
-
6
- /*
7
-
8
- Unicode implementation based on original code by Fredrik Lundh,
9
- modified by Marc-Andre Lemburg (mal@lemburg.com) according to the
10
- Unicode Integration Proposal. (See
11
- http://www.egenix.com/files/python/unicode-proposal.txt).
12
-
13
- Copyright (c) Corporation for National Research Initiatives.
14
-
15
-
16
- Original header:
17
- --------------------------------------------------------------------
18
-
19
- * Yet another Unicode string type for Python. This type supports the
20
- * 16-bit Basic Multilingual Plane (BMP) only.
21
- *
22
- * Written by Fredrik Lundh, January 1999.
23
- *
24
- * Copyright (c) 1999 by Secret Labs AB.
25
- * Copyright (c) 1999 by Fredrik Lundh.
26
- *
27
- * fredrik@pythonware.com
28
- * http://www.pythonware.com
29
- *
30
- * --------------------------------------------------------------------
31
- * This Unicode String Type is
32
- *
33
- * Copyright (c) 1999 by Secret Labs AB
34
- * Copyright (c) 1999 by Fredrik Lundh
35
- *
36
- * By obtaining, using, and/or copying this software and/or its
37
- * associated documentation, you agree that you have read, understood,
38
- * and will comply with the following terms and conditions:
39
- *
40
- * Permission to use, copy, modify, and distribute this software and its
41
- * associated documentation for any purpose and without fee is hereby
42
- * granted, provided that the above copyright notice appears in all
43
- * copies, and that both that copyright notice and this permission notice
44
- * appear in supporting documentation, and that the name of Secret Labs
45
- * AB or the author not be used in advertising or publicity pertaining to
46
- * distribution of the software without specific, written prior
47
- * permission.
48
- *
49
- * SECRET LABS AB AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO
50
- * THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND
51
- * FITNESS. IN NO EVENT SHALL SECRET LABS AB OR THE AUTHOR BE LIABLE FOR
52
- * ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
53
- * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
54
- * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT
55
- * OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
56
- * -------------------------------------------------------------------- */
57
-
58
- #include <ctype.h>
59
-
60
- /* === Internal API ======================================================= */
61
-
62
- /* --- Internal Unicode Format -------------------------------------------- */
63
-
64
- /* Python 3.x requires unicode */
65
- #define Py_USING_UNICODE
66
-
67
- #ifndef SIZEOF_WCHAR_T
68
- #error Must define SIZEOF_WCHAR_T
69
- #endif
70
-
71
- #define Py_UNICODE_SIZE SIZEOF_WCHAR_T
72
-
73
- /* If wchar_t can be used for UCS-4 storage, set Py_UNICODE_WIDE.
74
- Otherwise, Unicode strings are stored as UCS-2 (with limited support
75
- for UTF-16) */
76
-
77
- #if Py_UNICODE_SIZE >= 4
78
- #define Py_UNICODE_WIDE
79
- #endif
80
-
81
- /* Set these flags if the platform has "wchar.h" and the
82
- wchar_t type is a 16-bit unsigned type */
83
- /* #define HAVE_WCHAR_H */
84
- /* #define HAVE_USABLE_WCHAR_T */
85
-
86
- /* If the compiler provides a wchar_t type we try to support it
87
- through the interface functions PyUnicode_FromWideChar(),
88
- PyUnicode_AsWideChar() and PyUnicode_AsWideCharString(). */
89
-
90
- #ifdef HAVE_USABLE_WCHAR_T
91
- # ifndef HAVE_WCHAR_H
92
- # define HAVE_WCHAR_H
93
- # endif
94
- #endif
95
-
96
- #ifdef HAVE_WCHAR_H
97
- # include <wchar.h>
98
- #endif
99
-
100
- /* Py_UCS4 and Py_UCS2 are typedefs for the respective
101
- unicode representations. */
102
- typedef uint32_t Py_UCS4;
103
- typedef uint16_t Py_UCS2;
104
- typedef uint8_t Py_UCS1;
105
-
106
- #ifdef __cplusplus
107
- extern "C" {
108
- #endif
109
-
110
-
111
- PyAPI_DATA(PyTypeObject) PyUnicode_Type;
112
- PyAPI_DATA(PyTypeObject) PyUnicodeIter_Type;
113
-
114
- #define PyUnicode_Check(op) \
115
- PyType_FastSubclass(Py_TYPE(op), Py_TPFLAGS_UNICODE_SUBCLASS)
116
- #define PyUnicode_CheckExact(op) Py_IS_TYPE((op), &PyUnicode_Type)
117
-
118
- /* --- Constants ---------------------------------------------------------- */
119
-
120
- /* This Unicode character will be used as replacement character during
121
- decoding if the errors argument is set to "replace". Note: the
122
- Unicode character U+FFFD is the official REPLACEMENT CHARACTER in
123
- Unicode 3.0. */
124
-
125
- #define Py_UNICODE_REPLACEMENT_CHARACTER ((Py_UCS4) 0xFFFD)
126
-
127
- /* === Public API ========================================================= */
128
-
129
- /* Similar to PyUnicode_FromUnicode(), but u points to UTF-8 encoded bytes */
130
- PyAPI_FUNC(PyObject*) PyUnicode_FromStringAndSize(
131
- const char *u, /* UTF-8 encoded string */
132
- Py_ssize_t size /* size of buffer */
133
- );
134
-
135
- /* Similar to PyUnicode_FromUnicode(), but u points to null-terminated
136
- UTF-8 encoded bytes. The size is determined with strlen(). */
137
- PyAPI_FUNC(PyObject*) PyUnicode_FromString(
138
- const char *u /* UTF-8 encoded string */
139
- );
140
-
141
- #if !defined(Py_LIMITED_API) || Py_LIMITED_API+0 >= 0x03030000
142
- PyAPI_FUNC(PyObject*) PyUnicode_Substring(
143
- PyObject *str,
144
- Py_ssize_t start,
145
- Py_ssize_t end);
146
- #endif
147
-
148
- #if !defined(Py_LIMITED_API) || Py_LIMITED_API+0 >= 0x03030000
149
- /* Copy the string into a UCS4 buffer including the null character if copy_null
150
- is set. Return NULL and raise an exception on error. Raise a SystemError if
151
- the buffer is smaller than the string. Return buffer on success.
152
-
153
- buflen is the length of the buffer in (Py_UCS4) characters. */
154
- PyAPI_FUNC(Py_UCS4*) PyUnicode_AsUCS4(
155
- PyObject *unicode,
156
- Py_UCS4* buffer,
157
- Py_ssize_t buflen,
158
- int copy_null);
159
-
160
- /* Copy the string into a UCS4 buffer. A new buffer is allocated using
161
- * PyMem_Malloc; if this fails, NULL is returned with a memory error
162
- exception set. */
163
- PyAPI_FUNC(Py_UCS4*) PyUnicode_AsUCS4Copy(PyObject *unicode);
164
- #endif
165
-
166
- #if !defined(Py_LIMITED_API) || Py_LIMITED_API+0 >= 0x03030000
167
- /* Get the length of the Unicode object. */
168
-
169
- PyAPI_FUNC(Py_ssize_t) PyUnicode_GetLength(
170
- PyObject *unicode
171
- );
172
- #endif
173
-
174
- #if !defined(Py_LIMITED_API) || Py_LIMITED_API+0 >= 0x03030000
175
- /* Read a character from the string. */
176
-
177
- PyAPI_FUNC(Py_UCS4) PyUnicode_ReadChar(
178
- PyObject *unicode,
179
- Py_ssize_t index
180
- );
181
-
182
- /* Write a character to the string. The string must have been created through
183
- PyUnicode_New, must not be shared, and must not have been hashed yet.
184
-
185
- Return 0 on success, -1 on error. */
186
-
187
- PyAPI_FUNC(int) PyUnicode_WriteChar(
188
- PyObject *unicode,
189
- Py_ssize_t index,
190
- Py_UCS4 character
191
- );
192
- #endif
193
-
194
- /* Resize a Unicode object. The length is the number of codepoints.
195
-
196
- *unicode is modified to point to the new (resized) object and 0
197
- returned on success.
198
-
199
- Try to resize the string in place (which is usually faster than allocating
200
- a new string and copy characters), or create a new string.
201
-
202
- Error handling is implemented as follows: an exception is set, -1
203
- is returned and *unicode left untouched.
204
-
205
- WARNING: The function doesn't check string content, the result may not be a
206
- string in canonical representation. */
207
-
208
- PyAPI_FUNC(int) PyUnicode_Resize(
209
- PyObject **unicode, /* Pointer to the Unicode object */
210
- Py_ssize_t length /* New length */
211
- );
212
-
213
- /* Decode obj to a Unicode object.
214
-
215
- bytes, bytearray and other bytes-like objects are decoded according to the
216
- given encoding and error handler. The encoding and error handler can be
217
- NULL to have the interface use UTF-8 and "strict".
218
-
219
- All other objects (including Unicode objects) raise an exception.
220
-
221
- The API returns NULL in case of an error. The caller is responsible
222
- for decref'ing the returned objects.
223
-
224
- */
225
-
226
- PyAPI_FUNC(PyObject*) PyUnicode_FromEncodedObject(
227
- PyObject *obj, /* Object */
228
- const char *encoding, /* encoding */
229
- const char *errors /* error handling */
230
- );
231
-
232
- /* Copy an instance of a Unicode subtype to a new true Unicode object if
233
- necessary. If obj is already a true Unicode object (not a subtype), return
234
- the reference with *incremented* refcount.
235
-
236
- The API returns NULL in case of an error. The caller is responsible
237
- for decref'ing the returned objects.
238
-
239
- */
240
-
241
- PyAPI_FUNC(PyObject*) PyUnicode_FromObject(
242
- PyObject *obj /* Object */
243
- );
244
-
245
- PyAPI_FUNC(PyObject *) PyUnicode_FromFormatV(
246
- const char *format, /* ASCII-encoded string */
247
- va_list vargs
248
- );
249
- PyAPI_FUNC(PyObject *) PyUnicode_FromFormat(
250
- const char *format, /* ASCII-encoded string */
251
- ...
252
- );
253
-
254
- PyAPI_FUNC(void) PyUnicode_InternInPlace(PyObject **);
255
- PyAPI_FUNC(PyObject *) PyUnicode_InternFromString(
256
- const char *u /* UTF-8 encoded string */
257
- );
258
-
259
- /* --- wchar_t support for platforms which support it --------------------- */
260
-
261
- #ifdef HAVE_WCHAR_H
262
-
263
- /* Create a Unicode Object from the wchar_t buffer w of the given
264
- size.
265
-
266
- The buffer is copied into the new object. */
267
-
268
- PyAPI_FUNC(PyObject*) PyUnicode_FromWideChar(
269
- const wchar_t *w, /* wchar_t buffer */
270
- Py_ssize_t size /* size of buffer */
271
- );
272
-
273
- /* Copies the Unicode Object contents into the wchar_t buffer w. At
274
- most size wchar_t characters are copied.
275
-
276
- Note that the resulting wchar_t string may or may not be
277
- 0-terminated. It is the responsibility of the caller to make sure
278
- that the wchar_t string is 0-terminated in case this is required by
279
- the application.
280
-
281
- Returns the number of wchar_t characters copied (excluding a
282
- possibly trailing 0-termination character) or -1 in case of an
283
- error. */
284
-
285
- PyAPI_FUNC(Py_ssize_t) PyUnicode_AsWideChar(
286
- PyObject *unicode, /* Unicode object */
287
- wchar_t *w, /* wchar_t buffer */
288
- Py_ssize_t size /* size of buffer */
289
- );
290
-
291
- /* Convert the Unicode object to a wide character string. The output string
292
- always ends with a nul character. If size is not NULL, write the number of
293
- wide characters (excluding the null character) into *size.
294
-
295
- Returns a buffer allocated by PyMem_Malloc() (use PyMem_Free() to free it)
296
- on success. On error, returns NULL, *size is undefined and raises a
297
- MemoryError. */
298
-
299
- PyAPI_FUNC(wchar_t*) PyUnicode_AsWideCharString(
300
- PyObject *unicode, /* Unicode object */
301
- Py_ssize_t *size /* number of characters of the result */
302
- );
303
-
304
- #endif
305
-
306
- /* --- Unicode ordinals --------------------------------------------------- */
307
-
308
- /* Create a Unicode Object from the given Unicode code point ordinal.
309
-
310
- The ordinal must be in range(0x110000). A ValueError is
311
- raised in case it is not.
312
-
313
- */
314
-
315
- PyAPI_FUNC(PyObject*) PyUnicode_FromOrdinal(int ordinal);
316
-
317
- /* === Builtin Codecs =====================================================
318
-
319
- Many of these APIs take two arguments encoding and errors. These
320
- parameters encoding and errors have the same semantics as the ones
321
- of the builtin str() API.
322
-
323
- Setting encoding to NULL causes the default encoding (UTF-8) to be used.
324
-
325
- Error handling is set by errors which may also be set to NULL
326
- meaning to use the default handling defined for the codec. Default
327
- error handling for all builtin codecs is "strict" (ValueErrors are
328
- raised).
329
-
330
- The codecs all use a similar interface. Only deviation from the
331
- generic ones are documented.
332
-
333
- */
334
-
335
- /* --- Manage the default encoding ---------------------------------------- */
336
-
337
- /* Returns "utf-8". */
338
- PyAPI_FUNC(const char*) PyUnicode_GetDefaultEncoding(void);
339
-
340
- /* --- Generic Codecs ----------------------------------------------------- */
341
-
342
- /* Create a Unicode object by decoding the encoded string s of the
343
- given size. */
344
-
345
- PyAPI_FUNC(PyObject*) PyUnicode_Decode(
346
- const char *s, /* encoded string */
347
- Py_ssize_t size, /* size of buffer */
348
- const char *encoding, /* encoding */
349
- const char *errors /* error handling */
350
- );
351
-
352
- /* Decode a Unicode object unicode and return the result as Python
353
- object.
354
-
355
- This API is DEPRECATED. The only supported standard encoding is rot13.
356
- Use PyCodec_Decode() to decode with rot13 and non-standard codecs
357
- that decode from str. */
358
-
359
- Py_DEPRECATED(3.6) PyAPI_FUNC(PyObject*) PyUnicode_AsDecodedObject(
360
- PyObject *unicode, /* Unicode object */
361
- const char *encoding, /* encoding */
362
- const char *errors /* error handling */
363
- );
364
-
365
- /* Decode a Unicode object unicode and return the result as Unicode
366
- object.
367
-
368
- This API is DEPRECATED. The only supported standard encoding is rot13.
369
- Use PyCodec_Decode() to decode with rot13 and non-standard codecs
370
- that decode from str to str. */
371
-
372
- Py_DEPRECATED(3.6) PyAPI_FUNC(PyObject*) PyUnicode_AsDecodedUnicode(
373
- PyObject *unicode, /* Unicode object */
374
- const char *encoding, /* encoding */
375
- const char *errors /* error handling */
376
- );
377
-
378
- /* Encodes a Unicode object and returns the result as Python
379
- object.
380
-
381
- This API is DEPRECATED. It is superseded by PyUnicode_AsEncodedString()
382
- since all standard encodings (except rot13) encode str to bytes.
383
- Use PyCodec_Encode() for encoding with rot13 and non-standard codecs
384
- that encode form str to non-bytes. */
385
-
386
- Py_DEPRECATED(3.6) PyAPI_FUNC(PyObject*) PyUnicode_AsEncodedObject(
387
- PyObject *unicode, /* Unicode object */
388
- const char *encoding, /* encoding */
389
- const char *errors /* error handling */
390
- );
391
-
392
- /* Encodes a Unicode object and returns the result as Python string
393
- object. */
394
-
395
- PyAPI_FUNC(PyObject*) PyUnicode_AsEncodedString(
396
- PyObject *unicode, /* Unicode object */
397
- const char *encoding, /* encoding */
398
- const char *errors /* error handling */
399
- );
400
-
401
- /* Encodes a Unicode object and returns the result as Unicode
402
- object.
403
-
404
- This API is DEPRECATED. The only supported standard encodings is rot13.
405
- Use PyCodec_Encode() to encode with rot13 and non-standard codecs
406
- that encode from str to str. */
407
-
408
- Py_DEPRECATED(3.6) PyAPI_FUNC(PyObject*) PyUnicode_AsEncodedUnicode(
409
- PyObject *unicode, /* Unicode object */
410
- const char *encoding, /* encoding */
411
- const char *errors /* error handling */
412
- );
413
-
414
- /* Build an encoding map. */
415
-
416
- PyAPI_FUNC(PyObject*) PyUnicode_BuildEncodingMap(
417
- PyObject* string /* 256 character map */
418
- );
419
-
420
- /* --- UTF-7 Codecs ------------------------------------------------------- */
421
-
422
- PyAPI_FUNC(PyObject*) PyUnicode_DecodeUTF7(
423
- const char *string, /* UTF-7 encoded string */
424
- Py_ssize_t length, /* size of string */
425
- const char *errors /* error handling */
426
- );
427
-
428
- PyAPI_FUNC(PyObject*) PyUnicode_DecodeUTF7Stateful(
429
- const char *string, /* UTF-7 encoded string */
430
- Py_ssize_t length, /* size of string */
431
- const char *errors, /* error handling */
432
- Py_ssize_t *consumed /* bytes consumed */
433
- );
434
-
435
- /* --- UTF-8 Codecs ------------------------------------------------------- */
436
-
437
- PyAPI_FUNC(PyObject*) PyUnicode_DecodeUTF8(
438
- const char *string, /* UTF-8 encoded string */
439
- Py_ssize_t length, /* size of string */
440
- const char *errors /* error handling */
441
- );
442
-
443
- PyAPI_FUNC(PyObject*) PyUnicode_DecodeUTF8Stateful(
444
- const char *string, /* UTF-8 encoded string */
445
- Py_ssize_t length, /* size of string */
446
- const char *errors, /* error handling */
447
- Py_ssize_t *consumed /* bytes consumed */
448
- );
449
-
450
- PyAPI_FUNC(PyObject*) PyUnicode_AsUTF8String(
451
- PyObject *unicode /* Unicode object */
452
- );
453
-
454
- /* Returns a pointer to the default encoding (UTF-8) of the
455
- Unicode object unicode and the size of the encoded representation
456
- in bytes stored in *size.
457
-
458
- In case of an error, no *size is set.
459
-
460
- This function caches the UTF-8 encoded string in the unicodeobject
461
- and subsequent calls will return the same string. The memory is released
462
- when the unicodeobject is deallocated.
463
- */
464
-
465
- #if !defined(Py_LIMITED_API) || Py_LIMITED_API+0 >= 0x030A0000
466
- PyAPI_FUNC(const char *) PyUnicode_AsUTF8AndSize(
467
- PyObject *unicode,
468
- Py_ssize_t *size);
469
- #endif
470
-
471
- /* --- UTF-32 Codecs ------------------------------------------------------ */
472
-
473
- /* Decodes length bytes from a UTF-32 encoded buffer string and returns
474
- the corresponding Unicode object.
475
-
476
- errors (if non-NULL) defines the error handling. It defaults
477
- to "strict".
478
-
479
- If byteorder is non-NULL, the decoder starts decoding using the
480
- given byte order:
481
-
482
- *byteorder == -1: little endian
483
- *byteorder == 0: native order
484
- *byteorder == 1: big endian
485
-
486
- In native mode, the first four bytes of the stream are checked for a
487
- BOM mark. If found, the BOM mark is analysed, the byte order
488
- adjusted and the BOM skipped. In the other modes, no BOM mark
489
- interpretation is done. After completion, *byteorder is set to the
490
- current byte order at the end of input data.
491
-
492
- If byteorder is NULL, the codec starts in native order mode.
493
-
494
- */
495
-
496
- PyAPI_FUNC(PyObject*) PyUnicode_DecodeUTF32(
497
- const char *string, /* UTF-32 encoded string */
498
- Py_ssize_t length, /* size of string */
499
- const char *errors, /* error handling */
500
- int *byteorder /* pointer to byteorder to use
501
- 0=native;-1=LE,1=BE; updated on
502
- exit */
503
- );
504
-
505
- PyAPI_FUNC(PyObject*) PyUnicode_DecodeUTF32Stateful(
506
- const char *string, /* UTF-32 encoded string */
507
- Py_ssize_t length, /* size of string */
508
- const char *errors, /* error handling */
509
- int *byteorder, /* pointer to byteorder to use
510
- 0=native;-1=LE,1=BE; updated on
511
- exit */
512
- Py_ssize_t *consumed /* bytes consumed */
513
- );
514
-
515
- /* Returns a Python string using the UTF-32 encoding in native byte
516
- order. The string always starts with a BOM mark. */
517
-
518
- PyAPI_FUNC(PyObject*) PyUnicode_AsUTF32String(
519
- PyObject *unicode /* Unicode object */
520
- );
521
-
522
- /* Returns a Python string object holding the UTF-32 encoded value of
523
- the Unicode data.
524
-
525
- If byteorder is not 0, output is written according to the following
526
- byte order:
527
-
528
- byteorder == -1: little endian
529
- byteorder == 0: native byte order (writes a BOM mark)
530
- byteorder == 1: big endian
531
-
532
- If byteorder is 0, the output string will always start with the
533
- Unicode BOM mark (U+FEFF). In the other two modes, no BOM mark is
534
- prepended.
535
-
536
- */
537
-
538
- /* --- UTF-16 Codecs ------------------------------------------------------ */
539
-
540
- /* Decodes length bytes from a UTF-16 encoded buffer string and returns
541
- the corresponding Unicode object.
542
-
543
- errors (if non-NULL) defines the error handling. It defaults
544
- to "strict".
545
-
546
- If byteorder is non-NULL, the decoder starts decoding using the
547
- given byte order:
548
-
549
- *byteorder == -1: little endian
550
- *byteorder == 0: native order
551
- *byteorder == 1: big endian
552
-
553
- In native mode, the first two bytes of the stream are checked for a
554
- BOM mark. If found, the BOM mark is analysed, the byte order
555
- adjusted and the BOM skipped. In the other modes, no BOM mark
556
- interpretation is done. After completion, *byteorder is set to the
557
- current byte order at the end of input data.
558
-
559
- If byteorder is NULL, the codec starts in native order mode.
560
-
561
- */
562
-
563
- PyAPI_FUNC(PyObject*) PyUnicode_DecodeUTF16(
564
- const char *string, /* UTF-16 encoded string */
565
- Py_ssize_t length, /* size of string */
566
- const char *errors, /* error handling */
567
- int *byteorder /* pointer to byteorder to use
568
- 0=native;-1=LE,1=BE; updated on
569
- exit */
570
- );
571
-
572
- PyAPI_FUNC(PyObject*) PyUnicode_DecodeUTF16Stateful(
573
- const char *string, /* UTF-16 encoded string */
574
- Py_ssize_t length, /* size of string */
575
- const char *errors, /* error handling */
576
- int *byteorder, /* pointer to byteorder to use
577
- 0=native;-1=LE,1=BE; updated on
578
- exit */
579
- Py_ssize_t *consumed /* bytes consumed */
580
- );
581
-
582
- /* Returns a Python string using the UTF-16 encoding in native byte
583
- order. The string always starts with a BOM mark. */
584
-
585
- PyAPI_FUNC(PyObject*) PyUnicode_AsUTF16String(
586
- PyObject *unicode /* Unicode object */
587
- );
588
-
589
- /* --- Unicode-Escape Codecs ---------------------------------------------- */
590
-
591
- PyAPI_FUNC(PyObject*) PyUnicode_DecodeUnicodeEscape(
592
- const char *string, /* Unicode-Escape encoded string */
593
- Py_ssize_t length, /* size of string */
594
- const char *errors /* error handling */
595
- );
596
-
597
- PyAPI_FUNC(PyObject*) PyUnicode_AsUnicodeEscapeString(
598
- PyObject *unicode /* Unicode object */
599
- );
600
-
601
- /* --- Raw-Unicode-Escape Codecs ------------------------------------------ */
602
-
603
- PyAPI_FUNC(PyObject*) PyUnicode_DecodeRawUnicodeEscape(
604
- const char *string, /* Raw-Unicode-Escape encoded string */
605
- Py_ssize_t length, /* size of string */
606
- const char *errors /* error handling */
607
- );
608
-
609
- PyAPI_FUNC(PyObject*) PyUnicode_AsRawUnicodeEscapeString(
610
- PyObject *unicode /* Unicode object */
611
- );
612
-
613
- /* --- Latin-1 Codecs -----------------------------------------------------
614
-
615
- Note: Latin-1 corresponds to the first 256 Unicode ordinals. */
616
-
617
- PyAPI_FUNC(PyObject*) PyUnicode_DecodeLatin1(
618
- const char *string, /* Latin-1 encoded string */
619
- Py_ssize_t length, /* size of string */
620
- const char *errors /* error handling */
621
- );
622
-
623
- PyAPI_FUNC(PyObject*) PyUnicode_AsLatin1String(
624
- PyObject *unicode /* Unicode object */
625
- );
626
-
627
- /* --- ASCII Codecs -------------------------------------------------------
628
-
629
- Only 7-bit ASCII data is expected. All other codes generate errors.
630
-
631
- */
632
-
633
- PyAPI_FUNC(PyObject*) PyUnicode_DecodeASCII(
634
- const char *string, /* ASCII encoded string */
635
- Py_ssize_t length, /* size of string */
636
- const char *errors /* error handling */
637
- );
638
-
639
- PyAPI_FUNC(PyObject*) PyUnicode_AsASCIIString(
640
- PyObject *unicode /* Unicode object */
641
- );
642
-
643
- /* --- Character Map Codecs -----------------------------------------------
644
-
645
- This codec uses mappings to encode and decode characters.
646
-
647
- Decoding mappings must map byte ordinals (integers in the range from 0 to
648
- 255) to Unicode strings, integers (which are then interpreted as Unicode
649
- ordinals) or None. Unmapped data bytes (ones which cause a LookupError)
650
- as well as mapped to None, 0xFFFE or '\ufffe' are treated as "undefined
651
- mapping" and cause an error.
652
-
653
- Encoding mappings must map Unicode ordinal integers to bytes objects,
654
- integers in the range from 0 to 255 or None. Unmapped character
655
- ordinals (ones which cause a LookupError) as well as mapped to
656
- None are treated as "undefined mapping" and cause an error.
657
-
658
- */
659
-
660
- PyAPI_FUNC(PyObject*) PyUnicode_DecodeCharmap(
661
- const char *string, /* Encoded string */
662
- Py_ssize_t length, /* size of string */
663
- PyObject *mapping, /* decoding mapping */
664
- const char *errors /* error handling */
665
- );
666
-
667
- PyAPI_FUNC(PyObject*) PyUnicode_AsCharmapString(
668
- PyObject *unicode, /* Unicode object */
669
- PyObject *mapping /* encoding mapping */
670
- );
671
-
672
- /* --- MBCS codecs for Windows -------------------------------------------- */
673
-
674
- #ifdef MS_WINDOWS
675
- PyAPI_FUNC(PyObject*) PyUnicode_DecodeMBCS(
676
- const char *string, /* MBCS encoded string */
677
- Py_ssize_t length, /* size of string */
678
- const char *errors /* error handling */
679
- );
680
-
681
- PyAPI_FUNC(PyObject*) PyUnicode_DecodeMBCSStateful(
682
- const char *string, /* MBCS encoded string */
683
- Py_ssize_t length, /* size of string */
684
- const char *errors, /* error handling */
685
- Py_ssize_t *consumed /* bytes consumed */
686
- );
687
-
688
- #if !defined(Py_LIMITED_API) || Py_LIMITED_API+0 >= 0x03030000
689
- PyAPI_FUNC(PyObject*) PyUnicode_DecodeCodePageStateful(
690
- int code_page, /* code page number */
691
- const char *string, /* encoded string */
692
- Py_ssize_t length, /* size of string */
693
- const char *errors, /* error handling */
694
- Py_ssize_t *consumed /* bytes consumed */
695
- );
696
- #endif
697
-
698
- PyAPI_FUNC(PyObject*) PyUnicode_AsMBCSString(
699
- PyObject *unicode /* Unicode object */
700
- );
701
-
702
- #if !defined(Py_LIMITED_API) || Py_LIMITED_API+0 >= 0x03030000
703
- PyAPI_FUNC(PyObject*) PyUnicode_EncodeCodePage(
704
- int code_page, /* code page number */
705
- PyObject *unicode, /* Unicode object */
706
- const char *errors /* error handling */
707
- );
708
- #endif
709
-
710
- #endif /* MS_WINDOWS */
711
-
712
- /* --- Locale encoding --------------------------------------------------- */
713
-
714
- #if !defined(Py_LIMITED_API) || Py_LIMITED_API+0 >= 0x03030000
715
- /* Decode a string from the current locale encoding. The decoder is strict if
716
- *surrogateescape* is equal to zero, otherwise it uses the 'surrogateescape'
717
- error handler (PEP 383) to escape undecodable bytes. If a byte sequence can
718
- be decoded as a surrogate character and *surrogateescape* is not equal to
719
- zero, the byte sequence is escaped using the 'surrogateescape' error handler
720
- instead of being decoded. *str* must end with a null character but cannot
721
- contain embedded null characters. */
722
-
723
- PyAPI_FUNC(PyObject*) PyUnicode_DecodeLocaleAndSize(
724
- const char *str,
725
- Py_ssize_t len,
726
- const char *errors);
727
-
728
- /* Similar to PyUnicode_DecodeLocaleAndSize(), but compute the string
729
- length using strlen(). */
730
-
731
- PyAPI_FUNC(PyObject*) PyUnicode_DecodeLocale(
732
- const char *str,
733
- const char *errors);
734
-
735
- /* Encode a Unicode object to the current locale encoding. The encoder is
736
- strict is *surrogateescape* is equal to zero, otherwise the
737
- "surrogateescape" error handler is used. Return a bytes object. The string
738
- cannot contain embedded null characters. */
739
-
740
- PyAPI_FUNC(PyObject*) PyUnicode_EncodeLocale(
741
- PyObject *unicode,
742
- const char *errors
743
- );
744
- #endif
745
-
746
- /* --- File system encoding ---------------------------------------------- */
747
-
748
- /* ParseTuple converter: encode str objects to bytes using
749
- PyUnicode_EncodeFSDefault(); bytes objects are output as-is. */
750
-
751
- PyAPI_FUNC(int) PyUnicode_FSConverter(PyObject*, void*);
752
-
753
- /* ParseTuple converter: decode bytes objects to unicode using
754
- PyUnicode_DecodeFSDefaultAndSize(); str objects are output as-is. */
755
-
756
- PyAPI_FUNC(int) PyUnicode_FSDecoder(PyObject*, void*);
757
-
758
- /* Decode a null-terminated string from the Python filesystem encoding
759
- and error handler.
760
-
761
- If the string length is known, use PyUnicode_DecodeFSDefaultAndSize(). */
762
- PyAPI_FUNC(PyObject*) PyUnicode_DecodeFSDefault(
763
- const char *s /* encoded string */
764
- );
765
-
766
- /* Decode a string from the Python filesystem encoding and error handler. */
767
- PyAPI_FUNC(PyObject*) PyUnicode_DecodeFSDefaultAndSize(
768
- const char *s, /* encoded string */
769
- Py_ssize_t size /* size */
770
- );
771
-
772
- /* Encode a Unicode object to the Python filesystem encoding and error handler.
773
- Return bytes. */
774
- PyAPI_FUNC(PyObject*) PyUnicode_EncodeFSDefault(
775
- PyObject *unicode
776
- );
777
-
778
- /* --- Methods & Slots ----------------------------------------------------
779
-
780
- These are capable of handling Unicode objects and strings on input
781
- (we refer to them as strings in the descriptions) and return
782
- Unicode objects or integers as appropriate. */
783
-
784
- /* Concat two strings giving a new Unicode string. */
785
-
786
- PyAPI_FUNC(PyObject*) PyUnicode_Concat(
787
- PyObject *left, /* Left string */
788
- PyObject *right /* Right string */
789
- );
790
-
791
- /* Concat two strings and put the result in *pleft
792
- (sets *pleft to NULL on error) */
793
-
794
- PyAPI_FUNC(void) PyUnicode_Append(
795
- PyObject **pleft, /* Pointer to left string */
796
- PyObject *right /* Right string */
797
- );
798
-
799
- /* Concat two strings, put the result in *pleft and drop the right object
800
- (sets *pleft to NULL on error) */
801
-
802
- PyAPI_FUNC(void) PyUnicode_AppendAndDel(
803
- PyObject **pleft, /* Pointer to left string */
804
- PyObject *right /* Right string */
805
- );
806
-
807
- /* Split a string giving a list of Unicode strings.
808
-
809
- If sep is NULL, splitting will be done at all whitespace
810
- substrings. Otherwise, splits occur at the given separator.
811
-
812
- At most maxsplit splits will be done. If negative, no limit is set.
813
-
814
- Separators are not included in the resulting list.
815
-
816
- */
817
-
818
- PyAPI_FUNC(PyObject*) PyUnicode_Split(
819
- PyObject *s, /* String to split */
820
- PyObject *sep, /* String separator */
821
- Py_ssize_t maxsplit /* Maxsplit count */
822
- );
823
-
824
- /* Dito, but split at line breaks.
825
-
826
- CRLF is considered to be one line break. Line breaks are not
827
- included in the resulting list. */
828
-
829
- PyAPI_FUNC(PyObject*) PyUnicode_Splitlines(
830
- PyObject *s, /* String to split */
831
- int keepends /* If true, line end markers are included */
832
- );
833
-
834
- /* Partition a string using a given separator. */
835
-
836
- PyAPI_FUNC(PyObject*) PyUnicode_Partition(
837
- PyObject *s, /* String to partition */
838
- PyObject *sep /* String separator */
839
- );
840
-
841
- /* Partition a string using a given separator, searching from the end of the
842
- string. */
843
-
844
- PyAPI_FUNC(PyObject*) PyUnicode_RPartition(
845
- PyObject *s, /* String to partition */
846
- PyObject *sep /* String separator */
847
- );
848
-
849
- /* Split a string giving a list of Unicode strings.
850
-
851
- If sep is NULL, splitting will be done at all whitespace
852
- substrings. Otherwise, splits occur at the given separator.
853
-
854
- At most maxsplit splits will be done. But unlike PyUnicode_Split
855
- PyUnicode_RSplit splits from the end of the string. If negative,
856
- no limit is set.
857
-
858
- Separators are not included in the resulting list.
859
-
860
- */
861
-
862
- PyAPI_FUNC(PyObject*) PyUnicode_RSplit(
863
- PyObject *s, /* String to split */
864
- PyObject *sep, /* String separator */
865
- Py_ssize_t maxsplit /* Maxsplit count */
866
- );
867
-
868
- /* Translate a string by applying a character mapping table to it and
869
- return the resulting Unicode object.
870
-
871
- The mapping table must map Unicode ordinal integers to Unicode strings,
872
- Unicode ordinal integers or None (causing deletion of the character).
873
-
874
- Mapping tables may be dictionaries or sequences. Unmapped character
875
- ordinals (ones which cause a LookupError) are left untouched and
876
- are copied as-is.
877
-
878
- */
879
-
880
- PyAPI_FUNC(PyObject *) PyUnicode_Translate(
881
- PyObject *str, /* String */
882
- PyObject *table, /* Translate table */
883
- const char *errors /* error handling */
884
- );
885
-
886
- /* Join a sequence of strings using the given separator and return
887
- the resulting Unicode string. */
888
-
889
- PyAPI_FUNC(PyObject*) PyUnicode_Join(
890
- PyObject *separator, /* Separator string */
891
- PyObject *seq /* Sequence object */
892
- );
893
-
894
- /* Return 1 if substr matches str[start:end] at the given tail end, 0
895
- otherwise. */
896
-
897
- PyAPI_FUNC(Py_ssize_t) PyUnicode_Tailmatch(
898
- PyObject *str, /* String */
899
- PyObject *substr, /* Prefix or Suffix string */
900
- Py_ssize_t start, /* Start index */
901
- Py_ssize_t end, /* Stop index */
902
- int direction /* Tail end: -1 prefix, +1 suffix */
903
- );
904
-
905
- /* Return the first position of substr in str[start:end] using the
906
- given search direction or -1 if not found. -2 is returned in case
907
- an error occurred and an exception is set. */
908
-
909
- PyAPI_FUNC(Py_ssize_t) PyUnicode_Find(
910
- PyObject *str, /* String */
911
- PyObject *substr, /* Substring to find */
912
- Py_ssize_t start, /* Start index */
913
- Py_ssize_t end, /* Stop index */
914
- int direction /* Find direction: +1 forward, -1 backward */
915
- );
916
-
917
- #if !defined(Py_LIMITED_API) || Py_LIMITED_API+0 >= 0x03030000
918
- /* Like PyUnicode_Find, but search for single character only. */
919
- PyAPI_FUNC(Py_ssize_t) PyUnicode_FindChar(
920
- PyObject *str,
921
- Py_UCS4 ch,
922
- Py_ssize_t start,
923
- Py_ssize_t end,
924
- int direction
925
- );
926
- #endif
927
-
928
- /* Count the number of occurrences of substr in str[start:end]. */
929
-
930
- PyAPI_FUNC(Py_ssize_t) PyUnicode_Count(
931
- PyObject *str, /* String */
932
- PyObject *substr, /* Substring to count */
933
- Py_ssize_t start, /* Start index */
934
- Py_ssize_t end /* Stop index */
935
- );
936
-
937
- /* Replace at most maxcount occurrences of substr in str with replstr
938
- and return the resulting Unicode object. */
939
-
940
- PyAPI_FUNC(PyObject *) PyUnicode_Replace(
941
- PyObject *str, /* String */
942
- PyObject *substr, /* Substring to find */
943
- PyObject *replstr, /* Substring to replace */
944
- Py_ssize_t maxcount /* Max. number of replacements to apply;
945
- -1 = all */
946
- );
947
-
948
- /* Compare two strings and return -1, 0, 1 for less than, equal,
949
- greater than resp.
950
- Raise an exception and return -1 on error. */
951
-
952
- PyAPI_FUNC(int) PyUnicode_Compare(
953
- PyObject *left, /* Left string */
954
- PyObject *right /* Right string */
955
- );
956
-
957
- /* Compare a Unicode object with C string and return -1, 0, 1 for less than,
958
- equal, and greater than, respectively. It is best to pass only
959
- ASCII-encoded strings, but the function interprets the input string as
960
- ISO-8859-1 if it contains non-ASCII characters.
961
- This function does not raise exceptions. */
962
-
963
- PyAPI_FUNC(int) PyUnicode_CompareWithASCIIString(
964
- PyObject *left,
965
- const char *right /* ASCII-encoded string */
966
- );
967
-
968
- /* Rich compare two strings and return one of the following:
969
-
970
- - NULL in case an exception was raised
971
- - Py_True or Py_False for successful comparisons
972
- - Py_NotImplemented in case the type combination is unknown
973
-
974
- Possible values for op:
975
-
976
- Py_GT, Py_GE, Py_EQ, Py_NE, Py_LT, Py_LE
977
-
978
- */
979
-
980
- PyAPI_FUNC(PyObject *) PyUnicode_RichCompare(
981
- PyObject *left, /* Left string */
982
- PyObject *right, /* Right string */
983
- int op /* Operation: Py_EQ, Py_NE, Py_GT, etc. */
984
- );
985
-
986
- /* Apply an argument tuple or dictionary to a format string and return
987
- the resulting Unicode string. */
988
-
989
- PyAPI_FUNC(PyObject *) PyUnicode_Format(
990
- PyObject *format, /* Format string */
991
- PyObject *args /* Argument tuple or dictionary */
992
- );
993
-
994
- /* Checks whether element is contained in container and return 1/0
995
- accordingly.
996
-
997
- element has to coerce to a one element Unicode string. -1 is
998
- returned in case of an error. */
999
-
1000
- PyAPI_FUNC(int) PyUnicode_Contains(
1001
- PyObject *container, /* Container string */
1002
- PyObject *element /* Element string */
1003
- );
1004
-
1005
- /* Checks whether argument is a valid identifier. */
1006
-
1007
- PyAPI_FUNC(int) PyUnicode_IsIdentifier(PyObject *s);
1008
-
1009
- /* === Characters Type APIs =============================================== */
1010
-
1011
- #ifndef Py_LIMITED_API
1012
- # define Py_CPYTHON_UNICODEOBJECT_H
1013
- # include "cpython/unicodeobject.h"
1014
- # undef Py_CPYTHON_UNICODEOBJECT_H
1015
- #endif
1016
-
1017
- #ifdef __cplusplus
1018
- }
1019
- #endif
1020
- #endif /* !Py_UNICODEOBJECT_H */