| 553 | } |
| 554 | |
| 555 | static void _store_text_db(const string &in, DBM *db) |
| 556 | { |
| 557 | UTF8FileLineInput inf(in.c_str()); |
| 558 | if (inf.error()) |
| 559 | end(1, true, "Unable to open input file: %s", in.c_str()); |
| 560 | |
| 561 | _parse_text_db(inf, db); |
| 562 | } |
| 563 | |
| 564 | static string _chooseStrByWeight(const string &entry, int fixed_weight = -1) |
| 565 | { |
no test coverage detected