summaryrefslogtreecommitdiff
path: root/src/charset/codecs
diff options
context:
space:
mode:
authorJohn Mark Bell <jmb@netsurf-browser.org>2008-06-28 21:14:42 +0000
committerJohn Mark Bell <jmb@netsurf-browser.org>2008-06-28 21:14:42 +0000
commit130b17110dcf1f5bf42b99d06882f01545c8eb3c (patch)
treeb4cf8e03090bb542b7700d969e16d37e28ec2d0d /src/charset/codecs
parent5aa01bdb330f82e7bc3756ac18fd47d137059ce4 (diff)
downloadlibparserutils-130b17110dcf1f5bf42b99d06882f01545c8eb3c.tar.gz
libparserutils-130b17110dcf1f5bf42b99d06882f01545c8eb3c.tar.bz2
Make comments explicit about the endianness of UCS-4 data
svn path=/trunk/libparserutils/; revision=4473
Diffstat (limited to 'src/charset/codecs')
-rw-r--r--src/charset/codecs/codec_utf16.c6
-rw-r--r--src/charset/codecs/codec_utf8.c6
2 files changed, 6 insertions, 6 deletions
diff --git a/src/charset/codecs/codec_utf16.c b/src/charset/codecs/codec_utf16.c
index 8738cf1..e17c217 100644
--- a/src/charset/codecs/codec_utf16.c
+++ b/src/charset/codecs/codec_utf16.c
@@ -127,7 +127,7 @@ void charset_utf16_codec_destroy (parserutils_charset_codec *codec)
}
/**
- * Encode a chunk of UCS-4 data into UTF-16
+ * Encode a chunk of UCS-4 (big endian) data into UTF-16
*
* \param codec The codec to use
* \param source Pointer to pointer to source data
@@ -246,7 +246,7 @@ parserutils_error charset_utf16_codec_encode(parserutils_charset_codec *codec,
}
/**
- * Decode a chunk of UTF-16 data into UCS-4
+ * Decode a chunk of UTF-16 data into UCS-4 (big endian)
*
* \param codec The codec to use
* \param source Pointer to pointer to source data
@@ -509,7 +509,7 @@ parserutils_error charset_utf16_codec_read_char(charset_utf16_codec *c,
}
/**
- * Output a UCS-4 character
+ * Output a UCS-4 character (big endian)
*
* \param c Codec to use
* \param ucs4 UCS-4 character (host endian)
diff --git a/src/charset/codecs/codec_utf8.c b/src/charset/codecs/codec_utf8.c
index d7b51be..24eb3e4 100644
--- a/src/charset/codecs/codec_utf8.c
+++ b/src/charset/codecs/codec_utf8.c
@@ -128,7 +128,7 @@ void charset_utf8_codec_destroy (parserutils_charset_codec *codec)
}
/**
- * Encode a chunk of UCS-4 data into UTF-8
+ * Encode a chunk of UCS-4 (big endian) data into UTF-8
*
* \param codec The codec to use
* \param source Pointer to pointer to source data
@@ -232,7 +232,7 @@ parserutils_error charset_utf8_codec_encode(parserutils_charset_codec *codec,
}
/**
- * Decode a chunk of UTF-8 data into UCS-4
+ * Decode a chunk of UTF-8 data into UCS-4 (big endian)
*
* \param codec The codec to use
* \param source Pointer to pointer to source data
@@ -510,7 +510,7 @@ parserutils_error charset_utf8_codec_read_char(charset_utf8_codec *c,
}
/**
- * Output a UCS-4 character
+ * Output a UCS-4 character (big endian)
*
* \param c Codec to use
* \param ucs4 UCS-4 character (host endian)