X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=index%2Fkcompare.c;h=f38f9486052e9755e4730ed291cecb50b43fe8be;hb=b8844c65622c12fb105bf7fc6bab2fc237af7c14;hp=878f491cc611b4f22a7870ed8cf97cb3836fab31;hpb=ea01436a957572aaaa878b59469a4cedce7e5e21;p=idzebra-moved-to-github.git diff --git a/index/kcompare.c b/index/kcompare.c index 878f491..f38f948 100644 --- a/index/kcompare.c +++ b/index/kcompare.c @@ -1,10 +1,16 @@ /* - * Copyright (C) 1994-1995, Index Data I/S + * Copyright (C) 1994-1996, Index Data I/S * All rights reserved. * Sebastian Hammer, Adam Dickmeiss * * $Log: kcompare.c,v $ - * Revision 1.15 1995-11-20 16:59:46 adam + * Revision 1.17 1996-06-04 10:18:58 adam + * Minor changes - removed include of ctype.h. + * + * Revision 1.16 1996/05/13 14:23:05 adam + * Work on compaction of set/use bytes in dictionary. + * + * Revision 1.15 1995/11/20 16:59:46 adam * New update method: the 'old' keys are saved for each records. * * Revision 1.14 1995/10/30 15:08:08 adam @@ -61,7 +67,6 @@ #include #include #include -#include #include #include "index.h" @@ -121,20 +126,3 @@ int key_qsort_compare (const void *p1, const void *p2) return cp1[l] - cp2[l]; } -int index_char_cvt (int c) -{ - return tolower (c); -} - -int index_word_prefix (char *string, int attset_ordinal, - int local_attribute, - const char *databaseName) -{ - int i; - sprintf (string, "%s@%c%04d", databaseName, - attset_ordinal + '0', local_attribute); - for (i = 0; string[i]; i++) - string[i] = index_char_cvt (string[i]); - return i; -} -