blob: 6e3685d16ec0f9b3d24c3812f8a71d91d729c471 [file] [log] [blame]
Eric Smitha9f7d622008-02-17 19:46:49 +00001/* Implements the unicode (as opposed to string) version of the
2 built-in formatter for unicode. That is, unicode.__format__(). */
3
4#include "Python.h"
Benjamin Peterson78821dd2009-01-25 17:15:10 +00005
6#ifdef Py_USING_UNICODE
7
Eric Smitha9f7d622008-02-17 19:46:49 +00008#include "../Objects/stringlib/unicodedefs.h"
9
Eric Smithdc13b792008-05-30 18:10:04 +000010#define FORMAT_STRING _PyUnicode_FormatAdvanced
11
Eric Smith9139cc62009-04-30 00:58:58 +000012/* don't define FORMAT_LONG, FORMAT_FLOAT, and FORMAT_COMPLEX, since
13 we can live with only the string versions of those. The builtin
14 format() will convert them to unicode. */
Eric Smithdc13b792008-05-30 18:10:04 +000015
Eric Smitha9f7d622008-02-17 19:46:49 +000016#include "../Objects/stringlib/formatter.h"
Benjamin Peterson78821dd2009-01-25 17:15:10 +000017
18#endif