summaryrefslogtreecommitdiff
path: root/android/PhoneticStringUtilsTest.cpp
diff options
context:
space:
mode:
authorDaisuke Miyakawa <dmiyakawa@google.com>2009-07-09 23:55:27 -0700
committerThe Android Open Source Project <initial-contribution@android.com>2009-07-09 23:55:27 -0700
commitf86962094fddc13792dc45fd95c218eb9b86579b (patch)
tree8204044ff40c22a58665644e070c7e52e63315df /android/PhoneticStringUtilsTest.cpp
parentfa6825c21fed45dab7661bc2eee8c8e2fbca09c9 (diff)
parent441321a8431b4b66fa61d6deb443e7927e69fdbd (diff)
am 441321a8: Make sim-ang not corrupt when building PhoneticUtilsTest.cpp You can double-check by doing this: > make libsqlite3_phone_number_utils_test
Merge commit '441321a8431b4b66fa61d6deb443e7927e69fdbd' * commit '441321a8431b4b66fa61d6deb443e7927e69fdbd': Make sim-ang not corrupt when building PhoneticUtilsTest.cpp
Diffstat (limited to 'android/PhoneticStringUtilsTest.cpp')
-rw-r--r--android/PhoneticStringUtilsTest.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/android/PhoneticStringUtilsTest.cpp b/android/PhoneticStringUtilsTest.cpp
index 5665fb9..a79af1e 100644
--- a/android/PhoneticStringUtilsTest.cpp
+++ b/android/PhoneticStringUtilsTest.cpp
@@ -128,7 +128,8 @@ void TestExecutor::testGetPhoneticallySortableCodePointAscii() {
printf("testGetPhoneticallySortableCodePoint()\n");
int halfwidth[94];
int fullwidth[94];
- int i, codepoint;
+ int i;
+ char32_t codepoint;
bool next_is_consumed;
for (i = 0, codepoint = 0x0021; codepoint <= 0x007E; ++i, ++codepoint) {
halfwidth[i] = GetPhoneticallySortableCodePoint(codepoint, -1,
@@ -168,7 +169,8 @@ void TestExecutor::testGetPhoneticallySortableCodePointKana() {
printf("testGetPhoneticallySortableCodePointKana()\n");
int hiragana[86];
int fullwidth_katakana[86];
- int i, codepoint;
+ int i;
+ char32_t codepoint;
bool next_is_consumed;
for (i = 0, codepoint = 0x3041; codepoint <= 0x3096; ++i, ++codepoint) {
@@ -259,7 +261,7 @@ void TestExecutor::testGetPhoneticallySortableCodePointWhitespaceOnly() {
void TestExecutor::testGetPhoneticallySortableCodePointSimpleCompare() {
printf("testGetPhoneticallySortableCodePointSimpleCompare()\n");
- int codepoints[] = {
+ char32_t codepoints[] = {
0x3042, 0x30AB, 0xFF7B, 0x305F, 0x30CA, 0xFF8A, 0x30D0, 0x3071,
0x307E, 0x30E4, 0xFF97, 0x308F, 0x3093, 0x3094, 'A', 'Z',
'0', '9', '!', '/', ':', '?', '[', '`', '{', '~'};