diff options
Diffstat (limited to 'i18npool')
-rw-r--r-- | i18npool/source/breakiterator/xdictionary.cxx | 2 | ||||
-rw-r--r-- | i18npool/source/characterclassification/cclass_unicode.cxx | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/i18npool/source/breakiterator/xdictionary.cxx b/i18npool/source/breakiterator/xdictionary.cxx index ec9f63097b78..142ec98e7364 100644 --- a/i18npool/source/breakiterator/xdictionary.cxx +++ b/i18npool/source/breakiterator/xdictionary.cxx @@ -361,7 +361,7 @@ WordBreakCache& xdictionary::getCache(const sal_Unicode *text, Boundary& wordBou sal_Int32 i = 0; // loop variable while (rCache.wordboundary[i] < rCache.length) { len = 0; - // look the continuous white space as one word and cashe it + // look the continuous white space as one word and cache it while (u_isWhitespace((sal_uInt32)text[wordBoundary.startPos + rCache.wordboundary[i] + len])) len ++; diff --git a/i18npool/source/characterclassification/cclass_unicode.cxx b/i18npool/source/characterclassification/cclass_unicode.cxx index da317a84237d..495cd2139a79 100644 --- a/i18npool/source/characterclassification/cclass_unicode.cxx +++ b/i18npool/source/characterclassification/cclass_unicode.cxx @@ -134,7 +134,7 @@ cclass_Unicode::getCharacterDirection( const OUString& Text, sal_Int32 nPos ) th sal_Int16 SAL_CALL cclass_Unicode::getScript( const OUString& Text, sal_Int32 nPos ) throw(RuntimeException, std::exception) { if ( nPos < 0 || Text.getLength() <= nPos ) return 0; - // ICU Unicode script type UBlockCode starts from 1 for Basci Latin, + // ICU Unicode script type UBlockCode starts from 1 for Basic Latin, // while OO.o enum UnicideScript starts from 0. // To map ICU UBlockCode to OO.o UnicodeScript, it needs to shift 1. return (sal_Int16) ublock_getCode(Text.iterateCodePoints(&nPos, 0))-1; |