X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=include%2Fyaz%2Fcql.h;h=043e3ed21209486e53fa242308b492280c342c34;hb=be6bf53019f49c1448f0161e3b0ce8d3b5b09ec0;hp=3a6215a40a432344b92031ebd4d9abb77393741b;hpb=fb6d99a0c7e07d9cc4a315c447deaf6564a85505;p=yaz-moved-to-github.git diff --git a/include/yaz/cql.h b/include/yaz/cql.h index 3a6215a..043e3ed 100644 --- a/include/yaz/cql.h +++ b/include/yaz/cql.h @@ -1,4 +1,4 @@ -/* $Id: cql.h,v 1.12 2005-06-25 15:46:02 adam Exp $ +/* $Id: cql.h,v 1.14 2006-09-27 11:39:00 adam Exp $ Copyright (C) 1995-2005, Index Data ApS Index Data Aps @@ -279,7 +279,21 @@ const char *cql_strerror(int code); * Returns the standard CQL context set URI. */ YAZ_EXPORT -const char *cql_uri(); +const char *cql_uri(void); + +/** + * Compares two CQL strings (for relations, operators, etc) + * (unfortunately defined as case-insensitive unlike XML etc) + */ +YAZ_EXPORT +int cql_strcmp(const char *s1, const char *s2); + +/** + * Compares two CQL strings at most n bytes + * (unfortunately defined as case-insensitive unlike XML etc) + */ +YAZ_EXPORT +int cql_strncmp(const char *s1, const char *s2, size_t n); YAZ_END_CDECL