diff options
Diffstat (limited to 'src/translator_fa.h')
-rw-r--r-- | src/translator_fa.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/translator_fa.h b/src/translator_fa.h index 6459d8d..e385d79 100644 --- a/src/translator_fa.h +++ b/src/translator_fa.h @@ -50,10 +50,10 @@ class TranslatorPersian : public TranslatorAdapter_1_7_5 const char * PersianDigits[] = { "۰", "۱", "۲", "۳", "۴", "۵", "۶", "۷", "۸", "۹" }; for(unsigned i=0; i<str.length(); i++) { - if (str[i] >= '0' && str[i] <= '9') - output += PersianDigits[ str[i] - '0' ]; + if (str.at(i) >= '0' && str.at(i) <= '9') + output += PersianDigits[ str.at(i) - '0' ]; else - output += str[i]; + output += str.at(i); } return output; |