aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ChangeLog4
-rw-r--r--encoding.c2
-rw-r--r--include/libxml/encoding.h2
3 files changed, 7 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 172e7471..9ed40115 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+Tue Oct 22 16:27:31 CEST 2002 Daniel Veillard <daniel@veillard.com>
+
+ * include/libxml/encoding.h encoding.c: made xmlGetUTF8Char public
+
Tue Oct 22 16:25:18 CEST 2002 Daniel Veillard <daniel@veillard.com>
* debugXML.c: adding a grep command to --shell in xmllint
diff --git a/encoding.c b/encoding.c
index 69b3dacc..2faa7254 100644
--- a/encoding.c
+++ b/encoding.c
@@ -135,7 +135,7 @@ xmlUTF8Strlen(const xmlChar *utf) {
* Returns the char value or -1 in case of error and update @len with the
* number of bytes used
*/
-static int
+int
xmlGetUTF8Char(const unsigned char *utf, int *len) {
unsigned int c;
diff --git a/include/libxml/encoding.h b/include/libxml/encoding.h
index 27bdd1be..9a326127 100644
--- a/include/libxml/encoding.h
+++ b/include/libxml/encoding.h
@@ -204,6 +204,8 @@ int isolat1ToUTF8 (unsigned char *out,
int *outlen,
const unsigned char *in,
int *inlen);
+int xmlGetUTF8Char (const unsigned char *utf,
+ int *len);
/*
* exports additional "UTF-8 aware" string routines which are.
*/