Changeset ca2feff
- Timestamp:
- Jan 4, 2024, 12:10:38 PM (12 months ago)
- Branches:
- master
- Children:
- 40002c5
- Parents:
- e7eb1f0
- Location:
- tests/io
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
tests/io/.expect/manipulatorsInput.arm64.txt
re7eb1f0 rca2feff 20 20 14 rc=1, cccc 21 21 15 rc=0, q 22 16 get this line 23 17 @# this line 1)-{} 24 18 abc 25 19 abc 26 20 d d 27 28 d 29 21 ZC44% 22 30 1 yyyyyyyyyyyyyyyyyyyy 23 31 2 abcxxx … … 35 43 14 cccc 36 44 15 45 16 get this line 46 17 @# this line 1)-{} 47 18 abc 48 19 abc 49 20 d d 50 51 d 52 21 ZC44% 37 53 a 38 54 a -
tests/io/.expect/manipulatorsInput.x64.txt
re7eb1f0 rca2feff 20 20 14 rc=1, cccc 21 21 15 rc=0, q 22 16 get this line 23 17 @# this line 1)-{} 24 18 abc 25 19 abc 26 20 d d 27 28 d 29 21 ZC44% 22 30 1 yyyyyyyyyyyyyyyyyyyy 23 31 2 abcxxx … … 35 43 14 cccc 36 44 15 45 16 get this line 46 17 @# this line 1)-{} 47 18 abc 48 19 abc 49 20 d d 50 51 d 52 21 ZC44% 37 53 a 38 54 a -
tests/io/.expect/manipulatorsInput.x86.txt
re7eb1f0 rca2feff 20 20 14 rc=1, cccc 21 21 15 rc=0, q 22 16 get this line 23 17 @# this line 1)-{} 24 18 abc 25 19 abc 26 20 d d 27 28 d 29 21 ZC44% 22 30 1 yyyyyyyyyyyyyyyyyyyy 23 31 2 abcxxx … … 35 43 14 cccc 36 44 15 45 16 get this line 46 17 @# this line 1)-{} 47 18 abc 48 19 abc 49 20 d d 50 51 d 52 21 ZC44% 37 53 a 38 54 a -
tests/io/.in/manipulatorsInput.txt
re7eb1f0 rca2feff 10 10 aaaaaaaaxxxxxxxxaabbccbbdddwwwbbbbbbbbwwwwwwwwaaaaaaaawwwwwwww 11 11 uuuuuccccuuuuu 12 get this line 13 @# this line 1)-{}% 14 "abc" 15 'abc ' 16 { d d 17 18 d } 19 X ZC44%Y 12 20 abc 13 21 cccccb … … 17 25 aaaaaaaaxxxxxxxxaabbccbbdddwwwbbbbbbbbwwwwwwwwaaaaaaaawwwwwwww 18 26 uuuuuccccuuuuu 27 get this line 28 @# this line 1)-{}% 29 "abc" 30 'abc ' 31 { d d 32 33 d } 34 X ZC44%Y 19 35 ab 20 36 0xff 017 15-15 -
tests/io/manipulatorsInput.cfa
re7eb1f0 rca2feff 7 7 // Created On : Sat Jun 8 17:58:54 2019 8 8 // Last Modified By : Peter A. Buhr 9 // Last Modified On : Sat Sep 2 14:27:46 202310 // Update Count : 659 // Last Modified On : Wed Jan 3 11:15:04 2024 10 // Update Count : 103 11 11 // 12 12 … … 77 77 s[0] = 'q'; s[1] = '\0'; rc = 99; 78 78 rc = scanf( "%[^u]", s ); printf( "15 rc=%d, %s\n", rc, s ); 79 scanf( "%*[u]" ); 80 scanf("\n"); 79 scanf( "%*[u]\n" ); 80 scanf( "%[^\n]\n", s ); printf( "16 %s\n", s ); 81 scanf( "%[^%%]%%\n", s ); printf( "17 %s\n", s ); 82 83 scanf( "%*[ \f\n\r\t\v]" ); // ignore whitespace 84 scanf( "\"%[^\"]\"", s ); printf( "18 %s\n", s ); 85 scanf( "%*[ \f\n\r\t\v]" ); // ignore whitespace 86 scanf( "'%[^']'", s ); printf( "19 %s\n", s ); 87 scanf( "%*[ \f\n\r\t\v]" ); // ignore whitespace 88 scanf( "{%[^}]}", s ); printf( "20 %s\n", s ); 89 scanf( "%*[ \f\n\r\t\v]" ); // ignore whitespace 90 scanf( "X%[^Y]Y", s ); printf( "21 %s\n", s ); 91 scanf( "\n" ); // must start next line 81 92 } 82 93 { … … 102 113 s[0] = 'q'; s[1] = '\0'; 103 114 sin | excl( "u", wdi( sizeof(s), s ) ); sout | "15" | s; 104 sin | skip( "u" ); 105 sin | "\n"; 106 } 107 /* Keep harmonized with collections/string-istream-manip */ 115 sin | skip( "u" ) | "\n"; 116 sin | getline( wdi( sizeof(s), s ) ); sout | "16" | s; 117 sin | getline( wdi( sizeof(s), s ), '%' ) | "\n"; sout | "17" | s; 118 119 sin | quoted( wdi( sizeof(s), s ) ); sout | "18" | s; 120 sin | quoted( wdi( sizeof(s), s ), '\'' ); sout | "19" | s; 121 sin | quoted( wdi( sizeof(s), s ), '{', '}' ); sout | "20" | s; 122 sin | quoted( wdi( sizeof(s), s ), 'X', 'Y' ); sout | "21" | s; 123 } 124 // Keep harmonized with collections/string-istream-manip 108 125 { 109 126 char c;
Note: See TracChangeset
for help on using the changeset viewer.