projects
/
jmdict-cli.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
40136bf
)
Warn about placeholders at the beginning.
author
Philipp Reh
<sefi@s-e-f-i.de>
Fri, 20 Feb 2009 18:09:43 +0000
(19:09 +0100)
committer
Philipp Reh
<sefi@s-e-f-i.de>
Fri, 20 Feb 2009 18:09:43 +0000
(19:09 +0100)
kana2romaji.cpp
patch
|
blob
|
history
diff --git
a/kana2romaji.cpp
b/kana2romaji.cpp
index 99591ebdbb1de530f2f72356710ddc668d6805ca..f596be4ec8c31e2e9b18010e42e50b2fa8b1eaec 100644
(file)
--- 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())