]> git.proxmox.com Git - mirror_edk2.git/blame - AppPkg/Applications/Python/Python-2.7.2/Objects/stringlib/unicodedefs.h
EmbeddedPkg: Extend NvVarStoreFormattedLib LIBRARY_CLASS
[mirror_edk2.git] / AppPkg / Applications / Python / Python-2.7.2 / Objects / stringlib / unicodedefs.h
CommitLineData
4710c53d 1#ifndef STRINGLIB_UNICODEDEFS_H\r
2#define STRINGLIB_UNICODEDEFS_H\r
3\r
4/* this is sort of a hack. there's at least one place (formatting\r
5 floats) where some stringlib code takes a different path if it's\r
6 compiled as unicode. */\r
7#define STRINGLIB_IS_UNICODE 1\r
8\r
9#define STRINGLIB_OBJECT PyUnicodeObject\r
10#define STRINGLIB_CHAR Py_UNICODE\r
11#define STRINGLIB_TYPE_NAME "unicode"\r
12#define STRINGLIB_PARSE_CODE "U"\r
13#define STRINGLIB_EMPTY unicode_empty\r
14#define STRINGLIB_ISSPACE Py_UNICODE_ISSPACE\r
15#define STRINGLIB_ISLINEBREAK BLOOM_LINEBREAK\r
16#define STRINGLIB_ISDECIMAL Py_UNICODE_ISDECIMAL\r
17#define STRINGLIB_TODECIMAL Py_UNICODE_TODECIMAL\r
18#define STRINGLIB_TOUPPER Py_UNICODE_TOUPPER\r
19#define STRINGLIB_TOLOWER Py_UNICODE_TOLOWER\r
20#define STRINGLIB_FILL Py_UNICODE_FILL\r
21#define STRINGLIB_STR PyUnicode_AS_UNICODE\r
22#define STRINGLIB_LEN PyUnicode_GET_SIZE\r
23#define STRINGLIB_NEW PyUnicode_FromUnicode\r
24#define STRINGLIB_RESIZE PyUnicode_Resize\r
25#define STRINGLIB_CHECK PyUnicode_Check\r
26#define STRINGLIB_CHECK_EXACT PyUnicode_CheckExact\r
27#define STRINGLIB_GROUPING _PyUnicode_InsertThousandsGrouping\r
28\r
29#if PY_VERSION_HEX < 0x03000000\r
30#define STRINGLIB_TOSTR PyObject_Unicode\r
31#else\r
32#define STRINGLIB_TOSTR PyObject_Str\r
33#endif\r
34\r
35#define STRINGLIB_WANT_CONTAINS_OBJ 1\r
36\r
37#endif /* !STRINGLIB_UNICODEDEFS_H */\r