home *** CD-ROM | disk | FTP | other *** search
/ Amiga ISO Collection / AmigaUtilCD2.iso / Misc / DC-POS24.LZX / pOS / pOSxA.lzx / pOSxA / clib / locale_protos.h < prev    next >
Encoding:
C/C++ Source or Header  |  1997-03-12  |  3.2 KB  |  97 lines

  1. #ifndef  CLIB_LOCALE_PROTOS_H
  2. #define  CLIB_LOCALE_PROTOS_H
  3.  
  4. /*******************************************************************
  5.  pOS / Amiga adapt
  6. *******************************************************************/
  7.  
  8. #ifndef  EXEC_TYPES_H
  9. #include <exec/types.h>
  10. #endif
  11. #ifndef  LIBRARIES_LOCALE_H
  12. #include <libraries/locale.h>
  13. #endif
  14. #ifndef  DOS_DOS_H
  15. #include <dos/dos.h>
  16. #endif
  17. #ifndef  UTILITY_HOOKS_H
  18. #include <utility/hooks.h>
  19. #endif
  20. #ifndef  UTILITY_TAGITEM_H
  21. #include <utility/tagitem.h>
  22. #endif
  23. #ifndef  REXX_STORAGE_H
  24. #include <rexx/storage.h>
  25. #endif
  26.  
  27.  
  28. #ifdef __cplusplus
  29. extern "C" {
  30. #endif
  31.  
  32. void CloseCatalog( struct Catalog *catalog );
  33. void CloseLocale( struct Locale *locale );
  34.  
  35. ULONG ConvToLower( struct Locale *locale, unsigned long character );
  36. ULONG ConvToUpper( struct Locale *locale, unsigned long character );
  37.  
  38. STRPTR GetCatalogStr( struct Catalog *catalog, long stringNum,STRPTR defaultString );
  39. STRPTR GetLocaleStr( struct Locale *locale, unsigned long stringNum );
  40.  
  41. BOOL IsAlNum( struct Locale *locale, unsigned long character );
  42. BOOL IsAlpha( struct Locale *locale, unsigned long character );
  43. BOOL IsCntrl( struct Locale *locale, unsigned long character );
  44. BOOL IsDigit( struct Locale *locale, unsigned long character );
  45. BOOL IsGraph( struct Locale *locale, unsigned long character );
  46. BOOL IsLower( struct Locale *locale, unsigned long character );
  47. BOOL IsPrint( struct Locale *locale, unsigned long character );
  48. BOOL IsPunct( struct Locale *locale, unsigned long character );
  49. BOOL IsSpace( struct Locale *locale, unsigned long character );
  50. BOOL IsUpper( struct Locale *locale, unsigned long character );
  51. BOOL IsXDigit( struct Locale *locale, unsigned long character );
  52.  
  53. struct Catalog *OpenCatalogA( struct Locale *locale, STRPTR name,struct TagItem *tags );
  54. struct Catalog *OpenCatalog( struct Locale *locale, STRPTR name, Tag tag1,... );
  55. struct Locale *OpenLocale( STRPTR name );
  56.  
  57.  
  58. LONG StrnCmp( struct Locale *locale, STRPTR string1, STRPTR string2,
  59.     long length, unsigned long type );
  60.  
  61.  
  62.  
  63.  
  64. #ifdef __IGNORE_NOT_SUPPORTED__
  65.  
  66. void FormatDate( struct Locale *locale, STRPTR fmtTemplate,struct DateStamp *date, struct Hook *putCharFunc );
  67. APTR FormatString( struct Locale *locale, STRPTR fmtTemplate, APTR dataStream,struct Hook *putCharFunc );
  68. BOOL ParseDate( struct Locale *locale, struct DateStamp *date,STRPTR fmtTemplate, struct Hook *getCharFunc );
  69. ULONG StrConvert( struct Locale *locale, STRPTR string, APTR buffer,unsigned long bufferSize, unsigned long type );
  70.  
  71. #else
  72.  
  73. #define FormatDate FormatDate__NOT_COMPATIBLE__
  74. void FormatDate( struct __NOT_COMPATIBLE__*,struct Locale *locale, STRPTR fmtTemplate,struct DateStamp *date, struct Hook *putCharFunc );
  75.  
  76. #define FormatString FormatString__NOT_SUPPORTED__
  77. APTR FormatString( struct __NOT_SUPPORTED__*,struct Locale *locale, STRPTR fmtTemplate, APTR dataStream,struct Hook *putCharFunc );
  78.  
  79. #define ParseDate ParseDate__NOT_SUPPORTED__
  80. BOOL ParseDate( struct __NOT_SUPPORTED__*,struct Locale *locale, struct DateStamp *date,STRPTR fmtTemplate, struct Hook *getCharFunc );
  81.  
  82. #define StrConvert StrConvert__NOT_SUPPORTED__
  83. ULONG StrConvert( struct __NOT_SUPPORTED__*,struct Locale *locale, STRPTR string, APTR buffer,unsigned long bufferSize, unsigned long type );
  84.  
  85. #endif
  86.  
  87.  
  88.  
  89.  
  90.  
  91. #ifdef __cplusplus
  92. }
  93. #endif
  94.  
  95.  
  96. #endif     /* CLIB_LOCALE_PROTOS_H */
  97.