]> granicus.if.org Git - icu/commitdiff
ICU-13384 fixes issues found in public header checks and unconfig.h variation check.
authorNorbert Runge <nrunge@google.com>
Fri, 6 Oct 2017 16:52:14 +0000 (16:52 +0000)
committerNorbert Runge <nrunge@google.com>
Fri, 6 Oct 2017 16:52:14 +0000 (16:52 +0000)
X-SVN-Rev: 40592

icu4c/source/common/rbbi_cache.cpp
icu4c/source/common/rbbi_cache.h
icu4c/source/common/unicode/uconfig.h
icu4c/source/i18n/unicode/dtptngen.h
icu4c/source/test/intltest/loctest.cpp
icu4c/source/test/intltest/rbbitst.cpp

index 4bf68fe1ad3a3e1fb0275db33b30667bcd2a9424..f5daf3375a91f61974a815c0fadb0a1e2a914039 100644 (file)
@@ -4,6 +4,9 @@
 // file: rbbi_cache.cpp
 
 #include "unicode/utypes.h"
+
+#if !UCONFIG_NO_BREAK_ITERATION
+
 #include "unicode/ubrk.h"
 #include "unicode/rbbi.h"
 
@@ -622,3 +625,5 @@ void RuleBasedBreakIterator::BreakCache::dumpCache() {
 }
 
 U_NAMESPACE_END
+
+#endif // #if !UCONFIG_NO_BREAK_ITERATION
index 72576e55a2ae0d7e477c4060a0f625f8eea1e98f..11591940afd100ae9b8f5ef719de8a6dfd1c3447 100644 (file)
@@ -8,6 +8,8 @@
 
 #include "unicode/utypes.h"
 
+#if !UCONFIG_NO_BREAK_ITERATION
+
 #include "unicode/rbbi.h"
 #include "unicode/uobject.h"
 
@@ -196,4 +198,6 @@ class RuleBasedBreakIterator::BreakCache: public UMemory {
 
 U_NAMESPACE_END
 
+#endif // #if !UCONFIG_NO_BREAK_ITERATION
+
 #endif // RBBI_CACHE_H
index c26fce461fd57387efaba231eabc14485c2a480f..326ff7ab0e5279a41746a47bebd1ee54d34127e0 100644 (file)
 
 /**
  * \def UCONFIG_NO_CONVERSION
- * ICU will not completely build with this switch turned on.
+ * ICU will not completely build (compiling the tools fails) with this
+ * switch turned on.
  * This switch turns off all converters.
  *
  * You may want to use this together with U_CHARSET_IS_UTF8 defined to 1
  */
 #ifndef UCONFIG_NO_NORMALIZATION
 #   define UCONFIG_NO_NORMALIZATION 0
-#elif UCONFIG_NO_NORMALIZATION
+#endif
+
+#if UCONFIG_NO_NORMALIZATION
     /* common library */
     /* ICU 50 CJK dictionary BreakIterator uses normalization */
 #   define UCONFIG_NO_BREAK_ITERATION 1
index 19ded6d83359849b794d9c3241775d60dc3fc30f..5712edbb9ff60721a298c35f45ac521b49399720 100644 (file)
@@ -18,6 +18,7 @@
 #include "unicode/locid.h"
 #include "unicode/udat.h"
 #include "unicode/udatpg.h"
+#include "unicode/unistr.h"
 
 U_NAMESPACE_BEGIN
 
index 48a1f858067b151a257e2f06a557d223ba034663..4eb5d97c314af16c37725abdacf23ceb9a8ee621 100644 (file)
@@ -10,6 +10,7 @@
 #include "unicode/decimfmt.h"
 #include "unicode/ucurr.h"
 #include "unicode/smpdtfmt.h"
+#include "unicode/strenum.h"
 #include "unicode/dtfmtsym.h"
 #include "unicode/brkiter.h"
 #include "unicode/coll.h"
index 7333a79544da8d5b3f5df119950f7a8783e43d18..aa6091183bae4749c05a6cbdaa4088e6269bac51 100644 (file)
@@ -4720,6 +4720,7 @@ void RBBITest::TestBug12932() {
 // Emoji Test. Verify that the sequences defined in the Unicode data file emoji-test.txt
 //             remain undevided by ICU char, word and line break.
 void RBBITest::TestEmoji() {
+#if !UCONFIG_NO_REGULAR_EXPRESSIONS
     UErrorCode  status = U_ZERO_ERROR;
 
     CharString testFileName;
@@ -4800,6 +4801,7 @@ void RBBITest::TestEmoji() {
             }
         }
     }
+#endif
 }
 
 
@@ -4856,4 +4858,4 @@ void RBBITest::TestProperties() {
     }
 }
 
-#endif /* #if !UCONFIG_NO_BREAK_ITERATION */
+#endif // #if !UCONFIG_NO_BREAK_ITERATION