home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 6 / AACD06.ISO / AACD / Programming / ICU / src / icuapps / locexp / util / ures_additions.h < prev   
Encoding:
C/C++ Source or Header  |  1999-10-22  |  1.9 KB  |  56 lines

  1. #ifndef URES_ADDITIONS_H
  2. #define URES_ADDITIONS_H
  3.  
  4. #include "utypes.h"
  5. #include "uloc.h"
  6. #include "ures.h"
  7. #include "unum.h"
  8.  
  9. /**
  10. * Counts the numbers of rows and columns in the specified 2d array
  11. *@param resourceBundle: resourceBundle containing the desired string
  12. *@param resourceTag: key tagging the desired array
  13. *@param rowCount: receives the number of rows at return
  14. *@param colCount: receives the number of columns at return
  15. *@param status: fills in the outgoing error code
  16. *                could be <TT>MISSING_RESOURCE_ERROR</T> if the key is not found
  17. *                could be a non-failing error 
  18. *                e.g.: <TT>USING_FALLBACK_ERROR</TT>,<TT>USING_DEFAULT_ERROR </TT>
  19. *@see ures_get2dArrayItem
  20. */
  21.  
  22. U_CAPI void ures_count2dArrayItems(const UResourceBundle *resourceBundle,
  23.                  const char * resourceTag,
  24.                  int32_t *rowCount,
  25.                  int32_t *colCount,
  26.                  UErrorCode* status);
  27.  
  28. /**
  29.  * Access the nth tag of a tagged array item
  30.  *@param resourceBundle: resource bundle containing the desired strings
  31.  *@param resourceKey: key tagging the resource
  32.  *@param err: fills in the outgoing error code
  33.  *                could be <TT>MISSING_RESOURCE_ERROR</T> if the key is not found
  34.  *                could be a non-failing error 
  35.  *                e.g.: <TT>USING_FALLBACK_ERROR</TT>,<TT>USING_DEFAULT_ERROR </TT>
  36.  *@return pointer to the tag if found, 0 if not found. Client owns the chars.
  37.  *@see ures_get
  38.  *@see ures_getArrayItem
  39.  *@see ures_getTaggedArrayItem
  40.  *@see ures_get2dArrayItem
  41.  */
  42.  
  43. U_CAPI const char* U_EXPORT2 ures_getTaggedArrayTag(const UResourceBundle *resourceBundle,
  44.                                const char *resourceTag, 
  45.                                int32_t index,
  46.                                UErrorCode* status);
  47.  
  48.  
  49. U_CAPI void
  50. unum_applyPattern(            UNumberFormat     *format,
  51.                   bool_t          localized,
  52.                   const   UChar           *pattern,
  53.                   int32_t         patternLength);
  54.  
  55. #endif
  56.