File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed
libcxx/test/std/input.output/iostream.format/input.streams/istream.unformatted Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change 22
22
23
23
int main (int , char **) {
24
24
std::istringstream in (" \xF0\x9F\xA4\xA1 Clown Face" );
25
- in.ignore (100 , ' \xA1 ' ); // ignore up to '\xA1' delimiter,
26
- // previously might have ignored to EOF
25
+ in.ignore (100 , ' \xA1 ' ); // Ignore up to '\xA1' delimiter,
26
+ // previously might have ignored to EOF.
27
27
28
- assert (in.gcount () == 4 ); // 4 bytes were ignored
29
- assert (in.peek () == ' ' ); // next character is a space
28
+ assert (in.gcount () == 4 ); // 4 bytes were ignored.
29
+ assert (in.peek () == ' ' ); // Next character is a space.
30
30
31
- std::string str; // read the next word
31
+ std::string str; // Read the next word.
32
32
in >> str;
33
33
assert (str == " Clown" );
34
34
35
35
// Parameter value "-1L" doesn't cause ambiguity with the char_type overload.
36
- in.ignore (100 , -1L ); // ignore up to EOF, which is the default behavior
37
- assert (in.eof ()); // stream should be at EOF now
36
+ in.ignore (100 , -1L ); // Ignore up to EOF, which is the default behavior.
37
+ assert (in.eof ()); // Stream should be at EOF now.
38
38
assert (in.gcount () == 5 );
39
39
40
40
return 0 ;
You can’t perform that action at this time.
0 commit comments