aboutsummaryrefslogtreecommitdiff
path: root/deps/flac-1.3.2/include/share/utf8.h
diff options
context:
space:
mode:
authorTwinaphex2019-05-14 11:44:06 +0200
committerGitHub2019-05-14 11:44:06 +0200
commit80209d1715398a16b6ace1c2e4cd0aab5c00248d (patch)
treeb7f82140860acabb2d0e3a5216f78bf98691c267 /deps/flac-1.3.2/include/share/utf8.h
parent5ffd1f23eb970679dfe8b540bc3df8e776dc9e17 (diff)
parentce188d4d7f3b9ad04867c49b424e8497c2ade92b (diff)
downloadpcsx_rearmed-80209d1715398a16b6ace1c2e4cd0aab5c00248d.tar.gz
pcsx_rearmed-80209d1715398a16b6ace1c2e4cd0aab5c00248d.tar.bz2
pcsx_rearmed-80209d1715398a16b6ace1c2e4cd0aab5c00248d.zip
Merge pull request #280 from aliaspider/master
add CHD support.
Diffstat (limited to 'deps/flac-1.3.2/include/share/utf8.h')
-rw-r--r--deps/flac-1.3.2/include/share/utf8.h25
1 files changed, 25 insertions, 0 deletions
diff --git a/deps/flac-1.3.2/include/share/utf8.h b/deps/flac-1.3.2/include/share/utf8.h
new file mode 100644
index 0000000..7d6650d
--- /dev/null
+++ b/deps/flac-1.3.2/include/share/utf8.h
@@ -0,0 +1,25 @@
+#ifndef SHARE__UTF8_H
+#define SHARE__UTF8_H
+
+/*
+ * Convert a string between UTF-8 and the locale's charset.
+ * Invalid bytes are replaced by '#', and characters that are
+ * not available in the target encoding are replaced by '?'.
+ *
+ * If the locale's charset is not set explicitly then it is
+ * obtained using nl_langinfo(CODESET), where available, the
+ * environment variable CHARSET, or assumed to be US-ASCII.
+ *
+ * Return value of conversion functions:
+ *
+ * -1 : memory allocation failed
+ * 0 : data was converted exactly
+ * 1 : valid data was converted approximately (using '?')
+ * 2 : input was invalid (but still converted, using '#')
+ * 3 : unknown encoding (but still converted, using '?')
+ */
+
+int utf8_encode(const char *from, char **to);
+int utf8_decode(const char *from, char **to);
+
+#endif