From 364e775472b1340268e4057903f3ceb5fdb42347 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Love=20H=C3=B6rnquist=20=C3=85strand?= Date: Sun, 1 Jun 2008 22:25:25 +0000 Subject: [PATCH] utf8.c git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23233 ec53bebd-3082-4978-b11e-865c3cabbd6b --- lib/wind/version-script.map | 2 ++ lib/wind/wind.h | 3 +++ lib/wind/wind_err.et | 1 + 3 files changed, 6 insertions(+) diff --git a/lib/wind/version-script.map b/lib/wind/version-script.map index 942425912..a6ca3ae54 100644 --- a/lib/wind/version-script.map +++ b/lib/wind/version-script.map @@ -10,6 +10,8 @@ HEIMDAL_WIND_1.0 { wind_ucs4utf8; wind_ucs4utf8_length; wind_ucs2utf8; + wind_utf8ucs2; + wind_utf8ucs2_length; wind_ucs2utf8_length; wind_ucs2read; # testing diff --git a/lib/wind/wind.h b/lib/wind/wind.h index bafbfe916..23528c85c 100644 --- a/lib/wind/wind.h +++ b/lib/wind/wind.h @@ -72,6 +72,9 @@ int wind_utf8ucs4_length(const char *, size_t *); int wind_ucs4utf8(const uint32_t *, size_t, char *, size_t *); int wind_ucs4utf8_length(const uint32_t *, size_t, size_t *); +int wind_utf8ucs2(const char *, uint16_t *, size_t *); +int wind_utf8ucs2_length(const char *, size_t *); + int wind_ucs2utf8(const uint16_t *, size_t, char *, size_t *); int wind_ucs2utf8_length(const uint16_t *, size_t, size_t *); diff --git a/lib/wind/wind_err.et b/lib/wind/wind_err.et index 508746570..f90c252e7 100644 --- a/lib/wind/wind_err.et +++ b/lib/wind/wind_err.et @@ -18,5 +18,6 @@ error_code INVALID_UTF8, "Invalid UTF-8 combination in string" error_code INVALID_UTF16, "Invalid UTF-16 combination in string" error_code INVALID_UTF32, "Invalid UTF-32 combination in string" error_code NO_BOM, "No byte order mark (BOM) in string" +error_code NOT_UTF16, "Code can't be represented as UTF-16" end