home *** CD-ROM | disk | FTP | other *** search
/ Amiga ISO Collection / AmigaUtilCD2.iso / Programming / C / STORM2.DMS / in.adf / Includes.LHA / clib / locale_protos.h < prev    next >
Encoding:
C/C++ Source or Header  |  1995-11-01  |  2.7 KB  |  85 lines

  1. #ifndef  CLIB_LOCALE_PROTOS_H
  2. #define  CLIB_LOCALE_PROTOS_H
  3.  
  4. /*
  5. **    $VER: locale_protos.h 38.5 (18.6.93)
  6. **    Includes Release 40.15
  7. **
  8. **    C prototypes. For use with 32 bit integers only.
  9. **
  10. **    (C) Copyright 1990-1993 Commodore-Amiga, Inc.
  11. **        All Rights Reserved
  12. */
  13.  
  14. #ifndef  EXEC_TYPES_H
  15. #include <exec/types.h>
  16. #endif
  17. #ifndef  LIBRARIES_LOCALE_H
  18. #include <libraries/locale.h>
  19. #endif
  20. #ifndef  DOS_DOS_H
  21. #include <dos/dos.h>
  22. #endif
  23. #ifndef  UTILITY_HOOKS_H
  24. #include <utility/hooks.h>
  25. #endif
  26. #ifndef  UTILITY_TAGITEM_H
  27. #include <utility/tagitem.h>
  28. #endif
  29. #ifndef  REXX_STORAGE_H
  30. #include <rexx/storage.h>
  31. #endif
  32.  
  33. #ifdef __cplusplus
  34. #define CLIBCPLUSON
  35. #pragma -
  36. #endif
  37.  
  38. /*--- functions in V38 or higher (Release 2.1) ---*/
  39. void CloseCatalog( struct Catalog *catalog );
  40. void CloseLocale( struct Locale *locale );
  41. ULONG ConvToLower( struct Locale *locale, unsigned long character );
  42. ULONG ConvToUpper( struct Locale *locale, unsigned long character );
  43. void FormatDate( struct Locale *locale, STRPTR fmtTemplate,
  44.     struct DateStamp *date, struct Hook *putCharFunc );
  45. APTR FormatString( struct Locale *locale, STRPTR fmtTemplate, APTR dataStream,
  46.     struct Hook *putCharFunc );
  47. STRPTR GetCatalogStr( struct Catalog *catalog, long stringNum,
  48.     STRPTR defaultString );
  49. STRPTR GetLocaleStr( struct Locale *locale, unsigned long stringNum );
  50. BOOL IsAlNum( struct Locale *locale, unsigned long character );
  51. BOOL IsAlpha( struct Locale *locale, unsigned long character );
  52. BOOL IsCntrl( struct Locale *locale, unsigned long character );
  53. BOOL IsDigit( struct Locale *locale, unsigned long character );
  54. BOOL IsGraph( struct Locale *locale, unsigned long character );
  55. BOOL IsLower( struct Locale *locale, unsigned long character );
  56. BOOL IsPrint( struct Locale *locale, unsigned long character );
  57. BOOL IsPunct( struct Locale *locale, unsigned long character );
  58. BOOL IsSpace( struct Locale *locale, unsigned long character );
  59. BOOL IsUpper( struct Locale *locale, unsigned long character );
  60. BOOL IsXDigit( struct Locale *locale, unsigned long character );
  61. struct Catalog *OpenCatalogA( struct Locale *locale, STRPTR name,
  62.     struct TagItem *tags );
  63. struct Catalog *OpenCatalog( struct Locale *locale, STRPTR name, Tag tag1,
  64.     ... );
  65. struct Locale *OpenLocale( STRPTR name );
  66. BOOL ParseDate( struct Locale *locale, struct DateStamp *date,
  67.     STRPTR fmtTemplate, struct Hook *getCharFunc );
  68. ULONG StrConvert( struct Locale *locale, STRPTR string, APTR buffer,
  69.     unsigned long bufferSize, unsigned long type );
  70. LONG StrnCmp( struct Locale *locale, STRPTR string1, STRPTR string2,
  71.     long length, unsigned long type );
  72.  
  73. #ifdef CLIBCPLUSON
  74. #undef CLIBCPLUSON
  75. #pragma +
  76. #endif
  77.  
  78. #ifdef STORMPRAGMAS
  79. #ifndef _INCLUDE_PRAGMA_LOCALE_LIB_H
  80. #include <pragma/locale_lib.h>
  81. #endif
  82. #endif
  83.  
  84. #endif     /* CLIB_LOCALE_PROTOS_H */
  85.