- Timestamp:
- Jan 25, 2024, 8:58:44 AM (11 months ago)
- Branches:
- master
- Children:
- 68cf1d4, 8ca60e4
- Parents:
- 64c4b4d
- Location:
- tests/io
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
tests/io/.expect/manipulatorsInput.x64.txt
r64c4b4d r5764204 22 22 16 get this line 23 23 17 @# this line 1)-{} 24 18 abc 25 19 abc 26 20 d d 24 18 @# this line 1)-{} 25 19 abc 26 20 abc 27 21 d d 27 28 28 29 d 29 21 ZC44% 30 22 ZC44% 31 23 ZC44% 30 32 1 yyyyyyyyyyyyyyyyyyyy 31 33 2 abcxxx … … 45 47 16 get this line 46 48 17 @# this line 1)-{} 47 18 abc 48 19 abc 49 20 d d 49 18 @# this line 1)-{} 50 19 abc 51 20 abc 52 21 d d 50 53 51 54 d 52 21 ZC44% 55 22 ZC44% 56 23 ZC44% 53 57 a 54 58 a -
tests/io/.in/manipulatorsInput.txt
r64c4b4d r5764204 12 12 get this line 13 13 @# this line 1)-{}% 14 @# this line 2)-{}% 14 15 "abc" 15 16 'abc ' … … 18 19 d } 19 20 X ZC44%Y 21 X ZC55%Y 20 22 abc 21 23 cccccb … … 27 29 get this line 28 30 @# this line 1)-{}% 31 @# this line 2)-{}% 29 32 "abc" 30 33 'abc ' … … 33 36 d } 34 37 X ZC44%Y 38 X ZC55%Y 35 39 ab 36 40 0xff 017 15-15 -
tests/io/manipulatorsInput.cfa
r64c4b4d r5764204 7 7 // Created On : Sat Jun 8 17:58:54 2019 8 8 // Last Modified By : Peter A. Buhr 9 // Last Modified On : Wed Jan 3 11:15:04202410 // Update Count : 10 39 // Last Modified On : Wed Jan 24 18:36:32 2024 10 // Update Count : 104 11 11 // 12 12 … … 81 81 scanf( "%[^\n]\n", s ); printf( "16 %s\n", s ); // |get this line\n| 82 82 scanf( "%[^%%]%%\n", s ); printf( "17 %s\n", s ); // |@# this line 1)-{}%\n| 83 scanf( "%*[^%%]%%\n", s ); printf( "18 %s\n", s ); // |@# this line 1)-{}%\n| 83 84 84 85 scanf( "%*[ \f\n\r\t\v]" ); // ignore whitespace // || 85 scanf( "\"%[^\"]\"", s ); printf( "18 %s\n", s ); // |"abc"| 86 scanf( "%*[ \f\n\r\t\v]" ); // ignore whitespace // |\n| 87 scanf( "'%[^']'", s ); printf( "19 %s\n", s ); // |'abc '| 88 scanf( "%*[ \f\n\r\t\v]" ); // ignore whitespace // |\n| 89 scanf( "{%[^}]}", s ); printf( "20 %s\n", s ); // |{ d d\n\nd }| 90 scanf( "%*[ \f\n\r\t\v]" ); // ignore whitespace // |\n| 91 scanf( "X%[^Y]Y", s ); printf( "21 %s\n", s ); // |X ZC44%Y| 86 scanf( "\"%[^\"]\"", s ); printf( "19 %s\n", s ); // |"abc"| 87 scanf( "%*[ \f\n\r\t\v]" ); // ignore whitespace // |\n| 88 scanf( "'%[^']'", s ); printf( "20 %s\n", s ); // |'abc '| 89 scanf( "%*[ \f\n\r\t\v]" ); // ignore whitespace // |\n| 90 scanf( "{%[^}]}", s ); printf( "21 %s\n", s ); // |{ d d\n\nd }| 91 scanf( "%*[ \f\n\r\t\v]" ); // ignore whitespace // |\n| 92 scanf( "X%[^Y]Y", s ); printf( "22 %s\n", s ); // |X ZC44%Y| 93 scanf( "%*[ \f\n\r\t\v]" ); // ignore whitespace // |\n| 94 scanf( "X%*[^Y]Y", s ); printf( "23 %s\n", s ); // |X ZC44%Y| 92 95 scanf( "\n" ); // must start next line // |\n| 93 96 } … … 118 121 sin | getline( wdi( sizeof(s), s ) ); sout | "16" | s; 119 122 sin | getline( wdi( sizeof(s), s ), '%' ) | "\n"; sout | "17" | s; 120 121 sin | quoted( wdi( sizeof(s), s ) ); sout | "18" | s; 122 sin | quoted( wdi( sizeof(s), s ), '\'' ); sout | "19" | s; 123 sin | quoted( wdi( sizeof(s), s ), '{', '}' ); sout | "20" | s; 124 sin | quoted( wdi( sizeof(s), s ), 'X', 'Y' ); sout | "21" | s; 123 sin | ignore( getline( wdi( sizeof(s), s ), '%' ) ) | "\n"; sout | "18" | s; 124 125 sin | quoted( wdi( sizeof(s), s ) ); sout | "19" | s; 126 sin | quoted( wdi( sizeof(s), s ), '\'' ); sout | "20" | s; 127 sin | quoted( wdi( sizeof(s), s ), '{', '}' ); sout | "21" | s; 128 sin | quoted( wdi( sizeof(s), s ), 'X', 'Y' ); sout | "22" | s; 129 sin | ignore( quoted( wdi( sizeof(s), s ), 'X', 'Y' ) ); sout | "23" | s; 125 130 } 126 131 // Keep harmonized with collections/string-istream-manip
Note: See TracChangeset
for help on using the changeset viewer.