You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

18 lines
512 B

  1. /* Implements the unicode (as opposed to string) version of the
  2. built-in formatter for unicode. That is, unicode.__format__(). */
  3. #include "Python.h"
  4. #ifdef Py_USING_UNICODE
  5. #include "../Objects/stringlib/unicodedefs.h"
  6. #define FORMAT_STRING _PyUnicode_FormatAdvanced
  7. /* don't define FORMAT_LONG, FORMAT_FLOAT, and FORMAT_COMPLEX, since
  8. we can live with only the string versions of those. The builtin
  9. format() will convert them to unicode. */
  10. #include "../Objects/stringlib/formatter.h"
  11. #endif