1999-08-16 21:50:52 +00:00
|
|
|
/*
|
|
|
|
*******************************************************************************
|
2000-01-13 23:54:23 +00:00
|
|
|
*
|
2001-03-21 22:07:51 +00:00
|
|
|
* Copyright (C) 1998-2001, International Business Machines
|
2000-01-13 23:54:23 +00:00
|
|
|
* Corporation and others. All Rights Reserved.
|
|
|
|
*
|
1999-08-16 21:50:52 +00:00
|
|
|
*******************************************************************************
|
|
|
|
*
|
|
|
|
* File uscnf_p.h
|
|
|
|
*
|
|
|
|
* Modification History:
|
|
|
|
*
|
|
|
|
* Date Name Description
|
|
|
|
* 12/02/98 stephen Creation.
|
|
|
|
* 03/13/99 stephen Modified for new C API.
|
|
|
|
*******************************************************************************
|
|
|
|
*/
|
|
|
|
|
2001-02-09 01:45:45 +00:00
|
|
|
#ifndef _USCANF_P
|
|
|
|
#define _USCANF_P
|
1999-08-16 21:50:52 +00:00
|
|
|
|
|
|
|
#include "uscanf.h"
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Struct encapsulating a single u_scanf format specification.
|
|
|
|
*/
|
|
|
|
struct u_scanf_spec {
|
|
|
|
u_scanf_spec_info fInfo; /* Information on this spec */
|
|
|
|
int32_t fArgPos; /* Position of data in arg list */
|
2000-05-18 22:08:39 +00:00
|
|
|
UBool fSkipArg; /* TRUE if arg should be skipped */
|
1999-08-16 21:50:52 +00:00
|
|
|
};
|
|
|
|
typedef struct u_scanf_spec u_scanf_spec;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Parse a single u_scanf format specifier.
|
|
|
|
* @param fmt A pointer to a '%' character in a u_scanf format specification.
|
|
|
|
* @param spec A pointer to a <TT>u_scanf_spec</TT> to receive the parsed
|
|
|
|
* format specifier.
|
|
|
|
* @return The number of characters contained in this specifier.
|
|
|
|
*/
|
|
|
|
int32_t
|
|
|
|
u_scanf_parse_spec (const UChar *fmt,
|
|
|
|
u_scanf_spec *spec);
|
|
|
|
|
|
|
|
|
|
|
|
#endif
|