diff options
author | Philipp Reh <sefi@s-e-f-i.de> | 2009-02-20 19:09:43 +0100 |
---|---|---|
committer | Philipp Reh <sefi@s-e-f-i.de> | 2009-02-20 19:09:43 +0100 |
commit | b3e0951a06abb632af2351ba6f1e19e2cc2d7363 (patch) | |
tree | e2de31fe2b54b47d805452bf20329e6d6bd778e0 | |
parent | 40136bff9950f50c35bcceff9998905485e17e74 (diff) |
Warn about placeholders at the beginning.
-rw-r--r-- | kana2romaji.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
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()) |