projects
/
yaz-moved-to-github.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Decode SRU 2.0 responses
[yaz-moved-to-github.git]
/
src
/
icu_utf16.c
diff --git
a/src/icu_utf16.c
b/src/icu_utf16.c
index
55766a2
..
9274974
100644
(file)
--- a/
src/icu_utf16.c
+++ b/
src/icu_utf16.c
@@
-1,5
+1,5
@@
/* This file is part of the YAZ toolkit.
/* This file is part of the YAZ toolkit.
- * Copyright (C) 1995-2009 Index Data
+ * Copyright (C) 1995-2012 Index Data
* See the file LICENSE for details.
*/
* See the file LICENSE for details.
*/
@@
-61,7
+61,7
@@
struct icu_buf_utf16 * icu_buf_utf16_resize(struct icu_buf_utf16 * buf16,
if (!buf16)
return 0;
if (!buf16)
return 0;
- if (capacity > 0)
+ if (capacity > 0)
{
if (0 == buf16->utf16)
buf16->utf16 = (UChar *) xmalloc(sizeof(UChar) * capacity);
{
if (0 == buf16->utf16)
buf16->utf16 = (UChar *) xmalloc(sizeof(UChar) * capacity);
@@
-79,13
+79,12
@@
struct icu_buf_utf16 * icu_buf_utf16_resize(struct icu_buf_utf16 * buf16,
buf16->utf16_len = 0;
buf16->utf16_cap = 0;
}
buf16->utf16_len = 0;
buf16->utf16_cap = 0;
}
-
return buf16;
}
struct icu_buf_utf16 * icu_buf_utf16_copy(struct icu_buf_utf16 * dest16,
return buf16;
}
struct icu_buf_utf16 * icu_buf_utf16_copy(struct icu_buf_utf16 * dest16,
- struct icu_buf_utf16 * src16)
+ const struct icu_buf_utf16 * src16)
{
if (!dest16 || !src16 || dest16 == src16)
return 0;
{
if (!dest16 || !src16 || dest16 == src16)
return 0;