From: Philipp Reh Date: Fri, 20 Feb 2009 18:09:43 +0000 (+0100) Subject: Warn about placeholders at the beginning. X-Git-Url: https://git.enpas.org/?p=jmdict-cli.git;a=commitdiff_plain;h=b3e0951a06abb632af2351ba6f1e19e2cc2d7363 Warn about placeholders at the beginning. --- diff --git a/kana2romaji.cpp b/kana2romaji.cpp index 99591eb..f596be4 100644 --- a/kana2romaji.cpp +++ b/kana2romaji.cpp @@ -414,6 +414,11 @@ void kana2romaji(const string& kana, string& rom) { continue; } } + else + { + cout << "Encountered a placeholder at the beginning. Just removing it." << endl; + rom.erase(pos); + } } // FIXME! else if (rom[pos] == '\2' && pos + 1 < rom.size())