Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
LatinIME
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
keyboard
LatinIME
Commits
edbf6b72
Commit
edbf6b72
authored
12 years ago
by
Tom Ouyang
Committed by
Android (Google) Code Review
12 years ago
Browse files
Options
Downloads
Plain Diff
Merge "Fix lower case conversion bug for some characters" into jb-mr1-dev
parents
270c0dec
edd5b736
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
native/jni/src/char_utils.cpp
+2
-0
2 additions, 0 deletions
native/jni/src/char_utils.cpp
native/jni/src/char_utils.h
+3
-1
3 additions, 1 deletion
native/jni/src/char_utils.h
with
5 additions
and
1 deletion
native/jni/src/char_utils.cpp
+
2
−
0
View file @
edbf6b72
...
...
@@ -88,6 +88,7 @@ static const struct LatinCapitalSmallPair SORTED_CHAR_MAP[] = {
{
0x00C5
,
0x00E5
},
// LATIN CAPITAL LETTER A WITH RING ABOVE
{
0x00C6
,
0x00E6
},
// LATIN CAPITAL LETTER AE
{
0x00D0
,
0x00F0
},
// LATIN CAPITAL LETTER ETH
{
0x00D1
,
0x00F1
},
// LATIN CAPITAL LETTER N WITH TILDE
{
0x00D5
,
0x00F5
},
// LATIN CAPITAL LETTER O WITH TILDE
{
0x00D6
,
0x00F6
},
// LATIN CAPITAL LETTER O WITH DIAERESIS
{
0x00D8
,
0x00F8
},
// LATIN CAPITAL LETTER O WITH STROKE
...
...
@@ -219,6 +220,7 @@ static const struct LatinCapitalSmallPair SORTED_CHAR_MAP[] = {
{
0x0416
,
0x0436
},
// CYRILLIC CAPITAL LETTER ZHE
{
0x0417
,
0x0437
},
// CYRILLIC CAPITAL LETTER ZE
{
0x0418
,
0x0438
},
// CYRILLIC CAPITAL LETTER I
{
0x0419
,
0x0439
},
// CYRILLIC CAPITAL LETTER SHORT I
{
0x041A
,
0x043A
},
// CYRILLIC CAPITAL LETTER KA
{
0x041B
,
0x043B
},
// CYRILLIC CAPITAL LETTER EL
{
0x041C
,
0x043C
},
// CYRILLIC CAPITAL LETTER EM
...
...
This diff is collapsed.
Click to expand it.
native/jni/src/char_utils.h
+
3
−
1
View file @
edbf6b72
...
...
@@ -23,7 +23,9 @@
namespace
latinime
{
inline
static
bool
isAsciiUpper
(
unsigned
short
c
)
{
return
isupper
(
static_cast
<
int
>
(
c
))
!=
0
;
// Note: isupper(...) reports false positives for some Cyrillic characters, causing them to
// be incorrectly lower-cased using toAsciiLower(...) rather than latin_tolower(...).
return
(
c
>=
'A'
&&
c
<=
'Z'
);
}
inline
static
unsigned
short
toAsciiLower
(
unsigned
short
c
)
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment