--- psiconv/trunk/lib/psiconv/unicode.h 2004/01/04 15:47:16 181 +++ psiconv/trunk/lib/psiconv/unicode.h 2004/02/04 12:19:09 196 @@ -1,6 +1,6 @@ /* unicode.h - Part of psiconv, a PSION 5 file formats converter - Copyright (c) 2003 Frodo Looijaard + Copyright (c) 2003-2004 Frodo Looijaard This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -62,6 +62,11 @@ /* Compute the length of a unicode string */ extern int psiconv_unicode_strlen(const psiconv_ucs2 *input); +/* Duplicate a unicode string */ +extern psiconv_ucs2 *psiconv_unicode_strdup(const psiconv_ucs2 *input); + +/* Compare two unicode strings. Ordering as in Unicode codepoints! */ +int psiconv_unicode_strcmp(const psiconv_ucs2 *str1, const psiconv_ucs2 *str2); #ifdef __cplusplus }