summaryrefslogtreecommitdiffstats
path: root/Include
diff options
context:
space:
mode:
Diffstat (limited to 'Include')
-rw-r--r--Include/stringobject.h11
-rw-r--r--Include/unicodeobject.h11
2 files changed, 22 insertions, 0 deletions
diff --git a/Include/stringobject.h b/Include/stringobject.h
index c1a5114..e88d052 100644
--- a/Include/stringobject.h
+++ b/Include/stringobject.h
@@ -87,6 +87,17 @@ PyAPI_FUNC(int) PyString_AsStringAndSize(
strings) */
);
+/* Using the current locale, insert the thousands grouping
+ into the string pointed to by buffer. For the argument descriptions,
+ see Objects/stringlib/localeutil.h */
+
+PyAPI_FUNC(int) _PyString_InsertThousandsGrouping(char *buffer,
+ Py_ssize_t len,
+ char *plast,
+ Py_ssize_t buf_size,
+ Py_ssize_t *count,
+ int append_zero_char);
+
/* Flags used by string formatting */
#define F_LJUST (1<<0)
#define F_SIGN (1<<1)
diff --git a/Include/unicodeobject.h b/Include/unicodeobject.h
index 4582348..79b9a8c 100644
--- a/Include/unicodeobject.h
+++ b/Include/unicodeobject.h
@@ -1409,6 +1409,17 @@ PyAPI_FUNC(PyObject *) _PyUnicode_XStrip(
PyObject *sepobj
);
+/* Using the current locale, insert the thousands grouping
+ into the string pointed to by buffer. For the argument descriptions,
+ see Objects/stringlib/localeutil.h */
+
+PyAPI_FUNC(int) _PyUnicode_InsertThousandsGrouping(Py_UNICODE *buffer,
+ Py_ssize_t len,
+ Py_UNICODE *plast,
+ Py_ssize_t buf_size,
+ Py_ssize_t *count,
+ int append_zero_char);
+
/* === Characters Type APIs =============================================== */
/* These should not be used directly. Use the Py_UNICODE_IS* and