Cython 3.1.0a1__py3-none-any.whl

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 (301) hide show
  1. Cython/Build/BuildExecutable.py +169 -0
  2. Cython/Build/Cache.py +199 -0
  3. Cython/Build/Cythonize.py +250 -0
  4. Cython/Build/Dependencies.py +1275 -0
  5. Cython/Build/Distutils.py +1 -0
  6. Cython/Build/Inline.py +342 -0
  7. Cython/Build/IpythonMagic.py +560 -0
  8. Cython/Build/Tests/TestCyCache.py +119 -0
  9. Cython/Build/Tests/TestCythonizeArgsParser.py +481 -0
  10. Cython/Build/Tests/TestDependencies.py +133 -0
  11. Cython/Build/Tests/TestInline.py +112 -0
  12. Cython/Build/Tests/TestIpythonMagic.py +287 -0
  13. Cython/Build/Tests/TestRecythonize.py +212 -0
  14. Cython/Build/Tests/TestStripLiterals.py +155 -0
  15. Cython/Build/Tests/__init__.py +1 -0
  16. Cython/Build/__init__.py +8 -0
  17. Cython/CodeWriter.py +811 -0
  18. Cython/Compiler/AnalysedTreeTransforms.py +97 -0
  19. Cython/Compiler/Annotate.py +326 -0
  20. Cython/Compiler/AutoDocTransforms.py +314 -0
  21. Cython/Compiler/Buffer.py +680 -0
  22. Cython/Compiler/Builtin.py +862 -0
  23. Cython/Compiler/CmdLine.py +243 -0
  24. Cython/Compiler/Code.pxd +145 -0
  25. Cython/Compiler/Code.py +3328 -0
  26. Cython/Compiler/CodeGeneration.py +33 -0
  27. Cython/Compiler/CythonScope.py +179 -0
  28. Cython/Compiler/Dataclass.py +868 -0
  29. Cython/Compiler/DebugFlags.py +21 -0
  30. Cython/Compiler/Errors.py +295 -0
  31. Cython/Compiler/ExprNodes.py +15051 -0
  32. Cython/Compiler/FlowControl.pxd +97 -0
  33. Cython/Compiler/FlowControl.py +1438 -0
  34. Cython/Compiler/FusedNode.py +998 -0
  35. Cython/Compiler/Future.py +16 -0
  36. Cython/Compiler/Interpreter.py +57 -0
  37. Cython/Compiler/Lexicon.py +340 -0
  38. Cython/Compiler/LineTable.py +114 -0
  39. Cython/Compiler/Main.py +779 -0
  40. Cython/Compiler/MatchCaseNodes.py +259 -0
  41. Cython/Compiler/MemoryView.py +860 -0
  42. Cython/Compiler/ModuleNode.py +4065 -0
  43. Cython/Compiler/Naming.py +369 -0
  44. Cython/Compiler/Nodes.py +10557 -0
  45. Cython/Compiler/Optimize.py +5269 -0
  46. Cython/Compiler/Options.py +828 -0
  47. Cython/Compiler/ParseTreeTransforms.pxd +78 -0
  48. Cython/Compiler/ParseTreeTransforms.py +4441 -0
  49. Cython/Compiler/Parsing.pxd +9 -0
  50. Cython/Compiler/Parsing.py +4797 -0
  51. Cython/Compiler/Pipeline.py +425 -0
  52. Cython/Compiler/PyrexTypes.py +5572 -0
  53. Cython/Compiler/Pythran.py +223 -0
  54. Cython/Compiler/Scanning.pxd +40 -0
  55. Cython/Compiler/Scanning.py +574 -0
  56. Cython/Compiler/StringEncoding.py +347 -0
  57. Cython/Compiler/Symtab.py +2998 -0
  58. Cython/Compiler/Tests/TestBuffer.py +105 -0
  59. Cython/Compiler/Tests/TestBuiltin.py +72 -0
  60. Cython/Compiler/Tests/TestCmdLine.py +573 -0
  61. Cython/Compiler/Tests/TestCode.py +86 -0
  62. Cython/Compiler/Tests/TestFlowControl.py +65 -0
  63. Cython/Compiler/Tests/TestGrammar.py +202 -0
  64. Cython/Compiler/Tests/TestMemView.py +71 -0
  65. Cython/Compiler/Tests/TestParseTreeTransforms.py +285 -0
  66. Cython/Compiler/Tests/TestScanning.py +134 -0
  67. Cython/Compiler/Tests/TestSignatureMatching.py +73 -0
  68. Cython/Compiler/Tests/TestStringEncoding.py +33 -0
  69. Cython/Compiler/Tests/TestTreeFragment.py +63 -0
  70. Cython/Compiler/Tests/TestTreePath.py +93 -0
  71. Cython/Compiler/Tests/TestTypes.py +75 -0
  72. Cython/Compiler/Tests/TestUtilityLoad.py +112 -0
  73. Cython/Compiler/Tests/TestVisitor.py +61 -0
  74. Cython/Compiler/Tests/Utils.py +36 -0
  75. Cython/Compiler/Tests/__init__.py +1 -0
  76. Cython/Compiler/TreeFragment.py +278 -0
  77. Cython/Compiler/TreePath.py +290 -0
  78. Cython/Compiler/TypeInference.py +584 -0
  79. Cython/Compiler/TypeSlots.py +1181 -0
  80. Cython/Compiler/UFuncs.py +311 -0
  81. Cython/Compiler/UtilNodes.py +387 -0
  82. Cython/Compiler/UtilityCode.py +274 -0
  83. Cython/Compiler/Version.py +8 -0
  84. Cython/Compiler/Visitor.pxd +53 -0
  85. Cython/Compiler/Visitor.py +861 -0
  86. Cython/Compiler/__init__.py +1 -0
  87. Cython/Coverage.py +443 -0
  88. Cython/Debugger/Cygdb.py +179 -0
  89. Cython/Debugger/DebugWriter.py +82 -0
  90. Cython/Debugger/Tests/TestLibCython.py +275 -0
  91. Cython/Debugger/Tests/__init__.py +1 -0
  92. Cython/Debugger/Tests/cfuncs.c +8 -0
  93. Cython/Debugger/Tests/codefile +49 -0
  94. Cython/Debugger/Tests/test_libcython_in_gdb.py +578 -0
  95. Cython/Debugger/Tests/test_libpython_in_gdb.py +90 -0
  96. Cython/Debugger/__init__.py +1 -0
  97. Cython/Debugger/libcython.py +1549 -0
  98. Cython/Debugger/libpython.py +2821 -0
  99. Cython/Debugging.py +20 -0
  100. Cython/Distutils/__init__.py +2 -0
  101. Cython/Distutils/build_ext.py +137 -0
  102. Cython/Distutils/extension.py +96 -0
  103. Cython/Distutils/old_build_ext.py +351 -0
  104. Cython/Includes/cpython/__init__.pxd +173 -0
  105. Cython/Includes/cpython/array.pxd +174 -0
  106. Cython/Includes/cpython/bool.pxd +37 -0
  107. Cython/Includes/cpython/buffer.pxd +112 -0
  108. Cython/Includes/cpython/bytearray.pxd +33 -0
  109. Cython/Includes/cpython/bytes.pxd +200 -0
  110. Cython/Includes/cpython/cellobject.pxd +35 -0
  111. Cython/Includes/cpython/ceval.pxd +8 -0
  112. Cython/Includes/cpython/codecs.pxd +121 -0
  113. Cython/Includes/cpython/complex.pxd +55 -0
  114. Cython/Includes/cpython/contextvars.pxd +141 -0
  115. Cython/Includes/cpython/conversion.pxd +36 -0
  116. Cython/Includes/cpython/datetime.pxd +384 -0
  117. Cython/Includes/cpython/descr.pxd +26 -0
  118. Cython/Includes/cpython/dict.pxd +187 -0
  119. Cython/Includes/cpython/exc.pxd +263 -0
  120. Cython/Includes/cpython/fileobject.pxd +57 -0
  121. Cython/Includes/cpython/float.pxd +47 -0
  122. Cython/Includes/cpython/function.pxd +65 -0
  123. Cython/Includes/cpython/genobject.pxd +25 -0
  124. Cython/Includes/cpython/getargs.pxd +12 -0
  125. Cython/Includes/cpython/instance.pxd +25 -0
  126. Cython/Includes/cpython/iterator.pxd +36 -0
  127. Cython/Includes/cpython/iterobject.pxd +24 -0
  128. Cython/Includes/cpython/list.pxd +92 -0
  129. Cython/Includes/cpython/long.pxd +149 -0
  130. Cython/Includes/cpython/longintrepr.pxd +19 -0
  131. Cython/Includes/cpython/mapping.pxd +63 -0
  132. Cython/Includes/cpython/marshal.pxd +66 -0
  133. Cython/Includes/cpython/mem.pxd +120 -0
  134. Cython/Includes/cpython/memoryview.pxd +50 -0
  135. Cython/Includes/cpython/method.pxd +49 -0
  136. Cython/Includes/cpython/module.pxd +208 -0
  137. Cython/Includes/cpython/number.pxd +258 -0
  138. Cython/Includes/cpython/object.pxd +433 -0
  139. Cython/Includes/cpython/pycapsule.pxd +143 -0
  140. Cython/Includes/cpython/pylifecycle.pxd +68 -0
  141. Cython/Includes/cpython/pyport.pxd +8 -0
  142. Cython/Includes/cpython/pystate.pxd +95 -0
  143. Cython/Includes/cpython/pythread.pxd +53 -0
  144. Cython/Includes/cpython/ref.pxd +67 -0
  145. Cython/Includes/cpython/sequence.pxd +134 -0
  146. Cython/Includes/cpython/set.pxd +119 -0
  147. Cython/Includes/cpython/slice.pxd +70 -0
  148. Cython/Includes/cpython/time.pxd +129 -0
  149. Cython/Includes/cpython/tuple.pxd +72 -0
  150. Cython/Includes/cpython/type.pxd +53 -0
  151. Cython/Includes/cpython/unicode.pxd +639 -0
  152. Cython/Includes/cpython/version.pxd +32 -0
  153. Cython/Includes/cpython/weakref.pxd +42 -0
  154. Cython/Includes/libc/__init__.pxd +1 -0
  155. Cython/Includes/libc/complex.pxd +35 -0
  156. Cython/Includes/libc/errno.pxd +127 -0
  157. Cython/Includes/libc/float.pxd +43 -0
  158. Cython/Includes/libc/limits.pxd +28 -0
  159. Cython/Includes/libc/locale.pxd +46 -0
  160. Cython/Includes/libc/math.pxd +209 -0
  161. Cython/Includes/libc/setjmp.pxd +10 -0
  162. Cython/Includes/libc/signal.pxd +64 -0
  163. Cython/Includes/libc/stddef.pxd +9 -0
  164. Cython/Includes/libc/stdint.pxd +105 -0
  165. Cython/Includes/libc/stdio.pxd +80 -0
  166. Cython/Includes/libc/stdlib.pxd +72 -0
  167. Cython/Includes/libc/string.pxd +50 -0
  168. Cython/Includes/libc/time.pxd +47 -0
  169. Cython/Includes/libcpp/__init__.pxd +4 -0
  170. Cython/Includes/libcpp/algorithm.pxd +320 -0
  171. Cython/Includes/libcpp/any.pxd +16 -0
  172. Cython/Includes/libcpp/atomic.pxd +59 -0
  173. Cython/Includes/libcpp/bit.pxd +29 -0
  174. Cython/Includes/libcpp/cast.pxd +12 -0
  175. Cython/Includes/libcpp/cmath.pxd +518 -0
  176. Cython/Includes/libcpp/complex.pxd +106 -0
  177. Cython/Includes/libcpp/deque.pxd +165 -0
  178. Cython/Includes/libcpp/execution.pxd +15 -0
  179. Cython/Includes/libcpp/forward_list.pxd +63 -0
  180. Cython/Includes/libcpp/functional.pxd +26 -0
  181. Cython/Includes/libcpp/iterator.pxd +34 -0
  182. Cython/Includes/libcpp/limits.pxd +61 -0
  183. Cython/Includes/libcpp/list.pxd +117 -0
  184. Cython/Includes/libcpp/map.pxd +252 -0
  185. Cython/Includes/libcpp/memory.pxd +115 -0
  186. Cython/Includes/libcpp/numbers.pxd +15 -0
  187. Cython/Includes/libcpp/numeric.pxd +131 -0
  188. Cython/Includes/libcpp/optional.pxd +34 -0
  189. Cython/Includes/libcpp/pair.pxd +1 -0
  190. Cython/Includes/libcpp/queue.pxd +25 -0
  191. Cython/Includes/libcpp/random.pxd +166 -0
  192. Cython/Includes/libcpp/set.pxd +228 -0
  193. Cython/Includes/libcpp/stack.pxd +11 -0
  194. Cython/Includes/libcpp/string.pxd +333 -0
  195. Cython/Includes/libcpp/typeindex.pxd +15 -0
  196. Cython/Includes/libcpp/typeinfo.pxd +10 -0
  197. Cython/Includes/libcpp/unordered_map.pxd +193 -0
  198. Cython/Includes/libcpp/unordered_set.pxd +152 -0
  199. Cython/Includes/libcpp/utility.pxd +30 -0
  200. Cython/Includes/libcpp/vector.pxd +167 -0
  201. Cython/Includes/openmp.pxd +50 -0
  202. Cython/Includes/posix/__init__.pxd +1 -0
  203. Cython/Includes/posix/dlfcn.pxd +14 -0
  204. Cython/Includes/posix/fcntl.pxd +86 -0
  205. Cython/Includes/posix/ioctl.pxd +4 -0
  206. Cython/Includes/posix/mman.pxd +101 -0
  207. Cython/Includes/posix/resource.pxd +57 -0
  208. Cython/Includes/posix/select.pxd +21 -0
  209. Cython/Includes/posix/signal.pxd +73 -0
  210. Cython/Includes/posix/stat.pxd +98 -0
  211. Cython/Includes/posix/stdio.pxd +37 -0
  212. Cython/Includes/posix/stdlib.pxd +29 -0
  213. Cython/Includes/posix/strings.pxd +9 -0
  214. Cython/Includes/posix/time.pxd +71 -0
  215. Cython/Includes/posix/types.pxd +30 -0
  216. Cython/Includes/posix/uio.pxd +26 -0
  217. Cython/Includes/posix/unistd.pxd +271 -0
  218. Cython/Includes/posix/wait.pxd +38 -0
  219. Cython/Plex/Actions.pxd +24 -0
  220. Cython/Plex/Actions.py +119 -0
  221. Cython/Plex/DFA.pxd +14 -0
  222. Cython/Plex/DFA.py +164 -0
  223. Cython/Plex/Errors.py +48 -0
  224. Cython/Plex/Lexicons.py +178 -0
  225. Cython/Plex/Machines.pxd +36 -0
  226. Cython/Plex/Machines.py +238 -0
  227. Cython/Plex/Regexps.py +539 -0
  228. Cython/Plex/Scanners.pxd +47 -0
  229. Cython/Plex/Scanners.py +360 -0
  230. Cython/Plex/Transitions.pxd +14 -0
  231. Cython/Plex/Transitions.py +239 -0
  232. Cython/Plex/__init__.py +34 -0
  233. Cython/Runtime/__init__.py +1 -0
  234. Cython/Runtime/refnanny.pyx +261 -0
  235. Cython/Shadow.py +656 -0
  236. Cython/Shadow.pyi +521 -0
  237. Cython/StringIOTree.py +170 -0
  238. Cython/Tempita/__init__.py +4 -0
  239. Cython/Tempita/_looper.py +154 -0
  240. Cython/Tempita/_tempita.py +1091 -0
  241. Cython/TestUtils.py +417 -0
  242. Cython/Tests/TestCodeWriter.py +128 -0
  243. Cython/Tests/TestCythonUtils.py +202 -0
  244. Cython/Tests/TestJediTyper.py +223 -0
  245. Cython/Tests/TestShadow.py +114 -0
  246. Cython/Tests/TestStringIOTree.py +67 -0
  247. Cython/Tests/TestTestUtils.py +90 -0
  248. Cython/Tests/__init__.py +1 -0
  249. Cython/Tests/xmlrunner.py +390 -0
  250. Cython/Utility/AsyncGen.c +1263 -0
  251. Cython/Utility/Buffer.c +875 -0
  252. Cython/Utility/Builtins.c +660 -0
  253. Cython/Utility/CConvert.pyx +134 -0
  254. Cython/Utility/CMath.c +95 -0
  255. Cython/Utility/CommonStructures.c +139 -0
  256. Cython/Utility/Complex.c +378 -0
  257. Cython/Utility/Coroutine.c +2413 -0
  258. Cython/Utility/CpdefEnums.pyx +108 -0
  259. Cython/Utility/CppConvert.pyx +279 -0
  260. Cython/Utility/CppSupport.cpp +133 -0
  261. Cython/Utility/CythonFunction.c +1851 -0
  262. Cython/Utility/Dataclasses.c +185 -0
  263. Cython/Utility/Dataclasses.py +112 -0
  264. Cython/Utility/Embed.c +125 -0
  265. Cython/Utility/Exceptions.c +1017 -0
  266. Cython/Utility/ExtensionTypes.c +797 -0
  267. Cython/Utility/FunctionArguments.c +573 -0
  268. Cython/Utility/ImportExport.c +912 -0
  269. Cython/Utility/MemoryView.pyx +1478 -0
  270. Cython/Utility/MemoryView_C.c +992 -0
  271. Cython/Utility/ModuleSetupCode.c +2501 -0
  272. Cython/Utility/NumpyImportArray.c +46 -0
  273. Cython/Utility/ObjectHandling.c +3054 -0
  274. Cython/Utility/Optimize.c +1533 -0
  275. Cython/Utility/Overflow.c +404 -0
  276. Cython/Utility/Printing.c +86 -0
  277. Cython/Utility/Profile.c +660 -0
  278. Cython/Utility/StringTools.c +1206 -0
  279. Cython/Utility/TestCyUtilityLoader.pyx +8 -0
  280. Cython/Utility/TestCythonScope.pyx +75 -0
  281. Cython/Utility/TestUtilityLoader.c +12 -0
  282. Cython/Utility/TypeConversion.c +1329 -0
  283. Cython/Utility/UFuncs.pyx +50 -0
  284. Cython/Utility/UFuncs_C.c +89 -0
  285. Cython/Utility/__init__.py +28 -0
  286. Cython/Utility/arrayarray.h +143 -0
  287. Cython/Utils.py +687 -0
  288. Cython/__init__.py +10 -0
  289. Cython/__init__.pyi +7 -0
  290. Cython/py.typed +0 -0
  291. Cython-3.1.0a1.dist-info/COPYING.txt +19 -0
  292. Cython-3.1.0a1.dist-info/LICENSE.txt +176 -0
  293. Cython-3.1.0a1.dist-info/METADATA +67 -0
  294. Cython-3.1.0a1.dist-info/RECORD +301 -0
  295. Cython-3.1.0a1.dist-info/WHEEL +5 -0
  296. Cython-3.1.0a1.dist-info/entry_points.txt +4 -0
  297. Cython-3.1.0a1.dist-info/top_level.txt +3 -0
  298. cython.py +29 -0
  299. pyximport/__init__.py +4 -0
  300. pyximport/pyxbuild.py +160 -0
  301. pyximport/pyximport.py +482 -0
