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

  1. #ifndef __INC_POSA_CLIB_LOCALE_PROTOS_C
  2. #define __INC_POSA_CLIB_LOCALE_PROTOS_C
  3. /*******************************************************************
  4.  $CRT 06 Dec 1996 : hp
  5.  
  6.  $AUT Holger Papajewski
  7.  $DAT >>locale_protos.c<<   06 Dec 1996    13:34:00 - (C) ProDAD
  8. *******************************************************************/
  9.  
  10. #pragma -
  11.  
  12. #define NOMYDEBUG
  13.  
  14.  
  15. #ifndef  EXEC_TYPES_H
  16. #include <exec/types.h>
  17. #endif
  18. #ifndef  LIBRARIES_LOCALE_H
  19. #include <libraries/locale.h>
  20. #endif
  21. #ifndef  UTILITY_TAGITEM_H
  22. #include <utility/tagitem.h>
  23. #endif
  24.  
  25. #ifndef __INC_POS_PROTO_PLOCALE2_H
  26. #include "p:proto/pLocale2.h"
  27. #endif
  28.  
  29. #pragma -
  30.  
  31.  
  32. void CloseCatalog( struct Catalog *catalog )
  33.   { pOS_CloseCatalog((APTR)catalog); }
  34.  
  35. void CloseLocale( struct Locale *locale )
  36.   { pOS_CloseLocale((APTR)locale); }
  37.  
  38. ULONG ConvToLower( struct Locale *locale, unsigned long character )
  39.   { return(pOS_LocaleToLower((APTR)locale,character)); }
  40.  
  41. ULONG ConvToUpper( struct Locale *locale, unsigned long character )
  42.   { return(pOS_LocaleToUpper((APTR)locale,character)); }
  43.  
  44. /*
  45. void FormatDate( struct Locale *locale, STRPTR fmtTemplate,struct DateStamp *date, struct Hook *putCharFunc );
  46. APTR FormatString( struct Locale *locale, STRPTR fmtTemplate, APTR dataStream,struct Hook *putCharFunc );
  47. */
  48.  
  49. STRPTR GetCatalogStr( struct Catalog *catalog, long stringNum,STRPTR defaultString )
  50.   { return((STRPTR)pOS_GetCatalogStr((APTR)catalog,stringNum,defaultString)); }
  51.  
  52. STRPTR GetLocaleStr( struct Locale *locale, unsigned long stringNum )
  53.   { return((STRPTR)pOS_GetLocaleStr((APTR)locale,stringNum)); }
  54.  
  55.  
  56. BOOL IsAlNum( struct Locale *locale, unsigned long character )
  57.   { return(pOS_IsAlNum((APTR)locale,character)); }
  58.  
  59. BOOL IsAlpha( struct Locale *locale, unsigned long character )
  60.   { return(pOS_IsAlpha((APTR)locale,character)); }
  61.  
  62. BOOL IsCntrl( struct Locale *locale, unsigned long character )
  63.   { return(pOS_IsCntrl((APTR)locale,character)); }
  64.  
  65. BOOL IsDigit( struct Locale *locale, unsigned long character )
  66.   { return(pOS_IsDigit((APTR)locale,character)); }
  67.  
  68. BOOL IsGraph( struct Locale *locale, unsigned long character )
  69.   { return(pOS_IsGraph((APTR)locale,character)); }
  70.  
  71. BOOL IsLower( struct Locale *locale, unsigned long character )
  72.   { return(pOS_IsLower((APTR)locale,character)); }
  73.  
  74. BOOL IsPrint( struct Locale *locale, unsigned long character )
  75.   { return(pOS_IsPrint((APTR)locale,character)); }
  76.  
  77. BOOL IsPunct( struct Locale *locale, unsigned long character )
  78.   { return(pOS_IsPunct((APTR)locale,character)); }
  79.  
  80. BOOL IsSpace( struct Locale *locale, unsigned long character )
  81.   { return(pOS_IsSpace((APTR)locale,character)); }
  82.  
  83. BOOL IsUpper( struct Locale *locale, unsigned long character )
  84.   { return(pOS_IsUpper((APTR)locale,character)); }
  85.  
  86. BOOL IsXDigit( struct Locale *locale, unsigned long character )
  87.   { return(pOS_IsXDigit((APTR)locale,character)); }
  88.  
  89.  
  90. struct Catalog *OpenCatalogA( struct Locale *locale, STRPTR name,struct TagItem *tags )
  91.   { return((struct Catalog*)pOS_OpenCatalogA((APTR)locale,name,(APTR)tags)); }
  92. struct Catalog *OpenCatalog( struct Locale *locale, STRPTR name, Tag tag1,... )
  93.   { return((struct Catalog*)pOS_OpenCatalogA((APTR)locale,name,(APTR)&tag1)); }
  94. struct Locale *OpenLocale( STRPTR name )
  95.   { return((struct Locale*)pOS_OpenLocale(name)); }
  96.  
  97. /*
  98. BOOL ParseDate( struct Locale *locale, struct DateStamp *date,STRPTR fmtTemplate, struct Hook *getCharFunc );
  99. ULONG StrConvert( struct Locale *locale, STRPTR string, APTR buffer,unsigned long bufferSize, unsigned long type );
  100. */
  101.  
  102.  
  103. LONG StrnCmp( struct Locale *locale, STRPTR string1, STRPTR string2,long length, unsigned long type )
  104.   { return(pOS_StrnCmp((APTR)locale,string1,string2,length)); }
  105.  
  106. #ifdef __cplusplus
  107. }
  108. #endif
  109.  
  110.  
  111.  
  112. #endif
  113.