|
Ne.app NeANT
The Ne.app NeANT User module of the NeANT distribution.
|
#include <cstddef>#include <istream>#include <rw_char.h>#include <rw_ctype.h>#include <rw_exception.h>#include <rw_printf.h>#include <rw_streambuf.h>#include <rw_driver.h>
Go to the source code of this file.
Data Structures | |
| struct | LocaleData |
Macros | |
| #define | TEST(str, fl, is, ex, ee, es, ne, fw, iv, ev) |
| #define | TEST(T, fmt, str, fl, is, ex, ee, es, ne, fw, iv, ev) |
| #define | TEST_BOOL(ss, fl, is, ex, ee, es, ne, fw, iv, ev) TEST (bool, "%b", ss, fl, is, ex, ee, es, ne, fw, iv, ev) |
| #define | TEST_SHRT(ss, fl, is, ex, ee, es, ne, fw, iv, ev) TEST (short, "%hi", ss, fl, is, ex, ee, es, ne, fw, iv, ev) |
| #define | TEST_USHRT(ss, fl, is, ex, ee, es, ne, fw, iv, ev) TEST (unsigned short, "%hu", ss, fl, is, ex, ee, es, ne, fw, iv, ev) |
| #define | TEST_INT(ss, fl, is, ex, ee, es, ne, fw, iv, ev) TEST (int, "%i", ss, fl, is, ex, ee, es, ne, fw, iv, ev) |
| #define | TEST_UINT(ss, fl, is, ex, ee, es, ne, fw, iv, ev) TEST (int, "%u", ss, fl, is, ex, ee, es, ne, fw, iv, ev) |
| #define | TEST_LONG(ss, fl, is, ex, ee, es, ne, fw, iv, ev) TEST (long, "%li", ss, fl, is, ex, ee, es, ne, fw, iv, ev) |
| #define | TEST_ULONG(ss, fl, is, ex, ee, es, ne, fw, iv, ev) TEST (unsigned long, "%lu", ss, fl, is, ex, ee, es, ne, fw, iv, ev) |
| #define | TEST_LLONG(ss, fl, is, ex, ee, es, ne, fw, iv, ev) TEST (long long, "%lli", ss, fl, is, ex, ee, es, ne, fw, iv, ev) |
| #define | TEST_ULLONG(ss, fl, is, ex, ee, es, ne, fw, iv, ev) TEST (unsigned long long, "%llu", ss, fl, is, ex, ee, es, ne, fw, iv, ev) |
| #define | TEST_FLOATING(ss, fl, is, ex, ee, es, ne, fw, iv, ev) TEST (T, fmt, ss, fl, is, ex, ee, es, ne, fw, T (iv), T (ev)) |
| #define | TEST_FLT(ss, fl, is, ex, ee, es, ne, fw, iv, ev) TEST (float, fmt, ss, fl, is, ex, ee, es, ne, fw, iv, ev) |
| #define | TEST_DBL(ss, fl, is, ex, ee, es, ne, fw, iv, ev) TEST (double, fmt, ss, fl, is, ex, ee, es, ne, fw, iv, ev) |
| #define | TEST_LDBL(ss, fl, is, ex, ee, es, ne, fw, iv, ev) TEST (long double, fmt, ss, fl, is, ex, ee, es, ne, fw, iv, ev) |
| #define | TEST(T) |
| #define | TEST(CharT, Traits) test_extractor ((CharT*)0, (Traits*)0, #CharT, #Traits) |
Functions | |
| template<class CharT > | |
| const std::locale | make_locale (const CharT *, const LocaleData &data) |
| template<class CharT , class Traits > | |
| const std::locale | make_locale (const CharT *, const Traits *, const LocaleData &data) |
| template<class CharT , class Traits , class ArithmeticType > | |
| void | test_extractor (CharT *, Traits *, ArithmeticType *, const char *cname, const char *tname, const char *aname, int line, const char *valfmt, const char *cbuf, std::size_t cbuf_size, const LocaleData &locale_data, int flags, int init_state, int exceptions, int expect_exception, int expect_state, int expect_extract, int fail_when, ArithmeticType init_value, ArithmeticType expect_value) |
| template<class CharT , class Traits , class ArithmeticType > | |
| void | test_extractor (CharT *, Traits *, ArithmeticType *, const char *cname, const char *tname, const char *aname, const char *fmt) |
| void | info (const char *cname, const char *tname, const char *type) |
| template<class CharT , class Traits > | |
| void | test_bool (CharT *, Traits *, const char *cname, const char *tname) |
| template<class CharT , class Traits > | |
| void | test_shrt (CharT *, Traits *, const char *cname, const char *tname) |
| template<class CharT , class Traits > | |
| void | test_ushrt (CharT *, Traits *, const char *cname, const char *tname) |
| template<class CharT , class Traits > | |
| void | test_int (CharT *, Traits *, const char *cname, const char *tname) |
| template<class CharT , class Traits > | |
| void | test_uint (CharT *, Traits *, const char *cname, const char *tname) |
| template<class CharT , class Traits > | |
| void | test_long (CharT *, Traits *, const char *cname, const char *tname) |
| template<class CharT , class Traits > | |
| void | test_ulong (CharT *, Traits *, const char *cname, const char *tname) |
| template<class CharT , class Traits > | |
| void | test_llong (CharT *, Traits *, const char *cname, const char *tname) |
| template<class CharT , class Traits > | |
| void | test_ullong (CharT *, Traits *, const char *cname, const char *tname) |
| template<class CharT , class Traits , class FloatingType > | |
| void | test_floating (CharT *, Traits *, FloatingType *, const char *cname, const char *tname, const char *fname, const char *fmt) |
| template<class CharT , class Traits > | |
| void | test_flt (CharT *, Traits *, const char *cname, const char *tname) |
| template<class CharT , class Traits > | |
| void | test_dbl (CharT *, Traits *, const char *cname, const char *tname) |
| template<class CharT , class Traits > | |
| void | test_ldbl (CharT *, Traits *, const char *cname, const char *tname) |
| template<class CharT , class Traits > | |
| void | test_extractor (CharT *, Traits *, const char *cname, const char *tname) |
| int | main (int argc, char *argv[]) |
Variables | |
| int | opt_no_gcount |
| const int | ___ = 0 |
| const int | __f = 0 | 0 | std::ios::failbit |
| const int | _e_ = 0 | std::ios::eofbit | 0 |
| const int | _ef = 0 | std::ios::eofbit | std::ios::failbit |
| const int | b__ = std::ios::badbit | 0 | 0 |
| const int | b_f = std::ios::badbit | 0 | std::ios::failbit |
| const int | be_ = std::ios::badbit | std::ios::eofbit | 0 |
| const int | bef = std::ios::badbit | std::ios::eofbit | std::ios::failbit |
| const int | DEC = std::ios::dec |
| const int | OCT = std::ios::oct |
| const int | HEX = std::ios::hex |
| int | opt_bool |
| int | opt_shrt |
| int | opt_ushrt |
| int | opt_int |
| int | opt_uint |
| int | opt_long |
| int | opt_ulong |
| int | opt_llong |
| int | opt_ullong |
| int | opt_flt |
| int | opt_dbl |
| int | opt_ldbl |
Definition at line 683 of file 27.istream.fmat.arith.cpp.
| #define TEST | ( | str, | |
| fl, | |||
| is, | |||
| ex, | |||
| ee, | |||
| es, | |||
| ne, | |||
| fw, | |||
| iv, | |||
| ev | |||
| ) |
Definition at line 683 of file 27.istream.fmat.arith.cpp.
| #define TEST | ( | T | ) |
Definition at line 683 of file 27.istream.fmat.arith.cpp.
Definition at line 683 of file 27.istream.fmat.arith.cpp.
| #define TEST_BOOL | ( | ss, | |
| fl, | |||
| is, | |||
| ex, | |||
| ee, | |||
| es, | |||
| ne, | |||
| fw, | |||
| iv, | |||
| ev | |||
| ) | TEST (bool, "%b", ss, fl, is, ex, ee, es, ne, fw, iv, ev) |
| #define TEST_DBL | ( | ss, | |
| fl, | |||
| is, | |||
| ex, | |||
| ee, | |||
| es, | |||
| ne, | |||
| fw, | |||
| iv, | |||
| ev | |||
| ) | TEST (double, fmt, ss, fl, is, ex, ee, es, ne, fw, iv, ev) |
| #define TEST_FLOATING | ( | ss, | |
| fl, | |||
| is, | |||
| ex, | |||
| ee, | |||
| es, | |||
| ne, | |||
| fw, | |||
| iv, | |||
| ev | |||
| ) | TEST (T, fmt, ss, fl, is, ex, ee, es, ne, fw, T (iv), T (ev)) |
| #define TEST_FLT | ( | ss, | |
| fl, | |||
| is, | |||
| ex, | |||
| ee, | |||
| es, | |||
| ne, | |||
| fw, | |||
| iv, | |||
| ev | |||
| ) | TEST (float, fmt, ss, fl, is, ex, ee, es, ne, fw, iv, ev) |
| #define TEST_INT | ( | ss, | |
| fl, | |||
| is, | |||
| ex, | |||
| ee, | |||
| es, | |||
| ne, | |||
| fw, | |||
| iv, | |||
| ev | |||
| ) | TEST (int, "%i", ss, fl, is, ex, ee, es, ne, fw, iv, ev) |
| #define TEST_LDBL | ( | ss, | |
| fl, | |||
| is, | |||
| ex, | |||
| ee, | |||
| es, | |||
| ne, | |||
| fw, | |||
| iv, | |||
| ev | |||
| ) | TEST (long double, fmt, ss, fl, is, ex, ee, es, ne, fw, iv, ev) |
| #define TEST_LLONG | ( | ss, | |
| fl, | |||
| is, | |||
| ex, | |||
| ee, | |||
| es, | |||
| ne, | |||
| fw, | |||
| iv, | |||
| ev | |||
| ) | TEST (long long, "%lli", ss, fl, is, ex, ee, es, ne, fw, iv, ev) |
| #define TEST_LONG | ( | ss, | |
| fl, | |||
| is, | |||
| ex, | |||
| ee, | |||
| es, | |||
| ne, | |||
| fw, | |||
| iv, | |||
| ev | |||
| ) | TEST (long, "%li", ss, fl, is, ex, ee, es, ne, fw, iv, ev) |
| #define TEST_SHRT | ( | ss, | |
| fl, | |||
| is, | |||
| ex, | |||
| ee, | |||
| es, | |||
| ne, | |||
| fw, | |||
| iv, | |||
| ev | |||
| ) | TEST (short, "%hi", ss, fl, is, ex, ee, es, ne, fw, iv, ev) |
| #define TEST_UINT | ( | ss, | |
| fl, | |||
| is, | |||
| ex, | |||
| ee, | |||
| es, | |||
| ne, | |||
| fw, | |||
| iv, | |||
| ev | |||
| ) | TEST (int, "%u", ss, fl, is, ex, ee, es, ne, fw, iv, ev) |
| #define TEST_ULLONG | ( | ss, | |
| fl, | |||
| is, | |||
| ex, | |||
| ee, | |||
| es, | |||
| ne, | |||
| fw, | |||
| iv, | |||
| ev | |||
| ) | TEST (unsigned long long, "%llu", ss, fl, is, ex, ee, es, ne, fw, iv, ev) |
| #define TEST_ULONG | ( | ss, | |
| fl, | |||
| is, | |||
| ex, | |||
| ee, | |||
| es, | |||
| ne, | |||
| fw, | |||
| iv, | |||
| ev | |||
| ) | TEST (unsigned long, "%lu", ss, fl, is, ex, ee, es, ne, fw, iv, ev) |
| #define TEST_USHRT | ( | ss, | |
| fl, | |||
| is, | |||
| ex, | |||
| ee, | |||
| es, | |||
| ne, | |||
| fw, | |||
| iv, | |||
| ev | |||
| ) | TEST (unsigned short, "%hu", ss, fl, is, ex, ee, es, ne, fw, iv, ev) |
| void info | ( | const char * | cname, |
| const char * | tname, | ||
| const char * | type | ||
| ) |
Definition at line 666 of file 27.istream.fmat.arith.cpp.
| int main | ( | int | argc, |
| char * | argv[] | ||
| ) |
Definition at line 1346 of file 27.istream.fmat.arith.cpp.
| const std::locale make_locale | ( | const CharT * | , |
| const LocaleData & | data | ||
| ) |
Definition at line 52 of file 27.istream.fmat.arith.cpp.
| const std::locale make_locale | ( | const CharT * | , |
| const Traits * | , | ||
| const LocaleData & | data | ||
| ) |
Definition at line 185 of file 27.istream.fmat.arith.cpp.
Definition at line 692 of file 27.istream.fmat.arith.cpp.
Definition at line 1171 of file 27.istream.fmat.arith.cpp.
| void test_extractor | ( | CharT * | , |
| Traits * | , | ||
| ArithmeticType * | , | ||
| const char * | cname, | ||
| const char * | tname, | ||
| const char * | aname, | ||
| const char * | fmt | ||
| ) |
Definition at line 448 of file 27.istream.fmat.arith.cpp.
| void test_extractor | ( | CharT * | , |
| Traits * | , | ||
| ArithmeticType * | , | ||
| const char * | cname, | ||
| const char * | tname, | ||
| const char * | aname, | ||
| int | line, | ||
| const char * | valfmt, | ||
| const char * | cbuf, | ||
| std::size_t | cbuf_size, | ||
| const LocaleData & | locale_data, | ||
| int | flags, | ||
| int | init_state, | ||
| int | exceptions, | ||
| int | expect_exception, | ||
| int | expect_state, | ||
| int | expect_extract, | ||
| int | fail_when, | ||
| ArithmeticType | init_value, | ||
| ArithmeticType | expect_value | ||
| ) |
Definition at line 210 of file 27.istream.fmat.arith.cpp.
Definition at line 1241 of file 27.istream.fmat.arith.cpp.
| void test_floating | ( | CharT * | , |
| Traits * | , | ||
| FloatingType * | , | ||
| const char * | cname, | ||
| const char * | tname, | ||
| const char * | fname, | ||
| const char * | fmt | ||
| ) |
Definition at line 1119 of file 27.istream.fmat.arith.cpp.
Definition at line 1143 of file 27.istream.fmat.arith.cpp.
Definition at line 828 of file 27.istream.fmat.arith.cpp.
Definition at line 1199 of file 27.istream.fmat.arith.cpp.
Definition at line 1022 of file 27.istream.fmat.arith.cpp.
Definition at line 925 of file 27.istream.fmat.arith.cpp.
Definition at line 745 of file 27.istream.fmat.arith.cpp.
Definition at line 884 of file 27.istream.fmat.arith.cpp.
Definition at line 1078 of file 27.istream.fmat.arith.cpp.
Definition at line 981 of file 27.istream.fmat.arith.cpp.
Definition at line 793 of file 27.istream.fmat.arith.cpp.
| const int ___ = 0 |
Definition at line 432 of file 27.istream.fmat.arith.cpp.
| const int __f = 0 | 0 | std::ios::failbit |
Definition at line 433 of file 27.istream.fmat.arith.cpp.
| const int _e_ = 0 | std::ios::eofbit | 0 |
Definition at line 434 of file 27.istream.fmat.arith.cpp.
| const int _ef = 0 | std::ios::eofbit | std::ios::failbit |
Definition at line 435 of file 27.istream.fmat.arith.cpp.
| const int b__ = std::ios::badbit | 0 | 0 |
Definition at line 436 of file 27.istream.fmat.arith.cpp.
| const int b_f = std::ios::badbit | 0 | std::ios::failbit |
Definition at line 437 of file 27.istream.fmat.arith.cpp.
| const int be_ = std::ios::badbit | std::ios::eofbit | 0 |
Definition at line 438 of file 27.istream.fmat.arith.cpp.
| const int bef = std::ios::badbit | std::ios::eofbit | std::ios::failbit |
Definition at line 439 of file 27.istream.fmat.arith.cpp.
| const int DEC = std::ios::dec |
Definition at line 441 of file 27.istream.fmat.arith.cpp.
| const int HEX = std::ios::hex |
Definition at line 443 of file 27.istream.fmat.arith.cpp.
| const int OCT = std::ios::oct |
Definition at line 442 of file 27.istream.fmat.arith.cpp.
| int opt_bool |
Definition at line 1225 of file 27.istream.fmat.arith.cpp.
| int opt_dbl |
Definition at line 1235 of file 27.istream.fmat.arith.cpp.
| int opt_flt |
Definition at line 1234 of file 27.istream.fmat.arith.cpp.
| int opt_int |
Definition at line 1228 of file 27.istream.fmat.arith.cpp.
| int opt_ldbl |
Definition at line 1236 of file 27.istream.fmat.arith.cpp.
| int opt_llong |
Definition at line 1232 of file 27.istream.fmat.arith.cpp.
| int opt_long |
Definition at line 1230 of file 27.istream.fmat.arith.cpp.
| int opt_no_gcount |
Definition at line 205 of file 27.istream.fmat.arith.cpp.
| int opt_shrt |
Definition at line 1226 of file 27.istream.fmat.arith.cpp.
| int opt_uint |
Definition at line 1229 of file 27.istream.fmat.arith.cpp.
| int opt_ullong |
Definition at line 1233 of file 27.istream.fmat.arith.cpp.
| int opt_ulong |
Definition at line 1231 of file 27.istream.fmat.arith.cpp.
| int opt_ushrt |
Definition at line 1227 of file 27.istream.fmat.arith.cpp.