diff options
author | 2013-04-16 04:45:26 -0700 | |
---|---|---|
committer | 2013-04-16 04:45:26 -0700 | |
commit | 880cb6187cfe4ec6632bc2d19d70411210818bc9 (patch) | |
tree | 3ff8847f7169f9df96e993b6b937ad526ccef2c0 /native/jni/src/digraph_utils.cpp | |
parent | ef83a2eb585f1115bebbc75810578989f8cdad93 (diff) | |
parent | 3970352ea907cbea63e342f370bb0bbb9cc7335a (diff) | |
download | latinime-880cb6187cfe4ec6632bc2d19d70411210818bc9.tar.gz latinime-880cb6187cfe4ec6632bc2d19d70411210818bc9.tar.xz latinime-880cb6187cfe4ec6632bc2d19d70411210818bc9.zip |
am 3970352e: Make digraph lookups case insensitive
* commit '3970352ea907cbea63e342f370bb0bbb9cc7335a':
Make digraph lookups case insensitive
Diffstat (limited to 'native/jni/src/digraph_utils.cpp')
-rw-r--r-- | native/jni/src/digraph_utils.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/native/jni/src/digraph_utils.cpp b/native/jni/src/digraph_utils.cpp index 6a1ab0271..083442669 100644 --- a/native/jni/src/digraph_utils.cpp +++ b/native/jni/src/digraph_utils.cpp @@ -14,6 +14,7 @@ * limitations under the License. */ +#include "char_utils.h" #include "binary_format.h" #include "defines.h" #include "digraph_utils.h" @@ -120,10 +121,11 @@ const DigraphUtils::DigraphType DigraphUtils::USED_DIGRAPH_TYPES[] = /* static */ const DigraphUtils::digraph_t *DigraphUtils::getDigraphForDigraphTypeAndCodePoint( const DigraphUtils::DigraphType digraphType, const int compositeGlyphCodePoint) { const DigraphUtils::digraph_t *digraphs = 0; + const int compositeGlyphLowerCodePoint = toLowerCase(compositeGlyphCodePoint); const int digraphsSize = DigraphUtils::getAllDigraphsForDictionaryAndReturnSize(digraphType, &digraphs); for (int i = 0; i < digraphsSize; i++) { - if (digraphs[i].compositeGlyph == compositeGlyphCodePoint) { + if (digraphs[i].compositeGlyph == compositeGlyphLowerCodePoint) { return &digraphs[i]; } } |