diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2010-02-26 17:53:52 +0000 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2010-02-26 17:53:52 +0000 |
commit | 75bd77d2465e7e7e83df6d9ec6ac6ae976cdc113 (patch) | |
tree | 26325da9e8148a82bc483a10c4340eaa28c0f7de /newlib/libc/stdio/vasniprintf.c | |
parent | f467ede2830d60d9dfa0bbba66674662ed566086 (diff) | |
download | cygnal-75bd77d2465e7e7e83df6d9ec6ac6ae976cdc113.tar.gz cygnal-75bd77d2465e7e7e83df6d9ec6ac6ae976cdc113.tar.bz2 cygnal-75bd77d2465e7e7e83df6d9ec6ac6ae976cdc113.zip |
* libc/strptime.cc: Implement support for era, alt_digits and POSIX
padding and width modifiers.
(era_info_t): New type.
(free_era_info): New static function to free era_info_t storage.
(get_era_info): New static function to create era_info_t storage
from LC_TIME era information.
(alt_digits_t): New type.
(get_alt_digits): New static function to create alt_digits_t storage
from LC_TIME alt_digits information.
(free_alt_digits): New static function to free alt_digits_t storage.
(find_alt_digits): New static function to scan input for alternative
digits and return them, if any. Return NULL otherwise.
(__strptime): New static function taking all code from strptime.
Implement handling for E, O, +, 0, and width modifiers per POSIX-1.2008.
(strptime): Convert into wrapper function to provide era_info and
alt_digits pointers and call __strptime.
(conv_num): Take additional alt_digits_t parameter and if it's not
NULL, call find_alt_digits to convert.
Diffstat (limited to 'newlib/libc/stdio/vasniprintf.c')
0 files changed, 0 insertions, 0 deletions