summaryrefslogtreecommitdiffstats
path: root/util.h
diff options
context:
space:
mode:
authorAlexander Tarasikov <alexander.tarasikov@gmail.com>2012-07-13 13:54:28 +0400
committerAlexander Tarasikov <alexander.tarasikov@gmail.com>2012-07-13 13:54:28 +0400
commit4d2d1523952fb9aefa3193dfd124ab06eef69cde (patch)
tree43032e6cfc43c0748ceb22c10bb8ed12f8b4778c /util.h
parent4935eac2f82042ad662a16fbf8058f2139ac3843 (diff)
downloadhardware_replicant_libsamsung-ril-4d2d1523952fb9aefa3193dfd124ab06eef69cde.tar.gz
hardware_replicant_libsamsung-ril-4d2d1523952fb9aefa3193dfd124ab06eef69cde.tar.bz2
hardware_replicant_libsamsung-ril-4d2d1523952fb9aefa3193dfd124ab06eef69cde.zip
Add the utf8_write function to decode ucs2 data
This function is copied from the XDANDROID ril. It writes the USC2-BE data to the char buffer.
Diffstat (limited to 'util.h')
-rw-r--r--util.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/util.h b/util.h
index 6eedbbc..fc858d4 100644
--- a/util.h
+++ b/util.h
@@ -26,5 +26,6 @@ void hex2bin(const char *data, int length, unsigned char *buf);
int gsm72ascii(unsigned char *data, char **data_dec, int length);
int ascii2gsm7(char *data, unsigned char **data_enc, int length);
void hex_dump(void *data, int size);
+int utf8_write(char *utf8, int offset, int v);
#endif