home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 6 / AACD06.ISO / AACD / Programming / ICU / src / icu / source / extra / ustdio / uprntf_p.h < prev    next >
Encoding:
C/C++ Source or Header  |  1999-08-16  |  1.8 KB  |  51 lines

  1. /*
  2. *******************************************************************************
  3. *                                                                             *
  4. * COPYRIGHT:                                                                  *
  5. *   (C) Copyright International Business Machines Corporation, 1999           *
  6. *   Licensed Material - Program-Property of IBM - All Rights Reserved.        *
  7. *   US Government Users Restricted Rights - Use, duplication, or disclosure   *
  8. *   restricted by GSA ADP Schedule Contract with IBM Corp.                    *
  9. *                                                                             *
  10. *******************************************************************************
  11. *
  12. * File uprntf_p.h
  13. *
  14. * Modification History:
  15. *
  16. *   Date        Name        Description
  17. *   12/02/98    stephen        Creation.
  18. *   03/12/99    stephen     Modified for new C API.
  19. *******************************************************************************
  20. */
  21.  
  22. #ifndef UPRNTF_P_H
  23. #define UPRNTF_P_H
  24.  
  25. #include "uprintf.h"
  26.  
  27. /**
  28.  * Struct encapsulating a single uprintf format specification.
  29.  */
  30. struct u_printf_spec {
  31.   u_printf_spec_info    fInfo;        /* Information on this spec */
  32.   int32_t        fWidthPos;     /* Position of width in arg list */
  33.   int32_t        fPrecisionPos;    /* Position of precision in arg list */
  34.   int32_t        fArgPos;    /* Position of data in arg list */
  35. };
  36. typedef struct u_printf_spec u_printf_spec;
  37.  
  38. /**
  39.  * Parse a single u_printf format specifier.
  40.  * @param fmt A pointer to a '%' character in a u_printf format specification.
  41.  * @param spec A pointer to a <TT>u_printf_spec</TT> to receive the parsed
  42.  * format specifier.
  43.  * @return The number of characters contained in this specifier.
  44.  */
  45. int32_t
  46. u_printf_parse_spec (const UChar     *fmt,
  47.              u_printf_spec    *spec);
  48.  
  49.  
  50. #endif
  51.