From 1cc68d03a0339cf5f31fabb308b3f1cd9bdb9272 Mon Sep 17 00:00:00 2001 From: Danielle Madeley Date: Fri, 15 Apr 2011 14:15:47 +1000 Subject: Add method empathy_format_currency() This method takes a Telepathy Currency_Amount and attempts to format it using currency rules appropriate for that amount. Unfortunately I haven't yet found a good summary of currency rules, so I've mostly been guessing. The currencies structure needs completing and checking. --- libempathy/empathy-utils.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'libempathy/empathy-utils.h') diff --git a/libempathy/empathy-utils.h b/libempathy/empathy-utils.h index de879021e..79d6ba355 100644 --- a/libempathy/empathy-utils.h +++ b/libempathy/empathy-utils.h @@ -117,6 +117,8 @@ gboolean empathy_folks_persona_is_interesting (FolksPersona *persona); gchar * empathy_get_x509_certificate_hostname (gnutls_x509_crt_t cert); +char *empathy_format_currency (int amount, guint scale, const char *currency); + /* Copied from wocky/wocky-utils.h */ #define empathy_implement_finish_void(source, tag) \ -- cgit v1.2.3