Lines Matching refs:error
100 void error(const std::string& err) in error() function
135 error("expected CODEPAGE, got \"" + token + "\" instead"); in main()
142 error(ia.what()); in main()
146 error("Garbage after CODEPAGE statement: \"" + curr_line + "\""); in main()
150 error("Nothing after CODEPAGE statement"); in main()
154 error("Expected CPINFO, got \"" + token + "\" instead"); in main()
163 error(ia.what()); in main()
167 error("Garbage after CPINFO statement: \"" + curr_line + "\""); in main()
169 …error("Expected 1 or 2 as max char size in CPINFO, got \"" + std::to_string(FileHeader.MaximumChar… in main()
171 …error("Default MB character " + std::to_string(FileHeader.DefaultChar) + " doesn't fit in a 8-bit … in main()
206 error("Garbage after ENDCODEPAGE statement: \"" + curr_line + "\""); in main()
218 error(ia.what()); in main()
221 error("MBTABLE can only be declared once"); in main()
223 error("MBTABLE size can't be larger than 256"); in main()
225 error("Garbage after MBTABLE statement: \"" + curr_line + "\""); in main()
231 … error("Expected " + std::to_string(table_size + 1) + " more lines after MBTABLE token"); in main()
243 error(ia.what()); in main()
246 error("Garbage after MBTABLE entry: \"" + curr_line + "\""); in main()
259 error(ia.what()); in main()
262 error("WCTABLE can only be declared once"); in main()
264 error("Garbage after WCTABLE statement: \"" + curr_line + "\""); in main()
266 error("WCTABLE size can't be larger than 65536"); in main()
275 … error("Expected " + std::to_string(table_size + 1) + " more lines after WCTABLE token"); in main()
287 error(ia.what()); in main()
290 error("Garbage after WCTABLE entry: \"" + curr_line + "\""); in main()
300 … error("Expected " + std::to_string(table_size + 1) + " more lines after WCTABLE token"); in main()
311 error(ia.what()); in main()
314 error("Garbage after MBTABLE entry: \"" + curr_line + "\""); in main()
322 error("DBCSRANGE can only be declared once"); in main()
330 error(ia.what()); in main()
333 error("DBCSRANGE count can't exceed " + std::to_string(MAXIMUM_LEADBYTES / 2)); in main()
335 error("Garbage after DBCSRANGE token"); in main()
344 error("Expected new range after DBCSRANGE"); in main()
354 error(ia.what()); in main()
357 error("Garbage after DBCS range declaration"); in main()
360 error("Invalid range specified for DBCSRANGE"); in main()
371 error("Expected new DBCSTABLE after DBCS range declaration"); in main()
375 error("Expected new DBCSTABLE after DBCS range declaration"); in main()
384 error(ia.what()); in main()
387 error("DBCSTABLE can't have more than 256 entries"); in main()
391 … error("Expected " + std::to_string(table_size + 1) + " more lines after DBCSTABLE token"); in main()
403 error(ia.what()); in main()
406 error("Garbage after DBCSTABLE entry: \"" + curr_line + "\""); in main()
425 error(ia.what()); in main()
428 error("GLYPHTABLE can only be declared once"); in main()
430 error("GLYPHTABLE size can't be larger than 256"); in main()
432 error("Garbage after GLYPHTABLE statement: \"" + curr_line + "\""); in main()
438 … error("Expected " + std::to_string(table_size + 1) + " more lines after GLYPHTABLE token"); in main()
450 error(ia.what()); in main()
453 error("Garbage after GLYPHTABLE entry: \"" + curr_line + "\""); in main()
459 error("Unexpected token \"" + token + "\""); in main()
464 error("Expected last token to be \"ENDCODEPAGE\""); in main()
470 error("File has no MBTABLE statement"); in main()
472 error("File has no WCTABLE statement"); in main()
496 error("Default MB char is not translatable!"); in main()