#include <string>
#include <cstddef>
#include <istream>
#include <ostream>
#include <locale>
#include <rw_strings.h>
#include <rw_driver.h>
#include <rw_allocator.h>
#include <rw_char.h>
#include <rw_ctype.h>
#include <rw_new.h>
#include <rw_streambuf.h>
Go to the source code of this file.
|
| #define | Good std::ios_base::goodbit |
| |
| #define | Eof std::ios_base::eofbit |
| |
| #define | Fail std::ios_base::failbit |
| |
| #define | Bad std::ios_base::badbit |
| |
| #define | NotGood (Eof | Fail | Bad) |
| |
| #define | Skipws std::ios_base::skipws |
| |
| #define | Left std::ios_base::left |
| |
| #define | Right std::ios_base::right |
| |
| #define | WHITESPACE " \f\n\r\t\v" |
| |
| #define | TEST(str, arg, width, flags, state, res, res_width, res_st, bthrow) |
| |
| #define | TEST1(str) |
| |
| #define | TEST2(str) |
| |
| #define | TEST3(arg, width, flags, res) |
| |
| #define | TEST(str, arg, width, flags, state, res, res_width, res_st, bthrow) |
| |
| #define | TEST1(str) |
| |
| #define | TEST2(str) |
| |
| #define | TEST3(arg, res) |
| |
| #define | TEST(str, arg, width, flags, state, res, res_width, res_st, bthrow) |
| |
| #define | TEST1(str) |
| |
| #define | TEST2(str) |
| |
| #define | TEST3(arg, delim, res) |
| |
| #define | TEST(str, arg, width, flags, state, res, res_width, res_st, bthrow) |
| |
| #define | TEST1(str) |
| |
| #define | TEST2(str, arg, width, flags, res, res_width, res_st) |
| |
| #define | TEST(gsig, sig) |
| |
◆ Bad
◆ Eof
◆ Fail
◆ Good
◆ Left
◆ NotGood
◆ Right
◆ Skipws
◆ TEST [1/5]
| #define TEST |
( |
|
gsig, |
|
|
|
sig |
|
) |
| |
Value: { \
gsig, sig ## _test_cases, \
sizeof sig ## _test_cases / sizeof *sig ## _test_cases \
}
◆ TEST [2/5]
| #define TEST |
( |
|
str, |
|
|
|
arg, |
|
|
|
width, |
|
|
|
flags, |
|
|
|
state, |
|
|
|
res, |
|
|
|
res_width, |
|
|
|
res_st, |
|
|
|
bthrow |
|
) |
| |
Value: { \
__LINE__, width,
flags, state, res_st, res_width, \
res,
sizeof (
res) - 1, bthrow \
}
◆ TEST [3/5]
| #define TEST |
( |
|
str, |
|
|
|
arg, |
|
|
|
width, |
|
|
|
flags, |
|
|
|
state, |
|
|
|
res, |
|
|
|
res_width, |
|
|
|
res_st, |
|
|
|
bthrow |
|
) |
| |
Value: { \
__LINE__, width,
flags, state, res_st, res_width, \
res,
sizeof (
res) - 1, bthrow \
}
◆ TEST [4/5]
| #define TEST |
( |
|
str, |
|
|
|
arg, |
|
|
|
width, |
|
|
|
flags, |
|
|
|
state, |
|
|
|
res, |
|
|
|
res_width, |
|
|
|
res_st, |
|
|
|
bthrow |
|
) |
| |
Value: { \
__LINE__, width,
flags, state, res_st, res_width, \
res,
sizeof (
res) - 1, bthrow \
}
◆ TEST [5/5]
| #define TEST |
( |
|
str, |
|
|
|
arg, |
|
|
|
width, |
|
|
|
flags, |
|
|
|
state, |
|
|
|
res, |
|
|
|
res_width, |
|
|
|
res_st, |
|
|
|
bthrow |
|
) |
| |
Value: { \
__LINE__, width,
flags, state, res_st, res_width, \
}
◆ TEST1 [1/4]
Value:
#define TEST(str, arg, width, flags, state, res, res_width, res_st, bthrow)
◆ TEST1 [2/4]
◆ TEST1 [3/4]
◆ TEST1 [4/4]
◆ TEST2 [1/4]
◆ TEST2 [2/4]
Value:
TEST (
str,
"\nabc\ndef", 3, 0,
Good,
"", 0,
Good, 0), \
◆ TEST2 [3/4]
Value:
TEST (
str,
"\tabc\ndef", 3, 0,
Good,
"",
'\t',
Good, 0), \
◆ TEST2 [4/4]
◆ TEST3 [1/3]
| #define TEST3 |
( |
|
arg, |
|
|
|
delim, |
|
|
|
res |
|
) |
| |
Value:
TEST (
"ab",
arg, 1, 0,
Good,
res, delim, -1, 0), \
TEST (
"<U0>",
arg, 3, 0,
Good,
res, delim, -1, 0), \
TEST (
"a<U0>@2b",
arg, 5, 0,
Good,
res, delim, -1, 0), \
TEST (
"a<U0>b<U0>@2c",
arg, 7, 0,
Good,
res, delim, -1, 0), \
TEST (
"x@4096",
arg, 9, 0,
Good,
res, delim, -1, 0), \
TEST (
"a<U0>b<U0>@2c",
arg, 17, 0,
NotGood,
res, delim, -1, 1), \
◆ TEST3 [2/3]
Value:
TEST (
"a<U0>@2b",
arg, 5, 0,
Good,
res, 0, -1, 0), \
TEST (
"a<U0>b<U0>@2c",
arg, 7, 0,
Good,
res, 0, -1, 0), \
TEST (
"x@4096",
arg, 9, 0,
Good,
res, 0, -1, 0), \
◆ TEST3 [3/3]
◆ WHITESPACE
| #define WHITESPACE " \f\n\r\t\v" |
◆ DEFINE_STRING_TEST_FUNCTIONS()
| DEFINE_STRING_TEST_FUNCTIONS |
( |
test_io |
| ) |
|
◆ main()
| int main |
( |
int |
argc, |
|
|
char ** |
argv |
|
) |
| |
◆ test_io()
◆ SYMB_THROW
| const char SYMB_THROW = '!' |