]> git.saurik.com Git - apple/icu.git/blame - icuSources/extra/ustdio/uscanf_p.h
ICU-3.13.tar.gz
[apple/icu.git] / icuSources / extra / ustdio / uscanf_p.h
CommitLineData
b75a7d8f
A
1/*
2*******************************************************************************
3*
4* Copyright (C) 1998-2001, International Business Machines
5* Corporation and others. All Rights Reserved.
6*
7*******************************************************************************
8*
9* File uscnf_p.h
10*
11* Modification History:
12*
13* Date Name Description
14* 12/02/98 stephen Creation.
15* 03/13/99 stephen Modified for new C API.
16*******************************************************************************
17*/
18
19#ifndef _USCANF_P
20#define _USCANF_P
21
22#include "unicode/utypes.h"
23
24#if !UCONFIG_NO_FORMATTING
25
26#include "uscanf.h"
27
28/**
29 * Struct encapsulating a single u_scanf format specification.
30 */
31struct u_scanf_spec {
32 u_scanf_spec_info fInfo; /* Information on this spec */
33 int32_t fArgPos; /* Position of data in arg list */
34 UBool fSkipArg; /* TRUE if arg should be skipped */
35};
36typedef struct u_scanf_spec u_scanf_spec;
37
38/**
39 * Parse a single u_scanf format specifier.
40 * @param fmt A pointer to a '%' character in a u_scanf format specification.
41 * @param spec A pointer to a <TT>u_scanf_spec</TT> to receive the parsed
42 * format specifier.
43 * @return The number of characters contained in this specifier.
44 */
45int32_t
46u_scanf_parse_spec (const UChar *fmt,
47 u_scanf_spec *spec);
48
49#endif /* #if !UCONFIG_NO_FORMATTING */
50
51#endif