ICU-2256 Improve the padding of this structure.

X-SVN-Rev: 13274
This commit is contained in:
George Rhoten 2003-10-02 17:05:26 +00:00
parent 1fb55a65c7
commit 87f17c2aeb
2 changed files with 19 additions and 20 deletions

View File

@ -31,23 +31,22 @@
* Struct encapsulating a single uprintf format specification.
*/
typedef struct u_printf_spec_info {
UChar fSpec; /* Conversion specification */
int32_t fPrecision; /* Precision */
int32_t fWidth; /* Width */
int32_t fPrecision; /* Precision */
int32_t fWidth; /* Width */
UChar fSpec; /* Conversion specification */
UChar fPadChar; /* Padding character */
UChar fPadChar; /* Padding character */
UBool fAlt; /* # flag */
UBool fSpace; /* Space flag */
UBool fLeft; /* - flag */
UBool fShowSign; /* + flag */
UBool fZero; /* 0 flag */
UBool fAlt; /* # flag */
UBool fSpace; /* Space flag */
UBool fLeft; /* - flag */
UBool fShowSign; /* + flag */
UBool fZero; /* 0 flag */
UBool fIsLongDouble; /* L flag */
UBool fIsShort; /* h flag */
UBool fIsLongDouble; /* L flag */
UBool fIsShort; /* h flag */
UBool fIsLong; /* l flag */
UBool fIsLongLong; /* ll flag */
UBool fIsLongLong; /* ll flag */
} u_printf_spec_info;
typedef int32_t U_EXPORT2

View File

@ -30,16 +30,16 @@
* Struct encapsulating a single uscanf format specification.
*/
struct u_scanf_spec_info {
UChar fSpec; /* Format specification */
int32_t fWidth; /* Width */
int32_t fWidth; /* Width */
UChar fSpec; /* Format specification */
UChar fPadChar; /* Padding character */
UChar fPadChar; /* Padding character */
UBool fIsLongDouble; /* L flag */
UBool fIsShort; /* h flag */
UBool fIsLongDouble; /* L flag */
UBool fIsShort; /* h flag */
UBool fIsLong; /* l flag */
UBool fIsLongLong; /* ll flag */
UBool fIsLongLong; /* ll flag */
};
typedef struct u_scanf_spec_info u_scanf_spec_info;
@ -66,4 +66,4 @@ typedef int32_t (*u_scanf_handler) (UFILE *stream,
#endif /* #if !UCONFIG_NO_FORMATTING */
#endif
#endif