home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 5 Edit / 05-Edit.zip / fed0217s.zip / include / dict.h < prev    next >
C/C++ Source or Header  |  2000-02-23  |  631b  |  40 lines

  1. /*
  2. ** Module   :DICT.H
  3. ** Abstract :
  4. **
  5. ** Copyright (C) Sergey I. Yevtushenko
  6. **
  7. ** Log: Thu  09/04/1998 Created
  8. **
  9. */
  10.  
  11. #include <collect.h>
  12.  
  13. #ifndef  __DICT_H
  14. #define __DICT_H
  15.  
  16. struct Pair
  17. {
  18.     char *key;
  19. };
  20.  
  21. typedef Pair* PPair;
  22.  
  23. class Dictionary: public SortedCollection
  24. {
  25.         int bCase;
  26.  
  27.     public:
  28.         Dictionary(int Case, PPair pList, int size);
  29.         virtual ~Dictionary();
  30.  
  31.         virtual int Compare(Ptr p1, Ptr p2);
  32.         virtual void Free(Ptr p);
  33.  
  34.         PPair IsIn(char *key, int Case);
  35.         PPair IsIn(char *key, int len, int Case);
  36. };
  37.  
  38. #endif  /*__DICT_H*/
  39.  
  40.