Nuitka
The Python compiler
Loading...
Searching...
No Matches
strings.h
1// Copyright 2025, Kay Hayen, mailto:kay.hayen@gmail.com find license text at end of file
2
3#ifndef __NUITKA_STRINGS_H__
4#define __NUITKA_STRINGS_H__
5
6#if PYTHON_VERSION < 0x300
7extern PyObject *STR_JOIN(PyThreadState *tstate, PyObject *str, PyObject *iterable);
8#endif
9
10extern PyObject *UNICODE_JOIN(PyThreadState *tstate, PyObject *str, PyObject *iterable);
11extern PyObject *UNICODE_PARTITION(PyThreadState *tstate, PyObject *str, PyObject *sep);
12extern PyObject *UNICODE_RPARTITION(PyThreadState *tstate, PyObject *str, PyObject *sep);
13
14extern PyObject *NuitkaUnicode_FromWideChar(wchar_t const *str, Py_ssize_t size);
15
16#endif
17// Part of "Nuitka", an optimizing Python compiler that is compatible and
18// integrates with CPython, but also works on its own.
19//
20// Licensed under the Apache License, Version 2.0 (the "License");
21// you may not use this file except in compliance with the License.
22// You may obtain a copy of the License at
23//
24// http://www.apache.org/licenses/LICENSE-2.0
25//
26// Unless required by applicable law or agreed to in writing, software
27// distributed under the License is distributed on an "AS IS" BASIS,
28// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
29// See the License for the specific language governing permissions and
30// limitations under the License.