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

  1. /*
  2. *******************************************************************************
  3. *                                                                             *
  4. * COPYRIGHT:                                                                  *
  5. *   (C) Copyright International Business Machines Corporation, 1998           *
  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 uscnf_p.h
  13. *
  14. * Modification History:
  15. *
  16. *   Date        Name        Description
  17. *   12/02/98    stephen        Creation.
  18. *   03/13/99    stephen     Modified for new C API.
  19. *******************************************************************************
  20. */
  21.  
  22. #ifndef _USCNF_P
  23. #define _USCNF_P
  24.  
  25. #include "uscanf.h"
  26.  
  27. /**
  28.  * Struct encapsulating a single u_scanf format specification.
  29.  */
  30. struct u_scanf_spec {
  31.   u_scanf_spec_info    fInfo;        /* Information on this spec */
  32.   int32_t        fArgPos;    /* Position of data in arg list */
  33.   bool_t        fSkipArg;    /* TRUE if arg should be skipped */
  34. };
  35. typedef struct u_scanf_spec u_scanf_spec;
  36.  
  37. /**
  38.  * Parse a single u_scanf format specifier.
  39.  * @param fmt A pointer to a '%' character in a u_scanf format specification.
  40.  * @param spec A pointer to a <TT>u_scanf_spec</TT> to receive the parsed
  41.  * format specifier.
  42.  * @return The number of characters contained in this specifier.
  43.  */
  44. int32_t
  45. u_scanf_parse_spec (const UChar     *fmt,
  46.             u_scanf_spec    *spec);
  47.  
  48.  
  49. #endif
  50.