X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=zoom%2Fzrec.cpp;h=09dee2f05c54470eb2f288408744192f84b554ae;hb=9ae0e2bb9cd69e3e35d0319e31e8a02478556e58;hp=2a0bd6f78450e9e68c9ed7f36c8e2a0c8977785c;hpb=7c6295779d21f882f9d53186c5a751cbf86b6c86;p=yazpp-moved-to-github.git diff --git a/zoom/zrec.cpp b/zoom/zrec.cpp index 2a0bd6f..09dee2f 100644 --- a/zoom/zrec.cpp +++ b/zoom/zrec.cpp @@ -1,9 +1,9 @@ -// $Header: /home/cvsroot/yaz++/zoom/zrec.cpp,v 1.2 2002-08-08 16:06:08 mike Exp $ +// $Header: /home/cvsroot/yaz++/zoom/zrec.cpp,v 1.3 2002-08-08 16:14:26 mike Exp $ // Z39.50 Record class #include "zoom++.h" -#include // for strcasecmp() +#include // for yaz_matchstr() namespace ZOOM { @@ -39,19 +39,19 @@ namespace ZOOM { const char *syn = ZOOM_record_get(r, "syntax", 0); // These string constants are from yaz/util/oid.c - if (!strcasecmp(syn, "xml")) + if (!yaz_matchstr(syn, "xml")) return XML; - else if (!strcasecmp(syn, "GRS-1")) + else if (!yaz_matchstr(syn, "GRS-1")) return GRS1; - else if (!strcasecmp(syn, "SUTRS")) + else if (!yaz_matchstr(syn, "SUTRS")) return SUTRS; - else if (!strcasecmp(syn, "USmarc")) + else if (!yaz_matchstr(syn, "USmarc")) return USMARC; - else if (!strcasecmp(syn, "UKmarc")) + else if (!yaz_matchstr(syn, "UKmarc")) return UKMARC; - else if (!strcasecmp(syn, "XML") || - !strcasecmp(syn, "text-XML") || - !strcasecmp(syn, "application-XML")) + else if (!yaz_matchstr(syn, "XML") || + !yaz_matchstr(syn, "text-XML") || + !yaz_matchstr(syn, "application-XML")) return XML; return UNKNOWN;