X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=include%2Fyaz%2Fcql.h;h=d745ad0df8fcb3fa2577c613b46db7b1d4f7c0cd;hb=a1adc770bc8b74097e1d4388d16b1246063da7e7;hp=3a6215a40a432344b92031ebd4d9abb77393741b;hpb=fb6d99a0c7e07d9cc4a315c447deaf6564a85505;p=yaz-moved-to-github.git diff --git a/include/yaz/cql.h b/include/yaz/cql.h index 3a6215a..d745ad0 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.13 2005-06-27 22:03:59 adam Exp $ Copyright (C) 1995-2005, Index Data ApS Index Data Aps @@ -281,6 +281,20 @@ const char *cql_strerror(int code); YAZ_EXPORT const char *cql_uri(); +/** + * 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 #endif