summaryrefslogtreecommitdiff
path: root/android/PhoneticStringUtilsTest.cpp
diff options
context:
space:
mode:
authorDaisuke Miyakawa <dmiyakawa@google.com>2009-07-10 15:50:49 +0900
committerDaisuke Miyakawa <dmiyakawa@google.com>2009-07-10 15:50:49 +0900
commit441321a8431b4b66fa61d6deb443e7927e69fdbd (patch)
treed07a15b29b601d25117d0365e36a036c0227ce7d /android/PhoneticStringUtilsTest.cpp
parent1ec1f3dec4ec6e1e5ed45b4d859a9f433e085354 (diff)
Make sim-ang not corrupt when building PhoneticUtilsTest.cpp
You can double-check by doing this: > make libsqlite3_phone_number_utils_test However, I'm doubting the current breakage is caused not only this but also another something. I'll stay tuned.
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', '!', '/', ':', '?', '[', '`', '{', '~'};