#ifndef SortKey_SEEN__ #define SortKey_SEEN__ /////// File: SortKey.h /////// typedef char *String; typedef unsigned int Uint; class SortKey { public: SortKey(Uint pos = 0, String dlm = "\t \r") { delim = dlm; position = pos; } void set_delim(String s) { delim = s; } int cmp(const char *a, const char *b); // compare lines private: String delim; Uint position; const char *key(const char *s); // identify key int is_del(const char* c); // delimiter test int keycmp(const char *a, const char *b); // compare keys }; #endif