- for (iter = argv + 1; iter != end; iter++) {
- if (strcmp("-f", *iter) == 0 || !strcmp("--from-code", *iter)) {
- iter++;
- } else if (strcmp("-t", *iter) == 0 || !strcmp("--to-code", *iter)) {
- iter++;
- } else if (strcmp("-x", *iter) == 0) {
- iter++;
- } else if (!strcmp("--fallback", *iter)) {
- ;
- } else if (!strcmp("--no-fallback", *iter)) {
- ;
- } else if (strcmp("-b", *iter) == 0 || !strcmp("--block-size", *iter)) {
- iter++;
- } else if (strcmp("-l", *iter) == 0 || !strcmp("--list", *iter)) {
- ;
- } else if (strcmp("--default-code", *iter) == 0) {
- ;
- } else if (strcmp("--list-code", *iter) == 0) {
- ;
- } else if (strcmp("--canon", *iter) == 0) {
- ;
- } else if (strcmp("-L", *iter) == 0
- || !strcmp("--list-transliterators", *iter)) {
- ;
- } else if (strcmp("-h", *iter) == 0 || !strcmp("-?", *iter)
- || !strcmp("--help", *iter)) {
- ;
- } else if (!strcmp("-c", *iter)) {
- ;
- } else if (!strcmp("--to-callback", *iter)) {
- iter++;
- } else if (!strcmp("--from-callback", *iter)) {
- iter++;
- } else if (!strcmp("-i", *iter)) {
- ;
- } else if (!strcmp("--callback", *iter)) {
- iter++;
- } else if (!strcmp("-s", *iter) || !strcmp("--silent", *iter)) {
- ;
- } else if (!strcmp("-v", *iter) || !strcmp("--verbose", *iter)) {
- ;
- } else if (!strcmp("-V", *iter) || !strcmp("--version", *iter)) {
- ;
- } else if (!strcmp("-o", *iter) || !strcmp("--output", *iter)) {
- ++iter;
- } else {
- seenf = 1;
- if (!convertFile
- (pname, fromcpage, toucallback, touctxt, tocpage,
- fromucallback, fromuctxt, fallback, bufsz, translit, *iter,
- outfile, verbose)) {
+ cf.setBufferSize(bufsz);
+
+ if(remainArgv < remainArgvLimit) {
+ for (iter = remainArgv; iter != remainArgvLimit; iter++) {
+ if (!cf.convertFile(
+ pname, fromcpage, toucallback, touctxt, tocpage,
+ fromucallback, fromuctxt, fallback, translit, *iter,
+ outfile, verbose)
+ ) {