home *** CD-ROM | disk | FTP | other *** search
/ Dream 52 / Amiga_Dream_52.iso / Linux / Divers / lyx-0.13.2.tar.gz / lyx-0.13.2.tar / lyx-0.13.2 / src / lstrings.h < prev    next >
C/C++ Source or Header  |  1998-04-23  |  700b  |  35 lines

  1. // -*- C++ -*-
  2.  
  3. /** This is a collection of string helper functions that works
  4.     together with LString (and later also with STL String. Some of these
  5.     would certainly benefit from a rewrite/optimization.
  6. */
  7.  
  8.  
  9. #include <string.h>
  10. #include "LString.h"
  11.  
  12. inline int compare_no_case(LString const &a, LString const &b)
  13. {
  14. #warning Needs fix!
  15.     return strcmp(a.c_str(), b.c_str());
  16. }
  17.  
  18.  
  19. inline int compare(LString const &a, LString const &b)
  20. {
  21.     return strcmp(a.c_str(), b.c_str());
  22. }
  23.  
  24.  
  25. inline int compare(LString const &a, LString const &b, unsigned int len)
  26. {
  27.     return strncmp(a.c_str(), b.c_str(), len);
  28. }
  29.  
  30. bool isStrInt(LString const &str);
  31.  
  32. int strToInt(LString const &str);
  33.  
  34. // more to come later...
  35.