adding english version
git-svn-id: https://russianmorphology.googlecode.com/svn/trunk@57 d817d54c-26ab-11de-abc9-2f7d1455ff7a
This commit is contained in:
@ -106,6 +106,15 @@ public class RussianLetterDecoderEncoder implements LetterDecoderEncoder {
|
||||
return false;
|
||||
}
|
||||
|
||||
public boolean checkString(String word) {
|
||||
for (int i = 0; i < word.length(); i++) {
|
||||
if (!checkCharacter(word.charAt(i))) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
public String cleanString(String s) {
|
||||
return s.replace((char) (34 + RussianLetterDecoderEncoder.RUSSIAN_SMALL_LETTER_OFFSET), (char) (6 + RussianLetterDecoderEncoder.RUSSIAN_SMALL_LETTER_OFFSET));
|
||||
}
|
||||
|
Reference in New Issue
Block a user