1999-08-16 21:50:52 +00:00
|
|
|
/*
|
2001-03-21 22:07:51 +00:00
|
|
|
******************************************************************************
|
2000-01-13 23:54:23 +00:00
|
|
|
*
|
2004-04-04 20:44:45 +00:00
|
|
|
* Copyright (C) 1998-2004, International Business Machines
|
2000-01-13 23:54:23 +00:00
|
|
|
* Corporation and others. All Rights Reserved.
|
|
|
|
*
|
2001-03-21 22:07:51 +00:00
|
|
|
******************************************************************************
|
1999-08-16 21:50:52 +00:00
|
|
|
*
|
|
|
|
* File uscanf.h
|
|
|
|
*
|
|
|
|
* Modification History:
|
|
|
|
*
|
|
|
|
* Date Name Description
|
|
|
|
* 12/02/98 stephen Creation.
|
|
|
|
* 03/13/99 stephen Modified for new C API.
|
2001-03-21 22:07:51 +00:00
|
|
|
******************************************************************************
|
1999-08-16 21:50:52 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef USCANF_H
|
|
|
|
#define USCANF_H
|
|
|
|
|
2002-10-01 01:26:49 +00:00
|
|
|
#include "unicode/utypes.h"
|
|
|
|
|
|
|
|
#if !UCONFIG_NO_FORMATTING
|
|
|
|
|
2000-01-05 19:40:01 +00:00
|
|
|
#include "unicode/ustdio.h"
|
1999-08-16 21:50:52 +00:00
|
|
|
#include "ufmt_cmn.h"
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Struct encapsulating a single uscanf format specification.
|
|
|
|
*/
|
|
|
|
struct u_scanf_spec_info {
|
2003-10-02 17:05:26 +00:00
|
|
|
int32_t fWidth; /* Width */
|
1999-08-16 21:50:52 +00:00
|
|
|
|
2003-10-02 17:05:26 +00:00
|
|
|
UChar fSpec; /* Format specification */
|
1999-08-16 21:50:52 +00:00
|
|
|
|
2003-10-02 17:05:26 +00:00
|
|
|
UChar fPadChar; /* Padding character */
|
1999-08-16 21:50:52 +00:00
|
|
|
|
2003-10-02 17:05:26 +00:00
|
|
|
UBool fIsLongDouble; /* L flag */
|
|
|
|
UBool fIsShort; /* h flag */
|
2000-05-18 22:08:39 +00:00
|
|
|
UBool fIsLong; /* l flag */
|
2003-10-02 17:05:26 +00:00
|
|
|
UBool fIsLongLong; /* ll flag */
|
1999-08-16 21:50:52 +00:00
|
|
|
};
|
|
|
|
typedef struct u_scanf_spec_info u_scanf_spec_info;
|
|
|
|
|
|
|
|
|
2002-10-01 01:26:49 +00:00
|
|
|
#endif /* #if !UCONFIG_NO_FORMATTING */
|
1999-08-16 21:50:52 +00:00
|
|
|
|
2003-10-02 17:22:11 +00:00
|
|
|
#endif
|
|
|
|
|