home *** CD-ROM | disk | FTP | other *** search
/ PC-Online 1998 February / PCOnline_02_1998.iso / filesbbs / os2 / pgp263.arj / PGP263I.SRC / PGP263II.ZIP / src / charset.h < prev    next >
C/C++ Source or Header  |  1995-08-16  |  976b  |  29 lines

  1.  
  2. /* Internal/External representation conversion macros for conversion of
  3.  * user ID's
  4.  */
  5.  
  6. #ifdef EBCDIC
  7. void CONVERT_TO_CANONICAL_CHARSET(char *s);/* String to internal string (at same place) */
  8. char * LOCAL_CHARSET(char *s);             /* String to external string */
  9. #else
  10. #define    CONVERT_TO_CANONICAL_CHARSET(s) /* String to internal string (at same place) */
  11. #define    LOCAL_CHARSET(s)    s    /* String to external string */
  12. #endif
  13.  
  14. extern char INT_C(char c);      /* Char to internal char */
  15. extern char EXT_C(char c);      /* Char to external char */
  16.  
  17. /* Plaintext files import/export conversion modes */
  18.  
  19. #define NO_CONV  0      /* No conversion needed */
  20. #define INT_CONV 1      /* Convert text to internal representation */
  21. #define EXT_CONV 2      /* Convert text to external representation */
  22.  
  23. extern int CONVERSION;  /* Global var to rule copyfiles */
  24.  
  25.  
  26. extern void init_charset(void);
  27. extern int to_upper(int c);
  28. extern int to_lower(int c);
  29.