home *** CD-ROM | disk | FTP | other *** search
/ OpenStep 4.2J (Developer) / os42jdev.iso / NextDeveloper / Headers / driverkit / KernStringList.h < prev    next >
Text File  |  1997-04-27  |  575b  |  30 lines

  1. /*
  2.  * A List object for C-strings.
  3.  *
  4.  * Its sole purpose is to make whitespace-separated lists of words
  5.  * easier to deal with, since we use them a lot in driverkit string tables.
  6.  *
  7.  *
  8.  */
  9.  
  10. #import <objc/Object.h>
  11.  
  12. @interface KernStringList : Object
  13. {
  14. @private
  15.     char    **strings;
  16.     unsigned    count;
  17. }
  18.  
  19. /*
  20.  * Takes a whitespace-separated list of words,
  21.  * and separates it into a list of null-terminated strings.
  22.  */
  23. - initWithWhitespaceDelimitedString:(const char *)string;
  24.  
  25. - (unsigned)count;
  26. - (const char *)stringAt:(unsigned)index;
  27. - (const char *)lastString;
  28.  
  29. @end
  30.