Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
platform_packages_inputmethods_LatinIME
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
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
LMODroid
platform_packages_inputmethods_LatinIME
Commits
6565106e
Commit
6565106e
authored
9 months ago
by
Elliott Hughes
Browse files
Options
Downloads
Patches
Plain Diff
Use the global default cpp_std.
Bug:
http://b/344590580
Change-Id: Icf1f9f5559596097e156aa9f1673a438741379b3
parent
974aaeb8
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/dicttoolkit/Android.bp
+0
-1
0 additions, 1 deletion
native/dicttoolkit/Android.bp
native/dicttoolkit/tests/utils/utf8_utils_test.cpp
+3
-3
3 additions, 3 deletions
native/dicttoolkit/tests/utils/utf8_utils_test.cpp
with
3 additions
and
4 deletions
native/dicttoolkit/Android.bp
+
0
−
1
View file @
6565106e
...
...
@@ -24,7 +24,6 @@ package {
cc_defaults {
name: "dicttoolkit_defaults",
cpp_std: "gnu++17",
cflags: [
"-Werror",
"-Wall",
...
...
This diff is collapsed.
Click to expand it.
native/dicttoolkit/tests/utils/utf8_utils_test.cpp
+
3
−
3
View file @
6565106e
...
...
@@ -40,7 +40,7 @@ TEST(Utf8UtilsTests, TestGetCodePoints) {
EXPECT_EQ
(
't'
,
codePoints
[
3
]);
}
{
const
std
::
vector
<
int
>
codePoints
=
Utf8Utils
::
getCodePoints
(
u8
"\u3042a\u03C2\u0410"
);
const
std
::
vector
<
int
>
codePoints
=
Utf8Utils
::
getCodePoints
(
"\u3042a\u03C2\u0410"
);
EXPECT_EQ
(
4u
,
codePoints
.
size
());
EXPECT_EQ
(
0x3042
,
codePoints
[
0
]);
// HIRAGANA LETTER A
EXPECT_EQ
(
'a'
,
codePoints
[
1
]);
...
...
@@ -48,7 +48,7 @@ TEST(Utf8UtilsTests, TestGetCodePoints) {
EXPECT_EQ
(
0x0410
,
codePoints
[
3
]);
// GREEK SMALL LETTER FINAL SIGMA
}
{
const
std
::
vector
<
int
>
codePoints
=
Utf8Utils
::
getCodePoints
(
u8
"\U0001F36A?\U0001F752"
);
const
std
::
vector
<
int
>
codePoints
=
Utf8Utils
::
getCodePoints
(
"\U0001F36A?\U0001F752"
);
EXPECT_EQ
(
3u
,
codePoints
.
size
());
EXPECT_EQ
(
0x1F36A
,
codePoints
[
0
]);
// COOKIE
EXPECT_EQ
(
'?'
,
codePoints
[
1
]);
...
...
@@ -75,7 +75,7 @@ TEST(Utf8UtilsTests, TestGetUtf8String) {
0x1F36A
/* COOKIE */
,
0x1F752
/* ALCHEMICAL SYMBOL FOR STARRED TRIDENT */
};
EXPECT_EQ
(
u8
"\u00E0\u03C2\u0430\u3042\U0001F36A\U0001F752"
,
EXPECT_EQ
(
"\u00E0\u03C2\u0430\u3042\U0001F36A\U0001F752"
,
Utf8Utils
::
getUtf8String
(
CodePointArrayView
(
codePoints
)));
}
}
...
...
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