Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(253)

Unified Diff: icu46/source/test/cintltst/creststn.c

Issue 6370014: CJK segmentation patch for ICU 4.6... (Closed) Base URL: svn://chrome-svn/chrome/trunk/deps/third_party/
Patch Set: Created 9 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « icu46/source/data/xml/brkitr/root.xml ('k') | icu46/source/test/intltest/rbbiapts.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: icu46/source/test/cintltst/creststn.c
===================================================================
--- icu46/source/test/cintltst/creststn.c (revision 68397)
+++ icu46/source/test/cintltst/creststn.c (working copy)
@@ -2188,21 +2188,21 @@
{
- UResourceBundle* ja = ures_open(U_ICUDATA_BRKITR,"ja", &status);
+ UResourceBundle* th = ures_open(U_ICUDATA_BRKITR,"th", &status);
const UChar *got = NULL, *exp=NULL;
int32_t gotLen = 0, expLen=0;
- ja = ures_getByKey(ja, "boundaries", ja, &status);
- exp = tres_getString(ja, -1, "word", &expLen, &status);
+ th = ures_getByKey(th, "boundaries", th, &status);
+ exp = tres_getString(th, -1, "grapheme", &expLen, &status);
tb = ures_getByKey(aliasB, "boundaries", tb, &status);
- got = tres_getString(tb, -1, "word", &gotLen, &status);
+ got = tres_getString(tb, -1, "grapheme", &gotLen, &status);
if(U_FAILURE(status)) {
log_err("%s trying to read str boundaries\n", u_errorName(status));
} else if(gotLen != expLen || u_strncmp(exp, got, gotLen) != 0) {
log_err("Referencing alias didn't get the right data\n");
}
- ures_close(ja);
+ ures_close(th);
status = U_ZERO_ERROR;
}
/* simple alias */
« no previous file with comments | « icu46/source/data/xml/brkitr/root.xml ('k') | icu46/source/test/intltest/rbbiapts.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698