@@ -0,0 +1,333 @@
1
+
2
+ # deprecated cimport for backwards compatibility:
3
+ from libc.string cimport const_char
4
+
5
+ cdef extern from "<string>" namespace "std::string" nogil:
6
+ const size_t npos
7
+
8
+ cdef extern from "<string>" namespace "std" nogil:
9
+ cdef cppclass string:
10
+ ctypedef char value_type
11
+
12
+ # these should really be allocator_type.size_type and
13
+ # allocator_type.difference_type to be true to the C++ definition
14
+ # but cython doesn't support deferred access on template arguments
15
+ ctypedef size_t size_type
16
+ ctypedef ptrdiff_t difference_type
17
+
18
+ cppclass const_iterator
19
+ cppclass iterator:
20
+ iterator() except +
21
+ iterator(iterator&) except +
22
+ value_type& operator*()
23
+ iterator operator++()
24
+ iterator operator--()
25
+ iterator operator++(int)
26
+ iterator operator--(int)
27
+ iterator operator+(size_type)
28
+ iterator operator-(size_type)
29
+ difference_type operator-(iterator)
30
+ difference_type operator-(const_iterator)
31
+ bint operator==(iterator)
32
+ bint operator==(const_iterator)
33
+ bint operator!=(iterator)
34
+ bint operator!=(const_iterator)
35
+ bint operator<(iterator)
36
+ bint operator<(const_iterator)
37
+ bint operator>(iterator)
38
+ bint operator>(const_iterator)
39
+ bint operator<=(iterator)
40
+ bint operator<=(const_iterator)
41
+ bint operator>=(iterator)
42
+ bint operator>=(const_iterator)
43
+ cppclass const_iterator:
44
+ const_iterator() except +
45
+ const_iterator(iterator&) except +
46
+ const_iterator(const_iterator&) except +
47
+ operator=(iterator&) except +
48
+ const value_type& operator*()
49
+ const_iterator operator++()
50
+ const_iterator operator--()
51
+ const_iterator operator++(int)
52
+ const_iterator operator--(int)
53
+ const_iterator operator+(size_type)
54
+ const_iterator operator-(size_type)
55
+ difference_type operator-(iterator)
56
+ difference_type operator-(const_iterator)
57
+ bint operator==(iterator)
58
+ bint operator==(const_iterator)
59
+ bint operator!=(iterator)
60
+ bint operator!=(const_iterator)
61
+ bint operator<(iterator)
62
+ bint operator<(const_iterator)
63
+ bint operator>(iterator)
64
+ bint operator>(const_iterator)
65
+ bint operator<=(iterator)
66
+ bint operator<=(const_iterator)
67
+ bint operator>=(iterator)
68
+ bint operator>=(const_iterator)
69
+
70
+ cppclass const_reverse_iterator
71
+ cppclass reverse_iterator:
72
+ reverse_iterator() except +
73
+ reverse_iterator(reverse_iterator&) except +
74
+ value_type& operator*()
75
+ reverse_iterator operator++()
76
+ reverse_iterator operator--()
77
+ reverse_iterator operator++(int)
78
+ reverse_iterator operator--(int)
79
+ reverse_iterator operator+(size_type)
80
+ reverse_iterator operator-(size_type)
81
+ difference_type operator-(iterator)
82
+ difference_type operator-(const_iterator)
83
+ bint operator==(reverse_iterator)
84
+ bint operator==(const_reverse_iterator)
85
+ bint operator!=(reverse_iterator)
86
+ bint operator!=(const_reverse_iterator)
87
+ bint operator<(reverse_iterator)
88
+ bint operator<(const_reverse_iterator)
89
+ bint operator>(reverse_iterator)
90
+ bint operator>(const_reverse_iterator)
91
+ bint operator<=(reverse_iterator)
92
+ bint operator<=(const_reverse_iterator)
93
+ bint operator>=(reverse_iterator)
94
+ bint operator>=(const_reverse_iterator)
95
+ cppclass const_reverse_iterator:
96
+ const_reverse_iterator() except +
97
+ const_reverse_iterator(reverse_iterator&) except +
98
+ operator=(reverse_iterator&) except +
99
+ const value_type& operator*()
100
+ const_reverse_iterator operator++()
101
+ const_reverse_iterator operator--()
102
+ const_reverse_iterator operator++(int)
103
+ const_reverse_iterator operator--(int)
104
+ const_reverse_iterator operator+(size_type)
105
+ const_reverse_iterator operator-(size_type)
106
+ difference_type operator-(iterator)
107
+ difference_type operator-(const_iterator)
108
+ bint operator==(reverse_iterator)
109
+ bint operator==(const_reverse_iterator)
110
+ bint operator!=(reverse_iterator)
111
+ bint operator!=(const_reverse_iterator)
112
+ bint operator<(reverse_iterator)
113
+ bint operator<(const_reverse_iterator)
114
+ bint operator>(reverse_iterator)
115
+ bint operator>(const_reverse_iterator)
116
+ bint operator<=(reverse_iterator)
117
+ bint operator<=(const_reverse_iterator)
118
+ bint operator>=(reverse_iterator)
119
+ bint operator>=(const_reverse_iterator)
120
+
121
+ string() except +
122
+ string(const string& s) except +
123
+ string(const string& s, size_t pos) except +
124
+ string(const string& s, size_t pos, size_t len) except +
125
+ string(const char* s) except +
126
+ string(const char* s, size_t n) except +
127
+ string(size_t n, char c) except +
128
+ string(iterator first, iterator last) except +
129
+
130
+ iterator begin()
131
+ const_iterator const_begin "begin"()
132
+ const_iterator cbegin()
133
+ iterator end()
134
+ const_iterator const_end "end"()
135
+ const_iterator cend()
136
+ reverse_iterator rbegin()
137
+ const_reverse_iterator const_rbegin "rbegin"()
138
+ const_reverse_iterator crbegin()
139
+ reverse_iterator rend()
140
+ const_reverse_iterator const_rend "rend"()
141
+ const_reverse_iterator crend()
142
+
143
+ const char* c_str()
144
+ const char* data()
145
+ size_t size()
146
+ size_t max_size()
147
+ size_t length()
148
+ void resize(size_t) except +
149
+ void resize(size_t, char) except +
150
+ void shrink_to_fit() except +
151
+ void swap(string& other)
152
+ size_t capacity()
153
+ void reserve(size_t) except +
154
+ void clear()
155
+ bint empty()
156
+
157
+ iterator erase(iterator first, iterator last)
158
+ iterator erase(iterator p)
159
+ iterator erase(const_iterator first, const_iterator last)
160
+ iterator erase(const_iterator p)
161
+ string& erase(size_t pos, size_t len) except +
162
+ string& erase(size_t pos) except +
163
+ string& erase() except +
164
+
165
+ char& at(size_t pos) except +
166
+ char& operator[](size_t pos)
167
+ char& front()
168
+ char& back()
169
+ int compare(const string& s)
170
+ int compare(size_t pos, size_t len, const string& s) except +
171
+ int compare(size_t pos, size_t len, const string& s, size_t subpos, size_t sublen) except +
172
+ int compare(const char* s) except +
173
+ int compare(size_t pos, size_t len, const char* s) except +
174
+ int compare(size_t pos, size_t len, const char* s , size_t n) except +
175
+
176
+ string& append(const string& s) except +
177
+ string& append(const string& s, size_t subpos, size_t sublen) except +
178
+ string& append(const char* s) except +
179
+ string& append(const char* s, size_t n) except +
180
+ string& append(size_t n, char c) except +
181
+
182
+ void push_back(char c) except +
183
+ void pop_back()
184
+
185
+ string& assign(const string& s) except +
186
+ string& assign(const string& s, size_t subpos, size_t sublen) except +
187
+ string& assign(const char* s, size_t n) except +
188
+ string& assign(const char* s) except +
189
+ string& assign(size_t n, char c) except +
190
+
191
+ string& insert(size_t pos, const string& s, size_t subpos, size_t sublen) except +
192
+ string& insert(size_t pos, const string& s) except +
193
+ string& insert(size_t pos, const char* s, size_t n) except +
194
+ string& insert(size_t pos, const char* s) except +
195
+ string& insert(size_t pos, size_t n, char c) except +
196
+ void insert(iterator p, size_t n, char c) except +
197
+ iterator insert(iterator p, char c) except +
198
+
199
+ string& replace(size_t pos, size_t len, const string& str) except +
200
+ string& replace(iterator i1, iterator i2, const string& str) except +
201
+ string& replace(size_t pos, size_t len, const string& str, size_t subpos, size_t sublen) except +
202
+ string& replace(size_t pos, size_t len, const char* s) except +
203
+ string& replace(iterator i1, iterator i2, const char* s) except +
204
+ string& replace(size_t pos, size_t len, const char* s, size_t n) except +
205
+ string& replace(iterator i1, iterator i2, const char* s, size_t n) except +
206
+ string& replace(size_t pos, size_t len, size_t n, char c) except +
207
+ string& replace(iterator i1, iterator i2, size_t n, char c) except +
208
+
209
+ size_t copy(char* s, size_t len, size_t pos) except +
210
+ size_t copy(char* s, size_t len) except +
211
+
212
+ size_t find(const string& s, size_t pos)
213
+ size_t find(const string& s)
214
+ size_t find(const char* s, size_t pos, size_t n)
215
+ size_t find(const char* s, size_t pos)
216
+ size_t find(const char* s)
217
+ size_t find(char c, size_t pos)
218
+ size_t find(char c)
219
+
220
+ size_t rfind(const string&, size_t pos)
221
+ size_t rfind(const string&)
222
+ size_t rfind(const char* s, size_t pos, size_t n)
223
+ size_t rfind(const char* s, size_t pos)
224
+ size_t rfind(const char* s)
225
+ size_t rfind(char c, size_t pos)
226
+ size_t rfind(char c)
227
+
228
+ size_t find_first_of(const string&, size_t pos)
229
+ size_t find_first_of(const string&)
230
+ size_t find_first_of(const char* s, size_t pos, size_t n)
231
+ size_t find_first_of(const char* s, size_t pos)
232
+ size_t find_first_of(const char* s)
233
+ size_t find_first_of(char c, size_t pos)
234
+ size_t find_first_of(char c)
235
+
236
+ size_t find_first_not_of(const string& s, size_t pos)
237
+ size_t find_first_not_of(const string& s)
238
+ size_t find_first_not_of(const char* s, size_t pos, size_t n)
239
+ size_t find_first_not_of(const char* s, size_t pos)
240
+ size_t find_first_not_of(const char*)
241
+ size_t find_first_not_of(char c, size_t pos)
242
+ size_t find_first_not_of(char c)
243
+
244
+ size_t find_last_of(const string& s, size_t pos)
245
+ size_t find_last_of(const string& s)
246
+ size_t find_last_of(const char* s, size_t pos, size_t n)
247
+ size_t find_last_of(const char* s, size_t pos)
248
+ size_t find_last_of(const char* s)
249
+ size_t find_last_of(char c, size_t pos)
250
+ size_t find_last_of(char c)
251
+
252
+ size_t find_last_not_of(const string& s, size_t pos)
253
+ size_t find_last_not_of(const string& s)
254
+ size_t find_last_not_of(const char* s, size_t pos, size_t n)
255
+ size_t find_last_not_of(const char* s, size_t pos)
256
+ size_t find_last_not_of(const char* s)
257
+ size_t find_last_not_of(char c, size_t pos)
258
+ size_t find_last_not_of(char c)
259
+
260
+ string substr(size_t pos, size_t len) except +
261
+ string substr(size_t pos) except +
262
+ string substr()
263
+
264
+ # C++20
265
+ bint starts_with(char c) except +
266
+ bint starts_with(const char* s)
267
+ bint ends_with(char c) except +
268
+ bint ends_with(const char* s)
269
+ # C++23
270
+ bint contains(char c) except +
271
+ bint contains(const char* s)
272
+
273
+ #string& operator= (const string&)
274
+ #string& operator= (const char*)
275
+ #string& operator= (char)
276
+
277
+ string operator+ (const string&) except +
278
+ string operator+ (const char*) except +
279
+
280
+ bint operator==(const string&)
281
+ bint operator==(const char*)
282
+
283
+ bint operator!= (const string&)
284
+ bint operator!= (const char*)
285
+
286
+ bint operator< (const string&)
287
+ bint operator< (const char*)
288
+
289
+ bint operator> (const string&)
290
+ bint operator> (const char*)
291
+
292
+ bint operator<= (const string&)
293
+ bint operator<= (const char*)
294
+
295
+ bint operator>= (const string&)
296
+ bint operator>= (const char*)
297
+
298
+
299
+ string to_string(int val) except +
300
+ string to_string(long val) except +
301
+ string to_string(long long val) except +
302
+ string to_string(unsigned val) except +
303
+ string to_string(size_t val) except +
304
+ string to_string(ssize_t val) except +
305
+ string to_string(unsigned long val) except +
306
+ string to_string(unsigned long long val) except +
307
+ string to_string(float val) except +
308
+ string to_string(double val) except +
309
+ string to_string(long double val) except +
310
+
311
+ int stoi(const string& s, size_t* idx, int base) except +
312
+ int stoi(const string& s, size_t* idx) except +
313
+ int stoi(const string& s) except +
314
+ long stol(const string& s, size_t* idx, int base) except +
315
+ long stol(const string& s, size_t* idx) except +
316
+ long stol(const string& s) except +
317
+ long long stoll(const string& s, size_t* idx, int base) except +
318
+ long long stoll(const string& s, size_t* idx) except +
319
+ long long stoll(const string& s) except +
320
+
321
+ unsigned long stoul(const string& s, size_t* idx, int base) except +
322
+ unsigned long stoul(const string& s, size_t* idx) except +
323
+ unsigned long stoul(const string& s) except +
324
+ unsigned long long stoull(const string& s, size_t* idx, int base) except +
325
+ unsigned long long stoull(const string& s, size_t* idx) except +
326
+ unsigned long long stoull(const string& s) except +
327
+
328
+ float stof(const string& s, size_t* idx) except +
329
+ float stof(const string& s) except +
330
+ double stod(const string& s, size_t* idx) except +
331
+ double stod(const string& s) except +
332
+ long double stold(const string& s, size_t* idx) except +
333
+ long double stold(const string& s) except +
@@ -0,0 +1,15 @@
1
+ from libcpp cimport bool
2
+ from .typeinfo cimport type_info
3
+
4
+ # This class is C++11-only
5
+ cdef extern from "<typeindex>" namespace "std" nogil:
6
+ cdef cppclass type_index:
7
+ type_index(const type_info &)
8
+ const char* name()
9
+ size_t hash_code()
10
+ bool operator==(const type_index &)
11
+ bool operator!=(const type_index &)
12
+ bool operator<(const type_index &)
13
+ bool operator<=(const type_index &)
14
+ bool operator>(const type_index &)
15
+ bool operator>=(const type_index &)
@@ -0,0 +1,10 @@
1
+ from libcpp cimport bool
2
+
3
+ cdef extern from "<typeinfo>" namespace "std" nogil:
4
+ cdef cppclass type_info:
5
+ const char* name()
6
+ int before(const type_info&)
7
+ bool operator==(const type_info&)
8
+ bool operator!=(const type_info&)
9
+ # C++11-only
10
+ size_t hash_code()
@@ -0,0 +1,193 @@
1
+ from .utility cimport pair
2
+
3
+ cdef extern from "<unordered_map>" namespace "std" nogil:
4
+ cdef cppclass unordered_map[T, U, HASH=*, PRED=*, ALLOCATOR=*]:
5
+ ctypedef T key_type
6
+ ctypedef U mapped_type
7
+ ctypedef pair[const T, U] value_type
8
+ ctypedef ALLOCATOR allocator_type
9
+
10
+ # these should really be allocator_type.size_type and
11
+ # allocator_type.difference_type to be true to the C++ definition
12
+ # but cython doesn't support deferred access on template arguments
13
+ ctypedef size_t size_type
14
+ ctypedef ptrdiff_t difference_type
15
+
16
+ cppclass iterator
17
+ cppclass iterator:
18
+ iterator() except +
19
+ iterator(iterator&) except +
20
+ # correct would be value_type& but this does not work
21
+ # well with cython's code gen
22
+ pair[T, U]& operator*()
23
+ iterator operator++()
24
+ iterator operator--()
25
+ iterator operator++(int)
26
+ iterator operator--(int)
27
+ bint operator==(iterator)
28
+ bint operator==(const_iterator)
29
+ bint operator!=(iterator)
30
+ bint operator!=(const_iterator)
31
+ cppclass const_iterator:
32
+ const_iterator() except +
33
+ const_iterator(iterator&) except +
34
+ operator=(iterator&) except +
35
+ # correct would be const value_type& but this does not work
36
+ # well with cython's code gen
37
+ const pair[T, U]& operator*()
38
+ const_iterator operator++()
39
+ const_iterator operator--()
40
+ const_iterator operator++(int)
41
+ const_iterator operator--(int)
42
+ bint operator==(iterator)
43
+ bint operator==(const_iterator)
44
+ bint operator!=(iterator)
45
+ bint operator!=(const_iterator)
46
+
47
+ unordered_map() except +
48
+ unordered_map(unordered_map&) except +
49
+ #unordered_map(key_compare&)
50
+ U& operator[](const T&)
51
+ #unordered_map& operator=(unordered_map&)
52
+ bint operator==(unordered_map&, unordered_map&)
53
+ bint operator!=(unordered_map&, unordered_map&)
54
+ bint operator<(unordered_map&, unordered_map&)
55
+ bint operator>(unordered_map&, unordered_map&)
56
+ bint operator<=(unordered_map&, unordered_map&)
57
+ bint operator>=(unordered_map&, unordered_map&)
58
+ U& at(const T&) except +
59
+ const U& const_at "at"(const T&) except +
60
+ iterator begin()
61
+ const_iterator const_begin "begin"()
62
+ const_iterator cbegin()
63
+ void clear()
64
+ size_t count(const T&)
65
+ bint empty()
66
+ iterator end()
67
+ const_iterator const_end "end"()
68
+ const_iterator cend()
69
+ pair[iterator, iterator] equal_range(const T&)
70
+ pair[const_iterator, const_iterator] const_equal_range "equal_range"(const T&)
71
+ iterator erase(iterator)
72
+ iterator const_erase "erase"(const_iterator)
73
+ iterator erase(const_iterator, const_iterator)
74
+ size_t erase(const T&)
75
+ iterator find(const T&)
76
+ const_iterator const_find "find"(const T&)
77
+ pair[iterator, bint] insert(const pair[T, U]&) except +
78
+ iterator insert(const_iterator, const pair[T, U]&) except +
79
+ void insert[InputIt](InputIt, InputIt) except +
80
+ #key_compare key_comp()
81
+ iterator lower_bound(const T&)
82
+ const_iterator const_lower_bound "lower_bound"(const T&)
83
+ size_t max_size()
84
+ size_t size()
85
+ void swap(unordered_map&)
86
+ iterator upper_bound(const T&)
87
+ const_iterator const_upper_bound "upper_bound"(const T&)
88
+ #value_compare value_comp()
89
+ void max_load_factor(float)
90
+ float max_load_factor()
91
+ float load_factor()
92
+ void rehash(size_t)
93
+ void reserve(size_t)
94
+ size_t bucket_count()
95
+ size_t max_bucket_count()
96
+ size_t bucket_size(size_t)
97
+ size_t bucket(const T&)
98
+ # C++20
99
+ bint contains(const T&)
100
+
101
+ cdef cppclass unordered_multimap[T, U, HASH=*, PRED=*, ALLOCATOR=*]:
102
+ ctypedef T key_type
103
+ ctypedef U mapped_type
104
+ ctypedef pair[const T, U] value_type
105
+ ctypedef ALLOCATOR allocator_type
106
+
107
+ # these should really be allocator_type.size_type and
108
+ # allocator_type.difference_type to be true to the C++ definition
109
+ # but cython doesn't support deferred access on template arguments
110
+ ctypedef size_t size_type
111
+ ctypedef ptrdiff_t difference_type
112
+
113
+ cppclass const_iterator
114
+ cppclass iterator:
115
+ iterator() except +
116
+ iterator(iterator&) except +
117
+ # correct would be value_type& but this does not work
118
+ # well with cython's code gen
119
+ pair[T, U]& operator*()
120
+ iterator operator++()
121
+ iterator operator++(int)
122
+ bint operator==(iterator)
123
+ bint operator==(const_iterator)
124
+ bint operator!=(iterator)
125
+ bint operator!=(const_iterator)
126
+ cppclass const_iterator:
127
+ const_iterator() except +
128
+ const_iterator(iterator&) except +
129
+ operator=(iterator&) except +
130
+ # correct would be const value_type& but this does not work
131
+ # well with cython's code gen
132
+ const pair[T, U]& operator*()
133
+ const_iterator operator++()
134
+ const_iterator operator++(int)
135
+ bint operator==(iterator)
136
+ bint operator==(const_iterator)
137
+ bint operator!=(iterator)
138
+ bint operator!=(const_iterator)
139
+
140
+ unordered_multimap() except +
141
+ unordered_multimap(const unordered_multimap&) except +
142
+ #unordered_multimap(key_compare&)
143
+ #unordered_map& operator=(unordered_multimap&)
144
+ bint operator==(const unordered_multimap&, const unordered_multimap&)
145
+ bint operator!=(const unordered_multimap&, const unordered_multimap&)
146
+ bint operator<(const unordered_multimap&, const unordered_multimap&)
147
+ bint operator>(const unordered_multimap&, const unordered_multimap&)
148
+ bint operator<=(const unordered_multimap&, const unordered_multimap&)
149
+ bint operator>=(const unordered_multimap&, const unordered_multimap&)
150
+ iterator begin()
151
+ const_iterator const_begin "begin"()
152
+ const_iterator cbegin()
153
+ #local_iterator begin(size_t)
154
+ #const_local_iterator const_begin "begin"(size_t)
155
+ void clear()
156
+ size_t count(const T&)
157
+ bint empty()
158
+ iterator end()
159
+ const_iterator const_end "end"()
160
+ const_iterator cend()
161
+ #local_iterator end(size_t)
162
+ #const_local_iterator const_end "end"(size_t)
163
+ pair[iterator, iterator] equal_range(const T&)
164
+ pair[const_iterator, const_iterator] const_equal_range "equal_range"(const T&)
165
+ iterator erase(iterator)
166
+ iterator const_erase "erase"(const_iterator)
167
+ iterator erase(const_iterator, const_iterator)
168
+ size_t erase(const T&)
169
+ iterator find(const T&)
170
+ const_iterator const_find "find"(const T&)
171
+ iterator insert(const pair[T, U]&) except +
172
+ iterator insert(const_iterator, const pair[T, U]&) except +
173
+ void insert[InputIt](InputIt, InputIt) except +
174
+ #key_compare key_comp()
175
+ iterator lower_bound(const T&)
176
+ const_iterator const_lower_bound "lower_bound"(const T&)
177
+ size_t max_size()
178
+ size_t size()
179
+ void swap(unordered_multimap&)
180
+ iterator upper_bound(const T&)
181
+ const_iterator const_upper_bound "upper_bound"(const T&)
182
+ #value_compare value_comp()
183
+ void max_load_factor(float)
184
+ float max_load_factor()
185
+ float load_factor()
186
+ void rehash(size_t)
187
+ void reserve(size_t)
188
+ size_t bucket_count()
189
+ size_t max_bucket_count()
190
+ size_t bucket_size(size_t)
191
+ size_t bucket(const T&)
192
+ # C++20
193
+ bint contains(const T&)