home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 7 / 07.iso / c / c070 / 1.ddi / TOOLS.1 / INCLUDE / BSTRINGS.H < prev    next >
Encoding:
C/C++ Source or Header  |  1989-03-31  |  1.6 KB  |  51 lines

  1. /**
  2. *
  3. *  BSTRINGS.H-- Header file for Turbo C TOOLS String functions.
  4. *
  5. *  Version    6.00  (C)Copyright Blaise Computing Inc.  1983,1987,1989
  6. *
  7. **/
  8.  
  9. #ifndef DEF_BSTRINGS              /* Prevent redefinition.        */
  10.  
  11. #define DEF_BSTRING  1            /* Prevent second reading   */
  12.                     /* of these definitions.    */
  13.  
  14. /* Direction codes for STPJUST                        */
  15.  
  16. #define JUST_LEFT   (-1)
  17. #define JUST_CENTER   0
  18. #define JUST_RIGHT    1
  19.  
  20.  
  21. /* Format codes for STPCVT                        */
  22.  
  23. #define RWHITE       1    /* Remove white space.                */
  24. #define RLWHITE    2    /* Remove leading white space.            */
  25. #define RTWHITE    4    /* Remove trailing white space.         */
  26. #define REDUCE       8    /* Reduce white space to 1 blank.        */
  27. #define NOQUOTE   16    /* Quoted substrings not altered.        */
  28. #define TOUP      32    /* Convert to upper case.            */
  29. #define TOLOW      64    /* Convert to lower case.            */
  30. #define RCONTROL 128    /* Remove all control characters.        */
  31.  
  32.  
  33. /* Function declarations                        */
  34.  
  35. char * cdecl stpcvt(char *,int);    /* Convert a string.        */
  36.                     /*                */
  37. char * cdecl stpexpan(char *,        /* Expand TABs in a string. */
  38.          char *,int,int);        /*                */
  39.                     /*                */
  40. char * cdecl stpjust(char *,        /* Justify a string within  */
  41.          const char *,char,int,int);/* a field.            */
  42.                     /*                */
  43. char * cdecl stptabfy(char *,int);    /* Compress blanks to TABs. */
  44.                     /*                */
  45. char * cdecl stpxlate(char *,        /* Translate a string        */
  46.          const char *,const char *);/*                */
  47.                     /*                */
  48. int    stschind(char,const char *);    /* Find a char in a string. */
  49.  
  50. #endif                    /* End "#ifndef DEF_BSTRING"*/
  51.