home *** CD-ROM | disk | FTP | other *** search
/ PC Format (South-Africa) 2001 May / PCFMay2001.iso / Xenon / C++ / FreeCommandLineTools.exe / Include / jstring.h < prev    next >
Encoding:
C/C++ Source or Header  |  2000-01-31  |  4.1 KB  |  132 lines

  1. /*  jstring.h
  2.  
  3.     Definitions for Japanese string functions.
  4.  
  5. */
  6.  
  7. /*
  8.  *      C/C++ Run Time Library - Version 7.0
  9.  *
  10.  *      Copyright (c) 1987, 1996 by Borland International
  11.  *      All Rights Reserved.
  12.  *
  13.  */
  14.  
  15. #ifndef __JSTRING_H
  16. #define __JSTRING_H
  17.  
  18. #ifndef ___STDDEF_H
  19. #include <_stddef.h>
  20. #endif
  21.  
  22. #if !defined(__MBCTYPE_H)
  23. #include <mbctype.h>
  24. #endif
  25.  
  26. #if !defined(__MBSTRING_H)
  27. #include <mbstring.h>
  28. #endif
  29.  
  30. #ifdef __cplusplus
  31. extern "C" {
  32. #endif
  33. char _FAR * _RTLENTRYF jstrncpy (char _FAR *__dest, const char _FAR *__src, _SIZE_T __maxlen);
  34. char _FAR * _RTLENTRYF jstrncat (char _FAR *__dest, const char _FAR *__src, _SIZE_T __maxlen);
  35. char _FAR * _RTLENTRYF jstrchr  (const char _FAR *__s, unsigned short __c);
  36. char _FAR * _RTLENTRYF jstrrchr (const char _FAR *__s, unsigned short __c);
  37. char _FAR * _RTLENTRYF jstrtok  (char _FAR *__s1, const char _FAR *__s2);
  38. char _FAR * _RTLENTRYF jstradv  (const char _FAR *__s, int __n);
  39. char _FAR * _RTLENTRYF jstrmatch(const char _FAR *__s1, const char _FAR *__s2);
  40. char _FAR * _RTLENTRY  jstrskip (const char _FAR *__s1, const char _FAR *__s2);
  41. char _FAR * _RTLENTRY  jstrrev  (char _FAR *__s);
  42. char _FAR * _RTLENTRY  jstrstr  (const char _FAR *__s1, const char _FAR *__s2);
  43. int         _RTLENTRYF jstrcmp  (const char _FAR *__s1, const char _FAR *__s2);
  44. int         _RTLENTRYF jstricmp (const char _FAR *__s1, const char _FAR *__s2);
  45. int         _RTLENTRYF jstrncmp (const char _FAR *__s1, const char _FAR *__s2, _SIZE_T __maxlen);
  46. int         _RTLENTRYF jstrnicmp(const char _FAR *__s1, const char _FAR *__s2, _SIZE_T __maxlen);
  47. _SIZE_T      _RTLENTRYF jstrlen  (const char _FAR *__s);
  48. char _FAR * _RTLENTRYF jstrupr  (char _FAR *__s);
  49. char _FAR * _RTLENTRYF jstrlwr  (char _FAR *__s);
  50. _SIZE_T      _RTLENTRY  jstrcspn (const char _FAR *__s1, const char _FAR *__s2);
  51. _SIZE_T      _RTLENTRY  jstrspn  (const char _FAR *__s1, const char _FAR *__s2);
  52. char _FAR * _RTLENTRY  jstrset  (char _FAR *__s, unsigned short __c);
  53. char _FAR * _RTLENTRY  jstrnset (char _FAR *__s, unsigned short __c, _SIZE_T __maxlen);
  54. int         _RTLENTRYF btom     (const char _FAR *__s, int __nbyte);
  55. int         _RTLENTRYF mtob     (const char _FAR *__s, int __nmoji);
  56.  
  57.  
  58. #ifdef __cplusplus
  59. }
  60. #endif
  61.  
  62. #ifndef __CHKCTYPE
  63. #define __CHKCTYPE
  64.  
  65. /* values used in chkctype(), nthctype() */
  66. #define CT_ANK          _MBC_SINGLE
  67. #define CT_KJ1          _MBC_LEAD
  68. #define CT_KJ2          _MBC_TRAIL
  69. #define CT_ILGL         _MBC_ILLEGAL
  70.  
  71. #ifdef __cplusplus
  72. extern "C" {
  73. #endif
  74. int _RTLENTRYF chkctype(char __c, int __mode);
  75. int _RTLENTRYF nthctype(const char _FAR *__s, int __nbyte);
  76. #ifdef __cplusplus
  77. }
  78. #endif
  79. #endif /* __CHKCTYPE */
  80.  
  81. #ifdef _MSC
  82. #define jiszen      _ismbclegal
  83. #define jisl0       _ismbcl0
  84. #define jisl1       _ismbcl1
  85. #define jisl2       _ismbcl2
  86. #define jiskata     _ismbckata
  87. #define jishira     _ismbchira
  88. #define jiskigou    _ismbcsymbol
  89. #define jisprint    _ismbcprint
  90. #define jtohira     _mbctohira
  91. #define jtokata     _mbctokata
  92. #define zentohan    _mbctombb
  93. #define hantozen    _mbbtombc
  94. #define jistojms    _mbcjistojms
  95. #define jmstojis    _mbcjmstojis
  96. #define jisalpha    _ismbcalpha
  97. #define jisupper    _ismbcupper
  98. #define jislower    _ismbclower
  99. #define jisdigit    _ismbcdigit
  100. #define jisspace    _ismbcspace
  101. #define jtolower    _mbctolower
  102. #define jtoupper    _mbctoupper
  103. #define jstrncpy    _mbsncpy
  104. #define jstrncat    _mbsncat
  105. #define jstrchr     _mbschr
  106. #define jstrrchr    _mbsrchr
  107. #define jstrtok     _mbstok
  108. #define jstradv     _mbsninc
  109. #define jstrmatch   _mbspbrk
  110. #define jstrskip    _mbsspnp
  111. #define jstrrev     _mbsrev
  112. #define jstrstr     _mbsstr
  113. #define jstrcmp     _mbscmp
  114. #define jstrncmp    _mbsncmp
  115. #define jstrlen     _mbslen
  116. #define jstrcspn    _mbscspn
  117. #define jstrspn     _mbsspn
  118. #define jstrset     _mbsset
  119. #define jstrnset    _mbsnset
  120. #define btom        _mbsnccnt
  121. #define mtob        _mbsnbcnt
  122. #define jstricmp    _mbsicmp
  123. #define jstrnicmp   _mbsnicmp
  124. #define jstrupr     _mbsupr
  125. #define jstrlwr     _mbslwr
  126. #define chkctype    _mbbtype
  127. #define nthctype    _mbsbtype
  128. #endif  /* _MSC */
  129.  
  130.  
  131. #endif /* __JSTRING_H */
  132.