aboutsummaryrefslogtreecommitdiff
path: root/src/mm-charsets.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/mm-charsets.h')
-rw-r--r--src/mm-charsets.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/mm-charsets.h b/src/mm-charsets.h
index d620b157..7eb35ab8 100644
--- a/src/mm-charsets.h
+++ b/src/mm-charsets.h
@@ -57,6 +57,11 @@ guint8 *mm_charset_utf8_to_unpacked_gsm (const char *utf8, guint32 *out_len);
guint8 *mm_charset_gsm_unpacked_to_utf8 (const guint8 *gsm, guint32 len);
+/* Returns the size in bytes required to hold the UTF-8 string in the given charset */
+guint mm_charset_get_encoded_len (const char *utf8,
+ MMModemCharset charset,
+ guint *out_unsupported);
+
guint8 *gsm_unpack (const guint8 *gsm,
guint32 num_septets,
guint8 start_offset, /* in bits */