ICU-13384 fixes issues found in public header checks and unconfig.h variation check.

X-SVN-Rev: 40592
This commit is contained in:
Norbert Runge 2017-10-06 16:52:14 +00:00
parent 6a43ed9826
commit d835c3aac4
6 changed files with 19 additions and 3 deletions

View 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

View 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

View file

@ -262,7 +262,8 @@
/**
* \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
@ -320,7 +321,9 @@
*/
#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

View file

@ -18,6 +18,7 @@
#include "unicode/locid.h"
#include "unicode/udat.h"
#include "unicode/udatpg.h"
#include "unicode/unistr.h"
U_NAMESPACE_BEGIN

View 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"

View 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