X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=blobdiff_plain;f=src%2Ficu_utf8.c;h=3ba9651b3d933ee4ca4975b1d2b81cedaf955ddf;hp=1a4ce74e467df5172e2c8f767c1d1e252ed85227;hb=c2d4d247b3fe28f7c191fbc3644c8e011e1a4fea;hpb=54bd147d353f7f340a48a9da5c6a568446223371 diff --git a/src/icu_utf8.c b/src/icu_utf8.c index 1a4ce74..3ba9651 100644 --- a/src/icu_utf8.c +++ b/src/icu_utf8.c @@ -1,5 +1,5 @@ /* This file is part of the YAZ toolkit. - * Copyright (C) 1995-2009 Index Data + * Copyright (C) 1995-2010 Index Data * See the file LICENSE for details. */ @@ -61,7 +61,8 @@ struct icu_buf_utf8 * icu_buf_utf8_resize(struct icu_buf_utf8 * buf8, if (!buf8) return 0; - if (capacity > 0){ + if (capacity > 0) + { if (0 == buf8->utf8) buf8->utf8 = (uint8_t *) xmalloc(sizeof(uint8_t) * capacity); else @@ -133,8 +134,8 @@ UErrorCode icu_utf16_from_utf8_cstr(struct icu_buf_utf16 * dest16, return *status; } -UErrorCode icu_utf16_to_utf8(struct icu_buf_utf8 * dest8, - struct icu_buf_utf16 * src16, +UErrorCode icu_utf16_to_utf8(struct icu_buf_utf8 *dest8, + const struct icu_buf_utf16 *src16, UErrorCode * status) { int32_t utf8_len = 0;