Author: Pekka Riikonen <priikone@silcnet.org>
- Copyright (C) 1997 - 2003 Pekka Riikonen
+ Copyright (C) 1997 - 2005 Pekka Riikonen
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
* SYNOPSIS
*
* int silc_gets(char *dest, int destlen, const char *src, int srclen,
- * int *begin);
+ * int begin);
*
* DESCRIPTION
*
* argument begin is returned and should be passed again for the function.
*
***/
-int silc_gets(char *dest, int destlen, const char *src, int srclen,
- int *begin);
+int silc_gets(char *dest, int destlen, const char *src, int srclen, int begin);
/****f* silcutil/SilcUtilAPI/silc_check_line
*
***/
SilcUInt32 silc_hash_string(void *key, void *user_context);
+/****f* silcutil/SilcUtilAPI/silc_hash_utf8_string
+ *
+ * SYNOPSIS
+ *
+ * SilcUInt32 silc_hash_utf8_string(void *key, void *user_context);
+ *
+ * DESCRIPTION
+ *
+ * Basic has function to hash UTF-8 strings. May be used with the
+ * SilcHashTable. Used with identifier strings. The key is
+ * expected to be casefolded.
+ *
+ ***/
+SilcUInt32 silc_hash_utf8_string(void *key, void *user_context);
+
/****f* silcutil/SilcUtilAPI/silc_hash_uint
*
* SYNOPSIS
***/
bool silc_hash_data_compare(void *key1, void *key2, void *user_context);
+/****f* silcutil/SilcUtilAPI/silc_hash_utf8_compare
+ *
+ * SYNOPSIS
+ *
+ * bool silc_hash_utf8_compare(void *key1, void *key2, void *user_context);
+ *
+ * DESCRIPTION
+ *
+ * Compares UTF-8 strings. Casefolded and NULL terminated strings are
+ * expected. May be used as SilcHashTable comparison function.
+ *
+ ***/
+bool silc_hash_utf8_compare(void *key1, void *key2, void *user_context);
+
/****f* silcutil/SilcUtilAPI/silc_hash_public_key_compare
*
* SYNOPSIS
*
- * bool silc_hash_public_key_compare(void *key1, void *key2, void *user_context);
+ * bool silc_hash_public_key_compare(void *key1, void *key2,
+ * void *user_context);
*
* DESCRIPTION
*