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

Unified Diff: source/test/letest/letsutil.cpp

Issue 845603002: Update ICU to 54.1 step 1 (Closed) Base URL: https://chromium.googlesource.com/chromium/deps/icu.git@master
Patch Set: remove unusued directories Created 5 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 | « source/test/letest/letsutil.h ('k') | source/test/letest/xmlreader.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: source/test/letest/letsutil.cpp
diff --git a/source/test/letest/letsutil.cpp b/source/test/letest/letsutil.cpp
index 67713f7eb2305e8ab7eb79ee74210f9ffb7bea0d..0c6422810fdf303492bdbdbac2e4f426c5ac83c1 100644
--- a/source/test/letest/letsutil.cpp
+++ b/source/test/letest/letsutil.cpp
@@ -1,7 +1,7 @@
/*
*******************************************************************************
*
- * Copyright (C) 1999-2008, International Business Machines
+ * Copyright (C) 1999-2014, International Business Machines
* Corporation and others. All Rights Reserved.
*
*******************************************************************************
@@ -20,7 +20,9 @@
#include "layout/LayoutEngine.h"
#include "layout/LELanguages.h"
+#ifndef USING_ICULEHB
#include "OpenTypeLayoutEngine.h"
+#endif
#include "letest.h"
#include "letsutil.h"
@@ -102,11 +104,13 @@ le_int32 getLanguageCode(const char *lang)
LETag langTag = (LETag) ((lang[0] << 24) + (lang[1] << 16) + (lang[2] << 8) + 0x20);
+#ifndef USING_ICULEHB
for (le_int32 i = 0; i < languageCodeCount; i += 1) {
if (langTag == OpenTypeLayoutEngine::languageTags[i]) {
return i;
}
}
+#endif
return -1;
}
« no previous file with comments | « source/test/letest/letsutil.h ('k') | source/test/letest/xmlreader.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698