#include "pycore_modsupport.h"
PyDoc_STRVAR(_locale_setlocale__doc__,
"setlocale($module, category, locale=<unrepresentable>, /)\n"
"--\n"
"\n"
"Activates/queries locale processing.");
#define _LOCALE_SETLOCALE_METHODDEF …
static PyObject *
_locale_setlocale_impl(PyObject *module, int category, const char *locale);
static PyObject *
_locale_setlocale(PyObject *module, PyObject *const *args, Py_ssize_t nargs)
{ … }
PyDoc_STRVAR(_locale_localeconv__doc__,
"localeconv($module, /)\n"
"--\n"
"\n"
"Returns numeric and monetary locale-specific parameters.");
#define _LOCALE_LOCALECONV_METHODDEF …
static PyObject *
_locale_localeconv_impl(PyObject *module);
static PyObject *
_locale_localeconv(PyObject *module, PyObject *Py_UNUSED(ignored))
{ … }
#if defined(HAVE_WCSCOLL)
PyDoc_STRVAR(_locale_strcoll__doc__,
"strcoll($module, os1, os2, /)\n"
"--\n"
"\n"
"Compares two strings according to the locale.");
#define _LOCALE_STRCOLL_METHODDEF …
static PyObject *
_locale_strcoll_impl(PyObject *module, PyObject *os1, PyObject *os2);
static PyObject *
_locale_strcoll(PyObject *module, PyObject *const *args, Py_ssize_t nargs)
{ … }
#endif
#if defined(HAVE_WCSXFRM)
PyDoc_STRVAR(_locale_strxfrm__doc__,
"strxfrm($module, string, /)\n"
"--\n"
"\n"
"Return a string that can be used as a key for locale-aware comparisons.");
#define _LOCALE_STRXFRM_METHODDEF …
static PyObject *
_locale_strxfrm_impl(PyObject *module, PyObject *str);
static PyObject *
_locale_strxfrm(PyObject *module, PyObject *arg)
{ … }
#endif
#if defined(MS_WINDOWS)
PyDoc_STRVAR(_locale__getdefaultlocale__doc__,
"_getdefaultlocale($module, /)\n"
"--\n"
"\n");
#define _LOCALE__GETDEFAULTLOCALE_METHODDEF …
static PyObject *
_locale__getdefaultlocale_impl(PyObject *module);
static PyObject *
_locale__getdefaultlocale(PyObject *module, PyObject *Py_UNUSED(ignored))
{
return _locale__getdefaultlocale_impl(module);
}
#endif
#if defined(HAVE_LANGINFO_H)
PyDoc_STRVAR(_locale_nl_langinfo__doc__,
"nl_langinfo($module, key, /)\n"
"--\n"
"\n"
"Return the value for the locale information associated with key.");
#define _LOCALE_NL_LANGINFO_METHODDEF …
static PyObject *
_locale_nl_langinfo_impl(PyObject *module, int item);
static PyObject *
_locale_nl_langinfo(PyObject *module, PyObject *arg)
{ … }
#endif
#if defined(HAVE_LIBINTL_H)
PyDoc_STRVAR(_locale_gettext__doc__,
"gettext($module, msg, /)\n"
"--\n"
"\n"
"gettext(msg) -> string\n"
"\n"
"Return translation of msg.");
#define _LOCALE_GETTEXT_METHODDEF …
static PyObject *
_locale_gettext_impl(PyObject *module, const char *in);
static PyObject *
_locale_gettext(PyObject *module, PyObject *arg)
{ … }
#endif
#if defined(HAVE_LIBINTL_H)
PyDoc_STRVAR(_locale_dgettext__doc__,
"dgettext($module, domain, msg, /)\n"
"--\n"
"\n"
"dgettext(domain, msg) -> string\n"
"\n"
"Return translation of msg in domain.");
#define _LOCALE_DGETTEXT_METHODDEF …
static PyObject *
_locale_dgettext_impl(PyObject *module, const char *domain, const char *in);
static PyObject *
_locale_dgettext(PyObject *module, PyObject *const *args, Py_ssize_t nargs)
{ … }
#endif
#if defined(HAVE_LIBINTL_H)
PyDoc_STRVAR(_locale_dcgettext__doc__,
"dcgettext($module, domain, msg, category, /)\n"
"--\n"
"\n"
"Return translation of msg in domain and category.");
#define _LOCALE_DCGETTEXT_METHODDEF …
static PyObject *
_locale_dcgettext_impl(PyObject *module, const char *domain,
const char *msgid, int category);
static PyObject *
_locale_dcgettext(PyObject *module, PyObject *const *args, Py_ssize_t nargs)
{ … }
#endif
#if defined(HAVE_LIBINTL_H)
PyDoc_STRVAR(_locale_textdomain__doc__,
"textdomain($module, domain, /)\n"
"--\n"
"\n"
"Set the C library\'s textdmain to domain, returning the new domain.");
#define _LOCALE_TEXTDOMAIN_METHODDEF …
static PyObject *
_locale_textdomain_impl(PyObject *module, const char *domain);
static PyObject *
_locale_textdomain(PyObject *module, PyObject *arg)
{ … }
#endif
#if defined(HAVE_LIBINTL_H)
PyDoc_STRVAR(_locale_bindtextdomain__doc__,
"bindtextdomain($module, domain, dir, /)\n"
"--\n"
"\n"
"Bind the C library\'s domain to dir.");
#define _LOCALE_BINDTEXTDOMAIN_METHODDEF …
static PyObject *
_locale_bindtextdomain_impl(PyObject *module, const char *domain,
PyObject *dirname_obj);
static PyObject *
_locale_bindtextdomain(PyObject *module, PyObject *const *args, Py_ssize_t nargs)
{ … }
#endif
#if defined(HAVE_LIBINTL_H) && defined(HAVE_BIND_TEXTDOMAIN_CODESET)
PyDoc_STRVAR(_locale_bind_textdomain_codeset__doc__,
"bind_textdomain_codeset($module, domain, codeset, /)\n"
"--\n"
"\n"
"Bind the C library\'s domain to codeset.");
#define _LOCALE_BIND_TEXTDOMAIN_CODESET_METHODDEF …
static PyObject *
_locale_bind_textdomain_codeset_impl(PyObject *module, const char *domain,
const char *codeset);
static PyObject *
_locale_bind_textdomain_codeset(PyObject *module, PyObject *const *args, Py_ssize_t nargs)
{ … }
#endif
PyDoc_STRVAR(_locale_getencoding__doc__,
"getencoding($module, /)\n"
"--\n"
"\n"
"Get the current locale encoding.");
#define _LOCALE_GETENCODING_METHODDEF …
static PyObject *
_locale_getencoding_impl(PyObject *module);
static PyObject *
_locale_getencoding(PyObject *module, PyObject *Py_UNUSED(ignored))
{ … }
#ifndef _LOCALE_STRCOLL_METHODDEF
#define _LOCALE_STRCOLL_METHODDEF
#endif
#ifndef _LOCALE_STRXFRM_METHODDEF
#define _LOCALE_STRXFRM_METHODDEF
#endif
#ifndef _LOCALE__GETDEFAULTLOCALE_METHODDEF
#define _LOCALE__GETDEFAULTLOCALE_METHODDEF
#endif
#ifndef _LOCALE_NL_LANGINFO_METHODDEF
#define _LOCALE_NL_LANGINFO_METHODDEF
#endif
#ifndef _LOCALE_GETTEXT_METHODDEF
#define _LOCALE_GETTEXT_METHODDEF
#endif
#ifndef _LOCALE_DGETTEXT_METHODDEF
#define _LOCALE_DGETTEXT_METHODDEF
#endif
#ifndef _LOCALE_DCGETTEXT_METHODDEF
#define _LOCALE_DCGETTEXT_METHODDEF
#endif
#ifndef _LOCALE_TEXTDOMAIN_METHODDEF
#define _LOCALE_TEXTDOMAIN_METHODDEF
#endif
#ifndef _LOCALE_BINDTEXTDOMAIN_METHODDEF
#define _LOCALE_BINDTEXTDOMAIN_METHODDEF
#endif
#ifndef _LOCALE_BIND_TEXTDOMAIN_CODESET_METHODDEF
#define _LOCALE_BIND_TEXTDOMAIN_CODESET_METHODDEF
#endif