|
Ne.app NeANT
The Ne.app NeANT User module of the NeANT distribution.
|
#include <istream>#include <sstream>#include <rw_driver.h>#include <rw_char.h>#include <rw_printf.h>
Go to the source code of this file.
Data Structures | |
| struct | Streambuf< charT, Traits > |
Macros | |
| #define | TEST(CharT, Traits) test_readsome ((CharT*)0, (Traits*)0, #CharT, #Traits) |
Functions | |
| void | memfun_info (int line, const char *cname, const char *tname) |
| template<class charT , class Traits > | |
| void | test_readsome (const charT *cbuf, const Traits *, unsigned cbuf_size, unsigned i, unsigned j, unsigned k, int l, unsigned m) |
| template<class charT , class Traits > | |
| void | test_readsome (const charT *, const Traits *, const char *cname, const char *tname) |
| int | main (int argc, char *argv[]) |
Variables | |
| const std::ios_base::iostate | states [] |
| const unsigned | nstates = sizeof states / sizeof *states |
| int main | ( | int | argc, |
| char * | argv[] | ||
| ) |
Definition at line 461 of file 27.istream.readsome.cpp.
| void memfun_info | ( | int | line, |
| const char * | cname, | ||
| const char * | tname | ||
| ) |
27.6.1.3, p30 and 31
streamsize readsome (char_type* s, streamsize n);
-30- Effects: If !good() calls setstate(failbit) which may throw an exception, and return. Otherwise extracts characters and stores them into successive locations of an array whose first element is designated by s. – If rdbuf()>in_avail() == 1, calls setstate(eofbit) (which may throw ios_base::failure (27.4.4.3)), and extracts no characters; – If rdbuf()>in_avail() == 0, extracts no characters – If rdbuf()>in_avail() > 0, extracts min(rdbuf()>in_avail(), n)). -31- Returns: The number of characters extracted.
Definition at line 137 of file 27.istream.readsome.cpp.
Definition at line 367 of file 27.istream.readsome.cpp.
| void test_readsome | ( | const charT * | cbuf, |
| const Traits * | , | ||
| unsigned | cbuf_size, | ||
| unsigned | i, | ||
| unsigned | j, | ||
| unsigned | k, | ||
| int | l, | ||
| unsigned | m | ||
| ) |
Definition at line 171 of file 27.istream.readsome.cpp.
|
extern |