X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=src%2Fucs4.c;h=3b45c3a9a310badb65e2164ecbd1aaaf6d433d7b;hb=00537b483d646bd04a204708ecbde708861f044e;hp=3b50dece7a7396874161e981385e79b247f353ab;hpb=4f3bcae93d51a26709c12b51261c3d95af610cb2;p=yaz-moved-to-github.git diff --git a/src/ucs4.c b/src/ucs4.c index 3b50dec..3b45c3a 100644 --- a/src/ucs4.c +++ b/src/ucs4.c @@ -1,5 +1,5 @@ /* This file is part of the YAZ toolkit. - * Copyright (C) 1995-2011 Index Data + * Copyright (C) 1995-2012 Index Data * See the file LICENSE for details. */ /** @@ -22,7 +22,7 @@ static unsigned long read_UCS4(yaz_iconv_t cd, yaz_iconv_decoder_t d, size_t inbytesleft, size_t *no_read) { unsigned long x = 0; - + if (inbytesleft < 4) { yaz_iconv_set_errno(cd, YAZ_ICONV_EINVAL); /* incomplete input */ @@ -41,7 +41,7 @@ static unsigned long read_UCS4LE(yaz_iconv_t cd, yaz_iconv_decoder_t d, size_t inbytesleft, size_t *no_read) { unsigned long x = 0; - + if (inbytesleft < 4) { yaz_iconv_set_errno(cd, YAZ_ICONV_EINVAL); /* incomplete input */ @@ -102,7 +102,7 @@ static size_t write_UCS4LE(yaz_iconv_t cd, yaz_iconv_encoder_t en, yaz_iconv_encoder_t yaz_ucs4_encoder(const char *tocode, yaz_iconv_encoder_t e) - + { if (!yaz_matchstr(tocode, "UCS4")) e->write_handle = write_UCS4; @@ -115,7 +115,7 @@ yaz_iconv_encoder_t yaz_ucs4_encoder(const char *tocode, yaz_iconv_decoder_t yaz_ucs4_decoder(const char *tocode, yaz_iconv_decoder_t d) - + { if (!yaz_matchstr(tocode, "UCS4")) d->read_handle = read_UCS4;