summaryrefslogtreecommitdiff
path: root/include/parserutils
diff options
context:
space:
mode:
Diffstat (limited to 'include/parserutils')
-rw-r--r--include/parserutils/charset/codec.h6
-rw-r--r--include/parserutils/input/inputstream.h2
2 files changed, 4 insertions, 4 deletions
diff --git a/include/parserutils/charset/codec.h b/include/parserutils/charset/codec.h
index ca98db5..9bf2ce7 100644
--- a/include/parserutils/charset/codec.h
+++ b/include/parserutils/charset/codec.h
@@ -23,7 +23,7 @@ typedef struct parserutils_charset_codec parserutils_charset_codec;
* A codec's error mode determines its behaviour in the face of:
*
* + characters which are unrepresentable in the destination charset (if
- * encoding data) or which cannot be converted to UCS4 (if decoding data).
+ * encoding data) or which cannot be converted to UCS-4 (if decoding data).
* + invalid byte sequences (both encoding and decoding)
*
* The options provide a choice between the following approaches:
@@ -95,13 +95,13 @@ parserutils_error parserutils_charset_codec_setopt(
parserutils_charset_codec_opttype type,
parserutils_charset_codec_optparams *params);
-/* Encode a chunk of UCS4 data into a codec's charset */
+/* Encode a chunk of UCS-4 data into a codec's charset */
parserutils_error parserutils_charset_codec_encode(
parserutils_charset_codec *codec,
const uint8_t **source, size_t *sourcelen,
uint8_t **dest, size_t *destlen);
-/* Decode a chunk of data in a codec's charset into UCS4 */
+/* Decode a chunk of data in a codec's charset into UCS-4 */
parserutils_error parserutils_charset_codec_decode(
parserutils_charset_codec *codec,
const uint8_t **source, size_t *sourcelen,
diff --git a/include/parserutils/input/inputstream.h b/include/parserutils/input/inputstream.h
index 2b0c407..db81eb0 100644
--- a/include/parserutils/input/inputstream.h
+++ b/include/parserutils/input/inputstream.h
@@ -30,7 +30,7 @@ typedef parserutils_error (*parserutils_charset_detect_func)(
*/
typedef struct parserutils_inputstream
{
- parserutils_buffer *utf8; /**< Buffer containing utf8 data */
+ parserutils_buffer *utf8; /**< Buffer containing UTF-8 data */
uint32_t cursor; /**< Byte offset of current position */