]> granicus.if.org Git - icu/commitdiff
ICU-13069 enables code to compile when UCONFIG_NO_NORMALIZATION is set to 1; all...
authorNorbert Runge <nrunge@google.com>
Tue, 12 Sep 2017 20:29:14 +0000 (20:29 +0000)
committerNorbert Runge <nrunge@google.com>
Tue, 12 Sep 2017 20:29:14 +0000 (20:29 +0000)
X-SVN-Rev: 40388

icu4c/source/common/rbbirb.h
icu4c/source/common/rbbisetb.h
icu4c/source/i18n/uspoof_conf.h
icu4c/source/test/intltest/strcase.cpp
icu4c/source/test/intltest/usettest.cpp
icu4c/source/tools/toolutil/swapimpl.cpp

index d58a136156231e5b5c5b38c89bfd8db6fa3bca58..f00f58e5dff3fb947f16f41e4e2a53eca4a40b26 100644 (file)
@@ -15,6 +15,9 @@
 #define RBBIRB_H
 
 #include "unicode/utypes.h"
+
+#if !UCONFIG_NO_BREAK_ITERATION
+
 #include "unicode/uobject.h"
 #include "unicode/rbbi.h"
 #include "unicode/uniset.h"
@@ -207,6 +210,9 @@ struct RBBISetTableEl {
 #endif
 
 U_NAMESPACE_END
+
+#endif /* #if !UCONFIG_NO_BREAK_ITERATION */
+
 #endif
 
 
index 5d1f011097e1affbc9a986212fdef2e958f27262..49ecb0024a53f3e95d5b470f9383f737db588e51 100644 (file)
@@ -13,6 +13,9 @@
 #define RBBISETB_H
 
 #include "unicode/utypes.h"
+
+#if !UCONFIG_NO_BREAK_ITERATION
+
 #include "unicode/uobject.h"
 #include "rbbirb.h"
 #include "utrie2.h"
@@ -128,4 +131,7 @@ private:
 
 
 U_NAMESPACE_END
+
+#endif /* #if !UCONFIG_NO_BREAK_ITERATION */
+
 #endif
index 4a4f65967dd0e113811f0467d9dc6228aa6af5da..cfa80e7ca768f00126038ca74578d047575f3c89 100644 (file)
@@ -21,6 +21,8 @@
 #ifndef __USPOOF_BUILDCONF_H__
 #define __USPOOF_BUILDCONF_H__
 
+#include "unicode/utypes.h"
+
 #if !UCONFIG_NO_NORMALIZATION
 
 #if !UCONFIG_NO_REGULAR_EXPRESSIONS 
index a963f517a26e0fdd9136b03545fd5cdf33f62203..854f4ec9140fb79ca3eadea3e7db1b1c7cf2321a 100644 (file)
@@ -626,6 +626,7 @@ StringCaseTest::TestTitleOptions() {
     TestCasingImpl(u"«ijs»", u"«İjs»", TEST_TITLE,
                    nullptr, "tr-DE", U_TITLECASE_WHOLE_STRING);
 
+#if !UCONFIG_NO_BREAK_ITERATION
     // Test conflicting settings.
     // If & when we add more options, then the ORed combinations may become
     // indistinguishable from valid values.
@@ -653,6 +654,7 @@ StringCaseTest::TestTitleOptions() {
               errorCode.errorName());
     }
     errorCode.reset();
+#endif
 }
 
 void
@@ -1387,6 +1389,7 @@ void StringCaseTest::TestLongUnicodeString() {
     assertEquals("string length 306", expected, s);
 }
 
+#if !UCONFIG_NO_BREAK_ITERATION
 void StringCaseTest::TestBug13127() {
     // Test case crashed when the bug was present.
     const char16_t *s16 = u"日本語";
@@ -1403,3 +1406,4 @@ void StringCaseTest::TestInPlaceTitle() {
     assertEquals("u_strToTitle(in-place) length", u_strlen(expected), length);
     assertEquals("u_strToTitle(in-place)", expected, s);
 }
+#endif
index a6ba3e86253f1e0c98db47814a4c72a0d8de1f9e..dc1eeacf0c2e2c1e29ffdae09794760c8703fdec 100644 (file)
@@ -3940,6 +3940,7 @@ void UnicodeSetTest::TestIntOverflow() {
 }
 
 void UnicodeSetTest::TestUnusedCcc() {
+#if !UCONFIG_NO_NORMALIZATION
     // All numeric ccc values 0..255 are valid, but many are unused.
     IcuTestErrorCode errorCode(*this, "TestUnusedCcc");
     UnicodeSet ccc2(u"[:ccc=2:]", errorCode);
@@ -3965,4 +3966,5 @@ void UnicodeSetTest::TestUnusedCcc() {
     assertEquals("[:ccc=1.1:] -> illegal argument",
                  U_ILLEGAL_ARGUMENT_ERROR, errorCode.reset());
     assertTrue("[:ccc=1.1:] -> empty set", ccc1_1.isEmpty());
+#endif
 }
index 620a387e2440917ff9c1320832794a5d68e5101a..a64a6a1703f2c798c09f6b1cd4beae5764657217 100644 (file)
@@ -56,6 +56,7 @@
 #include "sprpimpl.h"
 #include "propname.h"
 #include "rbbidata.h"
+#include "utrie.h"
 #include "utrie2.h"
 #include "dictionarydata.h"