47
47
StampTwoChars stamp;
48
48
GalleyVectorStr galley (stamp);
49
49
Blob blob (short_sample, strlen (short_sample));
50
- std::vector<std::string> res = galley.ExtractStr (blob);
50
+ std::vector<std::string> res = galley.ExtractStrVector (blob);
51
51
52
52
is (res[0 ], expected1, " GalleyVector, fixed size string stamp: First element of shifted list is ok" );
53
53
is (res[1 ], expected2, " GalleyVector, fixed size string stamp: Second element of shifted list is ok" );
68
68
StampTwoCharsList stamp_charlist;
69
69
GalleyVectorStr galley (stamp_charlist);
70
70
71
- std::vector<std::string> res = galley.ExtractStr (blob);
71
+ std::vector<std::string> res = galley.ExtractStrVector (blob);
72
72
std::string str;
73
73
74
74
is (res[0 ], expected1, " GalleyVector, unlimited size string stamp: First element of shifted list is ok" );
87
87
StampArithm<unsigned short int > stamp;
88
88
GalleyVectorBin galley (stamp);
89
89
Blob blob (short_sample, strlen (short_sample));
90
- std::vector<std::vector<char >> res = galley.ExtractBin (blob);
90
+ std::vector<std::vector<char >> res = galley.ExtractBinVector (blob);
91
91
92
92
std::vector<char > v;
93
93
unsigned short int * data;
@@ -113,7 +113,7 @@ main()
113
113
StampArithm<signed int > stamp;
114
114
GalleyVectorV<signed int > galley (stamp);
115
115
Blob blob ((char *)sample, sizeof (sample));
116
- std::vector<signed int > res = galley.ExtractValues (blob);
116
+ std::vector<signed int > res = galley.ExtractValuesVector (blob);
117
117
ok (!memcmp ((void *) &sample, (void *) &res[0 ], sizeof (sample)), " GalleyVectorV returns ok" );
118
118
}
119
119
@@ -133,7 +133,7 @@ main()
133
133
StampSeveralChars stamp;
134
134
GalleyVectorStr galley (stamp);
135
135
136
- std::vector<std::string> res = galley.ExtractStr (blob);
136
+ std::vector<std::string> res = galley.ExtractStrVector (blob);
137
137
std::string str;
138
138
139
139
is (res[0 ], expected1, " GalleyVector, unlimited size string stamp: First element of shifted list is ok" );
@@ -163,7 +163,7 @@ main()
163
163
164
164
GalleySetStr galley (stamps);
165
165
166
- std::vector<std::string> res = galley.ExtractStr (blob);
166
+ std::vector<std::string> res = galley.ExtractStrSet (blob);
167
167
std::string str;
168
168
str = res[0 ];
169
169
is (str, expected1, " GalleySet, fixed size string stamps: First element of vector is ok" );
@@ -196,7 +196,7 @@ main()
196
196
197
197
GalleySetStr galley (stamps);
198
198
199
- std::vector<std::string> res = galley.ExtractStr (blob);
199
+ std::vector<std::string> res = galley.ExtractStrSet (blob);
200
200
std::string str;
201
201
202
202
str = res[0 ];
@@ -230,7 +230,7 @@ main()
230
230
231
231
GalleySetStr galley (stamps);
232
232
233
- std::vector<std::string> res = galley.ExtractStr (blob);
233
+ std::vector<std::string> res = galley.ExtractStrSet (blob);
234
234
std::string str;
235
235
236
236
is (res[0 ], expected1, " GalleySet, unbounded size string stamp: First element of vector is ok" );
@@ -275,7 +275,7 @@ main()
275
275
276
276
GalleySetStr galley (stamps);
277
277
278
- std::vector<std::string> res = galley.ExtractStr (blob);
278
+ std::vector<std::string> res = galley.ExtractStrSet (blob);
279
279
std::string str;
280
280
281
281
str = res[0 ];
@@ -326,7 +326,7 @@ main()
326
326
327
327
GalleySetStr galley (stamps);
328
328
329
- std::vector<std::string> res = galley.ExtractStr (blob);
329
+ std::vector<std::string> res = galley.ExtractStrSet (blob);
330
330
std::string str;
331
331
332
332
str = res[0 ];
@@ -374,7 +374,7 @@ main()
374
374
375
375
GalleySetStr galley (stamps);
376
376
377
- std::vector<std::string> res = galley.ExtractStr (blob);
377
+ std::vector<std::string> res = galley.ExtractStrSet (blob);
378
378
std::string str;
379
379
380
380
str = res[0 ];
@@ -424,7 +424,7 @@ main()
424
424
425
425
GalleySetStr galley (stamps);
426
426
try {
427
- std::vector<std::string> res = galley.ExtractStr (blob);
427
+ std::vector<std::string> res = galley.ExtractStrSet (blob);
428
428
ok (false , " GalleySet, not enough data" );
429
429
}
430
430
catch (OutOfData)
0 commit comments