ICU-20601 Remove superfluous semicolons (-Wextra-semi-stmt).
These are the same changes for the C++ code as was done for the C code
by commit 17606e0345
.
This commit is contained in:
parent
1d2861bb0c
commit
5d6d29b76a
@ -94,7 +94,7 @@ uprv_calloc(size_t num, size_t size) U_MALLOC_ATTR U_ALLOC_SIZE_ATTR2(1,2);
|
|||||||
*/
|
*/
|
||||||
#define STATIC_NEW(type) [] () { \
|
#define STATIC_NEW(type) [] () { \
|
||||||
alignas(type) static char storage[sizeof(type)]; \
|
alignas(type) static char storage[sizeof(type)]; \
|
||||||
return new(storage) type();} ();
|
return new(storage) type();} ()
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Heap clean up function, called from u_cleanup()
|
* Heap clean up function, called from u_cleanup()
|
||||||
|
@ -22,7 +22,7 @@
|
|||||||
* `actualLocale' of size ULOC_FULLNAME_CAPACITY
|
* `actualLocale' of size ULOC_FULLNAME_CAPACITY
|
||||||
*/
|
*/
|
||||||
#define U_LOCALE_BASED(varname, objname) \
|
#define U_LOCALE_BASED(varname, objname) \
|
||||||
LocaleBased varname((objname).validLocale, (objname).actualLocale);
|
LocaleBased varname((objname).validLocale, (objname).actualLocale)
|
||||||
|
|
||||||
U_NAMESPACE_BEGIN
|
U_NAMESPACE_BEGIN
|
||||||
|
|
||||||
|
@ -352,7 +352,7 @@ RuleBasedBreakIterator::operator==(const BreakIterator& that) const {
|
|||||||
// or have a different iteration position.
|
// or have a different iteration position.
|
||||||
// Note that fText's position is always the same as the break iterator's position.
|
// Note that fText's position is always the same as the break iterator's position.
|
||||||
return FALSE;
|
return FALSE;
|
||||||
};
|
}
|
||||||
|
|
||||||
if (!(fPosition == that2.fPosition &&
|
if (!(fPosition == that2.fPosition &&
|
||||||
fRuleStatusIndex == that2.fRuleStatusIndex &&
|
fRuleStatusIndex == that2.fRuleStatusIndex &&
|
||||||
|
@ -519,7 +519,7 @@ UBool RuleBasedBreakIterator::BreakCache::populatePreceding(UErrorCode &status)
|
|||||||
// The initial handleNext() only advanced by a single code point. Go again.
|
// The initial handleNext() only advanced by a single code point. Go again.
|
||||||
position = fBI->handleNext(); // Safe rules identify safe pairs.
|
position = fBI->handleNext(); // Safe rules identify safe pairs.
|
||||||
}
|
}
|
||||||
};
|
}
|
||||||
positionStatusIdx = fBI->fRuleStatusIndex;
|
positionStatusIdx = fBI->fRuleStatusIndex;
|
||||||
}
|
}
|
||||||
} while (position >= fromPosition);
|
} while (position >= fromPosition);
|
||||||
|
@ -40,7 +40,7 @@
|
|||||||
/* constants and macros for access to the data ------------------------------ */
|
/* constants and macros for access to the data ------------------------------ */
|
||||||
|
|
||||||
/* getting a uint32_t properties word from the data */
|
/* getting a uint32_t properties word from the data */
|
||||||
#define GET_PROPS(c, result) ((result)=UTRIE2_GET16(&propsTrie, c));
|
#define GET_PROPS(c, result) ((result)=UTRIE2_GET16(&propsTrie, c))
|
||||||
|
|
||||||
/* API functions ------------------------------------------------------------ */
|
/* API functions ------------------------------------------------------------ */
|
||||||
|
|
||||||
|
@ -958,7 +958,7 @@ collatorComparator(const void *context, const void *left, const void *right) {
|
|||||||
}
|
}
|
||||||
if (leftString == NULL) {
|
if (leftString == NULL) {
|
||||||
return 1;
|
return 1;
|
||||||
};
|
}
|
||||||
if (rightString == NULL) {
|
if (rightString == NULL) {
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
@ -872,7 +872,7 @@ CollationIterator::previousCE(UVector32 &offsets, UErrorCode &errorCode) {
|
|||||||
// consistent with forward iteration.
|
// consistent with forward iteration.
|
||||||
while(offsets.size() <= ceBuffer.length) {
|
while(offsets.size() <= ceBuffer.length) {
|
||||||
offsets.addElement(limitOffset, errorCode);
|
offsets.addElement(limitOffset, errorCode);
|
||||||
};
|
}
|
||||||
}
|
}
|
||||||
return ceBuffer.get(--ceBuffer.length);
|
return ceBuffer.get(--ceBuffer.length);
|
||||||
} else {
|
} else {
|
||||||
@ -932,7 +932,7 @@ CollationIterator::previousCEUnsafe(UChar32 c, UVector32 &offsets, UErrorCode &e
|
|||||||
offset = getOffset();
|
offset = getOffset();
|
||||||
while(offsets.size() < ceBuffer.length) {
|
while(offsets.size() < ceBuffer.length) {
|
||||||
offsets.addElement(offset, errorCode);
|
offsets.addElement(offset, errorCode);
|
||||||
};
|
}
|
||||||
}
|
}
|
||||||
U_ASSERT(offsets.size() == ceBuffer.length);
|
U_ASSERT(offsets.size() == ceBuffer.length);
|
||||||
// End offset corresponding to just after the unsafe-backwards segment.
|
// End offset corresponding to just after the unsafe-backwards segment.
|
||||||
|
@ -2177,16 +2177,16 @@ DateFormatSymbols::initializeData(const Locale& locale, const char *type, UError
|
|||||||
// The ordering of the following statements is important.
|
// The ordering of the following statements is important.
|
||||||
if (fLeapMonthPatterns[kLeapMonthPatternFormatAbbrev].isEmpty()) {
|
if (fLeapMonthPatterns[kLeapMonthPatternFormatAbbrev].isEmpty()) {
|
||||||
fLeapMonthPatterns[kLeapMonthPatternFormatAbbrev].setTo(fLeapMonthPatterns[kLeapMonthPatternFormatWide]);
|
fLeapMonthPatterns[kLeapMonthPatternFormatAbbrev].setTo(fLeapMonthPatterns[kLeapMonthPatternFormatWide]);
|
||||||
};
|
}
|
||||||
if (fLeapMonthPatterns[kLeapMonthPatternFormatNarrow].isEmpty()) {
|
if (fLeapMonthPatterns[kLeapMonthPatternFormatNarrow].isEmpty()) {
|
||||||
fLeapMonthPatterns[kLeapMonthPatternFormatNarrow].setTo(fLeapMonthPatterns[kLeapMonthPatternStandaloneNarrow]);
|
fLeapMonthPatterns[kLeapMonthPatternFormatNarrow].setTo(fLeapMonthPatterns[kLeapMonthPatternStandaloneNarrow]);
|
||||||
};
|
}
|
||||||
if (fLeapMonthPatterns[kLeapMonthPatternStandaloneWide].isEmpty()) {
|
if (fLeapMonthPatterns[kLeapMonthPatternStandaloneWide].isEmpty()) {
|
||||||
fLeapMonthPatterns[kLeapMonthPatternStandaloneWide].setTo(fLeapMonthPatterns[kLeapMonthPatternFormatWide]);
|
fLeapMonthPatterns[kLeapMonthPatternStandaloneWide].setTo(fLeapMonthPatterns[kLeapMonthPatternFormatWide]);
|
||||||
};
|
}
|
||||||
if (fLeapMonthPatterns[kLeapMonthPatternStandaloneAbbrev].isEmpty()) {
|
if (fLeapMonthPatterns[kLeapMonthPatternStandaloneAbbrev].isEmpty()) {
|
||||||
fLeapMonthPatterns[kLeapMonthPatternStandaloneAbbrev].setTo(fLeapMonthPatterns[kLeapMonthPatternFormatAbbrev]);
|
fLeapMonthPatterns[kLeapMonthPatternStandaloneAbbrev].setTo(fLeapMonthPatterns[kLeapMonthPatternFormatAbbrev]);
|
||||||
};
|
}
|
||||||
// end of hack
|
// end of hack
|
||||||
fLeapMonthPatternsCount = kMonthPatternsCount;
|
fLeapMonthPatternsCount = kMonthPatternsCount;
|
||||||
} else {
|
} else {
|
||||||
|
@ -88,7 +88,7 @@
|
|||||||
#define MAX_E_COUNT 5
|
#define MAX_E_COUNT 5
|
||||||
#define MAX_M_COUNT 5
|
#define MAX_M_COUNT 5
|
||||||
//#define MAX_INTERVAL_INDEX 4
|
//#define MAX_INTERVAL_INDEX 4
|
||||||
#define MAX_POSITIVE_INT 56632;
|
#define MAX_POSITIVE_INT 56632
|
||||||
|
|
||||||
|
|
||||||
#endif /* #if !UCONFIG_NO_FORMATTING */
|
#endif /* #if !UCONFIG_NO_FORMATTING */
|
||||||
|
@ -813,7 +813,7 @@ MessageFormat::getFormats(int32_t& cnt) const
|
|||||||
|
|
||||||
// Get total required capacity first (it's refreshed on each call).
|
// Get total required capacity first (it's refreshed on each call).
|
||||||
int32_t totalCapacity = 0;
|
int32_t totalCapacity = 0;
|
||||||
for (int32_t partIndex = 0; (partIndex = nextTopLevelArgStart(partIndex)) >= 0; ++totalCapacity) {};
|
for (int32_t partIndex = 0; (partIndex = nextTopLevelArgStart(partIndex)) >= 0; ++totalCapacity) {}
|
||||||
|
|
||||||
MessageFormat* t = const_cast<MessageFormat*> (this);
|
MessageFormat* t = const_cast<MessageFormat*> (this);
|
||||||
cnt = 0;
|
cnt = 0;
|
||||||
|
@ -230,7 +230,7 @@ UnicodeString AffixUtils::replaceType(const UnicodeString &affixPattern, AffixPa
|
|||||||
UnicodeString output(affixPattern); // copy
|
UnicodeString output(affixPattern); // copy
|
||||||
if (affixPattern.length() == 0) {
|
if (affixPattern.length() == 0) {
|
||||||
return output;
|
return output;
|
||||||
};
|
}
|
||||||
AffixTag tag;
|
AffixTag tag;
|
||||||
while (hasNext(tag, affixPattern)) {
|
while (hasNext(tag, affixPattern)) {
|
||||||
tag = nextToken(tag, affixPattern, status);
|
tag = nextToken(tag, affixPattern, status);
|
||||||
@ -246,7 +246,7 @@ bool AffixUtils::containsOnlySymbolsAndIgnorables(const UnicodeString& affixPatt
|
|||||||
const UnicodeSet& ignorables, UErrorCode& status) {
|
const UnicodeSet& ignorables, UErrorCode& status) {
|
||||||
if (affixPattern.length() == 0) {
|
if (affixPattern.length() == 0) {
|
||||||
return true;
|
return true;
|
||||||
};
|
}
|
||||||
AffixTag tag;
|
AffixTag tag;
|
||||||
while (hasNext(tag, affixPattern)) {
|
while (hasNext(tag, affixPattern)) {
|
||||||
tag = nextToken(tag, affixPattern, status);
|
tag = nextToken(tag, affixPattern, status);
|
||||||
@ -262,7 +262,7 @@ void AffixUtils::iterateWithConsumer(const UnicodeString& affixPattern, TokenCon
|
|||||||
UErrorCode& status) {
|
UErrorCode& status) {
|
||||||
if (affixPattern.length() == 0) {
|
if (affixPattern.length() == 0) {
|
||||||
return;
|
return;
|
||||||
};
|
}
|
||||||
AffixTag tag;
|
AffixTag tag;
|
||||||
while (hasNext(tag, affixPattern)) {
|
while (hasNext(tag, affixPattern)) {
|
||||||
tag = nextToken(tag, affixPattern, status);
|
tag = nextToken(tag, affixPattern, status);
|
||||||
|
@ -37,7 +37,7 @@ U_NAMESPACE_BEGIN
|
|||||||
|
|
||||||
// Useful constants
|
// Useful constants
|
||||||
|
|
||||||
#define DEFAULT_DIGITS UNICODE_STRING_SIMPLE("0123456789");
|
#define DEFAULT_DIGITS UNICODE_STRING_SIMPLE("0123456789")
|
||||||
static const char gNumberingSystems[] = "numberingSystems";
|
static const char gNumberingSystems[] = "numberingSystems";
|
||||||
static const char gNumberElements[] = "NumberElements";
|
static const char gNumberElements[] = "NumberElements";
|
||||||
static const char gDefault[] = "default";
|
static const char gDefault[] = "default";
|
||||||
|
@ -3381,7 +3381,7 @@ int32_t RegexCompile::minMatchLength(int32_t start, int32_t end) {
|
|||||||
// it assumes that the look-ahead match might be zero-length.
|
// it assumes that the look-ahead match might be zero-length.
|
||||||
// TODO: Positive lookahead could recursively do the block, then continue
|
// TODO: Positive lookahead could recursively do the block, then continue
|
||||||
// with the longer of the block or the value coming in. Ticket 6060
|
// with the longer of the block or the value coming in. Ticket 6060
|
||||||
int32_t depth = (opType == URX_LA_START? 2: 1);;
|
int32_t depth = (opType == URX_LA_START? 2: 1);
|
||||||
for (;;) {
|
for (;;) {
|
||||||
loc++;
|
loc++;
|
||||||
op = (int32_t)fRXPat->fCompiledPat->elementAti(loc);
|
op = (int32_t)fRXPat->fCompiledPat->elementAti(loc);
|
||||||
|
@ -2069,7 +2069,7 @@ int32_t RegexMatcher::split(UText *input,
|
|||||||
//
|
//
|
||||||
if (U_FAILURE(status)) {
|
if (U_FAILURE(status)) {
|
||||||
return 0;
|
return 0;
|
||||||
};
|
}
|
||||||
|
|
||||||
if (destCapacity < 1) {
|
if (destCapacity < 1) {
|
||||||
status = U_ILLEGAL_ARGUMENT_ERROR;
|
status = U_ILLEGAL_ARGUMENT_ERROR;
|
||||||
|
@ -646,7 +646,7 @@ int32_t RegexPattern::split(const UnicodeString &input,
|
|||||||
{
|
{
|
||||||
if (U_FAILURE(status)) {
|
if (U_FAILURE(status)) {
|
||||||
return 0;
|
return 0;
|
||||||
};
|
}
|
||||||
|
|
||||||
RegexMatcher m(this);
|
RegexMatcher m(this);
|
||||||
int32_t r = 0;
|
int32_t r = 0;
|
||||||
@ -667,7 +667,7 @@ int32_t RegexPattern::split(UText *input,
|
|||||||
{
|
{
|
||||||
if (U_FAILURE(status)) {
|
if (U_FAILURE(status)) {
|
||||||
return 0;
|
return 0;
|
||||||
};
|
}
|
||||||
|
|
||||||
RegexMatcher m(this);
|
RegexMatcher m(this);
|
||||||
int32_t r = 0;
|
int32_t r = 0;
|
||||||
|
@ -35,7 +35,7 @@
|
|||||||
log_err_status(status, "Failure at file %s, line %d, error = %s\n", __FILE__, __LINE__, u_errorName(status));}}
|
log_err_status(status, "Failure at file %s, line %d, error = %s\n", __FILE__, __LINE__, u_errorName(status));}}
|
||||||
|
|
||||||
#define TEST_ASSERT(expr) {if ((expr)==FALSE) { \
|
#define TEST_ASSERT(expr) {if ((expr)==FALSE) { \
|
||||||
log_err("Test Failure at file %s, line %d: \"%s\" is false.\n", __FILE__, __LINE__, #expr);};}
|
log_err("Test Failure at file %s, line %d: \"%s\" is false.\n", __FILE__, __LINE__, #expr);}}
|
||||||
|
|
||||||
#define TEST_ASSERT_EQ(a, b) { if ((a) != (b)) { \
|
#define TEST_ASSERT_EQ(a, b) { if ((a) != (b)) { \
|
||||||
log_err("Test Failure at file %s, line %d: \"%s\" (%d) != \"%s\" (%d) \n", \
|
log_err("Test Failure at file %s, line %d: \"%s\" (%d) != \"%s\" (%d) \n", \
|
||||||
|
@ -74,7 +74,7 @@ void AlphabeticIndexTest::runIndexedTest( int32_t index, UBool exec, const char*
|
|||||||
#define TEST_CHECK_STATUS {if (U_FAILURE(status)) {dataerrln("%s:%d: Test failure. status=%s", \
|
#define TEST_CHECK_STATUS {if (U_FAILURE(status)) {dataerrln("%s:%d: Test failure. status=%s", \
|
||||||
__FILE__, __LINE__, u_errorName(status)); return;}}
|
__FILE__, __LINE__, u_errorName(status)); return;}}
|
||||||
|
|
||||||
#define TEST_ASSERT(expr) {if ((expr)==FALSE) {errln("%s:%d: Test failure \n", __FILE__, __LINE__);};}
|
#define TEST_ASSERT(expr) {if ((expr)==FALSE) {errln("%s:%d: Test failure \n", __FILE__, __LINE__);}}
|
||||||
|
|
||||||
//
|
//
|
||||||
// APITest. Invoke every function at least once, and check that it does something.
|
// APITest. Invoke every function at least once, and check that it does something.
|
||||||
|
@ -41,7 +41,7 @@
|
|||||||
errln("%s:%d: Test failure, locale %s. status=%s", __FILE__, __LINE__, testlocale, u_errorName(status)); \
|
errln("%s:%d: Test failure, locale %s. status=%s", __FILE__, __LINE__, testlocale, u_errorName(status)); \
|
||||||
} return;}}
|
} return;}}
|
||||||
|
|
||||||
#define TEST_ASSERT(expr) {if ((expr)==FALSE) {errln("%s:%d: Test failure \n", __FILE__, __LINE__);};}
|
#define TEST_ASSERT(expr) {if ((expr)==FALSE) {errln("%s:%d: Test failure \n", __FILE__, __LINE__);}}
|
||||||
|
|
||||||
// *****************************************************************************
|
// *****************************************************************************
|
||||||
// class CalendarTest
|
// class CalendarTest
|
||||||
@ -2173,7 +2173,7 @@ int32_t CalendarTest::testLocaleCount()
|
|||||||
if(gLocaleCount < 0) {
|
if(gLocaleCount < 0) {
|
||||||
int32_t i;
|
int32_t i;
|
||||||
for(i=0;testLocaleID(i) != NULL;i++) {
|
for(i=0;testLocaleID(i) != NULL;i++) {
|
||||||
;
|
// do nothing
|
||||||
}
|
}
|
||||||
gLocaleCount = i;
|
gLocaleCount = i;
|
||||||
}
|
}
|
||||||
|
@ -83,11 +83,11 @@ void DecimalFormatTest::runIndexedTest( int32_t index, UBool exec, const char* &
|
|||||||
{dataerrln("DecimalFormatTest failure at line %d. status=%s", \
|
{dataerrln("DecimalFormatTest failure at line %d. status=%s", \
|
||||||
__LINE__, u_errorName(status)); return 0;}}
|
__LINE__, u_errorName(status)); return 0;}}
|
||||||
|
|
||||||
#define DF_ASSERT(expr) {if ((expr)==FALSE) {errln("DecimalFormatTest failure at line %d.\n", __LINE__);};}
|
#define DF_ASSERT(expr) {if ((expr)==FALSE) {errln("DecimalFormatTest failure at line %d.\n", __LINE__);}}
|
||||||
|
|
||||||
#define DF_ASSERT_FAIL(expr, errcode) {UErrorCode status=U_ZERO_ERROR; (expr);\
|
#define DF_ASSERT_FAIL(expr, errcode) {UErrorCode status=U_ZERO_ERROR; (expr);\
|
||||||
if (status!=errcode) {dataerrln("DecimalFormatTest failure at line %d. Expected status=%s, got %s", \
|
if (status!=errcode) {dataerrln("DecimalFormatTest failure at line %d. Expected status=%s, got %s", \
|
||||||
__LINE__, u_errorName(errcode), u_errorName(status));};}
|
__LINE__, u_errorName(errcode), u_errorName(status));}}
|
||||||
|
|
||||||
#define DF_CHECK_STATUS_L(line) {if (U_FAILURE(status)) {errln( \
|
#define DF_CHECK_STATUS_L(line) {if (U_FAILURE(status)) {errln( \
|
||||||
"DecimalFormatTest failure at line %d, from %d. status=%d\n",__LINE__, (line), status); }}
|
"DecimalFormatTest failure at line %d, from %d. status=%d\n",__LINE__, (line), status); }}
|
||||||
@ -546,7 +546,7 @@ cleanUpAndReturn:
|
|||||||
errln("ICU Error \"%s\"\n", u_errorName(status));
|
errln("ICU Error \"%s\"\n", u_errorName(status));
|
||||||
delete retPtr;
|
delete retPtr;
|
||||||
retPtr = NULL;
|
retPtr = NULL;
|
||||||
};
|
}
|
||||||
return retPtr;
|
return retPtr;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1461,7 +1461,7 @@ void DateFormatRegressionTest::Test5554(void)
|
|||||||
if (U_FAILURE(status)) {
|
if (U_FAILURE(status)) {
|
||||||
errln("Error getting time to format");
|
errln("Error getting time to format");
|
||||||
return;
|
return;
|
||||||
};
|
}
|
||||||
sdf->adoptCalendar(cal);
|
sdf->adoptCalendar(cal);
|
||||||
UnicodeString result;
|
UnicodeString result;
|
||||||
UnicodeString correct("-0330", "");
|
UnicodeString correct("-0330", "");
|
||||||
|
@ -4789,7 +4789,7 @@ void DateFormatTest::TestNumberFormatOverride() {
|
|||||||
FieldPosition pos(FieldPosition::DONT_CARE);
|
FieldPosition pos(FieldPosition::DONT_CARE);
|
||||||
fmt->format(test_date,result, pos);
|
fmt->format(test_date,result, pos);
|
||||||
|
|
||||||
UnicodeString expected = ((UnicodeString)DATA[i][1]).unescape();;
|
UnicodeString expected = ((UnicodeString)DATA[i][1]).unescape();
|
||||||
|
|
||||||
if (result != expected)
|
if (result != expected)
|
||||||
errln("FAIL: Expected " + expected + " get: " + result);
|
errln("FAIL: Expected " + expected + " get: " + result);
|
||||||
|
@ -173,7 +173,7 @@ UBool IdnaConfTest::ReadOneLine(UnicodeString& buf){
|
|||||||
curOffset += 1 + t; // BACKSLAH and NewlineMark
|
curOffset += 1 + t; // BACKSLAH and NewlineMark
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
};
|
}
|
||||||
buf.append(c);
|
buf.append(c);
|
||||||
curOffset++;
|
curOffset++;
|
||||||
}
|
}
|
||||||
|
@ -33,10 +33,10 @@
|
|||||||
errcheckln(status, "Failure at file %s, line %d, error = %s", __FILE__, __LINE__, u_errorName(status));}}
|
errcheckln(status, "Failure at file %s, line %d, error = %s", __FILE__, __LINE__, u_errorName(status));}}
|
||||||
|
|
||||||
#define TEST_ASSERT(expr) {if ((expr)==FALSE) { \
|
#define TEST_ASSERT(expr) {if ((expr)==FALSE) { \
|
||||||
errln("Test Failure at file %s, line %d: \"%s\" is false.", __FILE__, __LINE__, #expr);};}
|
errln("Test Failure at file %s, line %d: \"%s\" is false.", __FILE__, __LINE__, #expr);}}
|
||||||
|
|
||||||
#define TEST_ASSERT_MSG(expr, msg) {if ((expr)==FALSE) { \
|
#define TEST_ASSERT_MSG(expr, msg) {if ((expr)==FALSE) { \
|
||||||
dataerrln("Test Failure at file %s, line %d, %s: \"%s\" is false.", __FILE__, __LINE__, msg, #expr);};}
|
dataerrln("Test Failure at file %s, line %d, %s: \"%s\" is false.", __FILE__, __LINE__, msg, #expr);}}
|
||||||
|
|
||||||
#define TEST_ASSERT_EQ(a, b) { if ((a) != (b)) { \
|
#define TEST_ASSERT_EQ(a, b) { if ((a) != (b)) { \
|
||||||
errln("Test Failure at file %s, line %d: \"%s\" (%d) != \"%s\" (%d)", \
|
errln("Test Failure at file %s, line %d: \"%s\" (%d) != \"%s\" (%d)", \
|
||||||
|
@ -1228,7 +1228,7 @@ void LocaleBuilderTest::TestSetExtensionValidateUWellFormed() {
|
|||||||
errln("setExtension('u', \"%s\") got Error: %s\n",
|
errln("setExtension('u', \"%s\") got Error: %s\n",
|
||||||
extension, u_errorName(status));
|
extension, u_errorName(status));
|
||||||
}
|
}
|
||||||
};
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void LocaleBuilderTest::TestSetExtensionValidateUIllFormed() {
|
void LocaleBuilderTest::TestSetExtensionValidateUIllFormed() {
|
||||||
@ -1364,7 +1364,7 @@ void LocaleBuilderTest::TestSetExtensionValidateTWellFormed() {
|
|||||||
errln("setExtension('t', \"%s\") got Error: %s\n",
|
errln("setExtension('t', \"%s\") got Error: %s\n",
|
||||||
extension, u_errorName(status));
|
extension, u_errorName(status));
|
||||||
}
|
}
|
||||||
};
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void LocaleBuilderTest::TestSetExtensionValidateTIllFormed() {
|
void LocaleBuilderTest::TestSetExtensionValidateTIllFormed() {
|
||||||
@ -1469,7 +1469,7 @@ void LocaleBuilderTest::TestSetExtensionValidatePUWellFormed() {
|
|||||||
errln("setExtension('x', \"%s\") got Error: %s\n",
|
errln("setExtension('x', \"%s\") got Error: %s\n",
|
||||||
extension, u_errorName(status));
|
extension, u_errorName(status));
|
||||||
}
|
}
|
||||||
};
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void LocaleBuilderTest::TestSetExtensionValidatePUIllFormed() {
|
void LocaleBuilderTest::TestSetExtensionValidatePUIllFormed() {
|
||||||
@ -1558,7 +1558,7 @@ void LocaleBuilderTest::TestSetExtensionValidateOthersWellFormed() {
|
|||||||
errln("setExtension('%c', \"%s\") got Error: %s\n",
|
errln("setExtension('%c', \"%s\") got Error: %s\n",
|
||||||
ch, extension, u_errorName(status));
|
ch, extension, u_errorName(status));
|
||||||
}
|
}
|
||||||
};
|
}
|
||||||
|
|
||||||
const char* someChars =
|
const char* someChars =
|
||||||
"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789`~!@#$%^&*()-_=+;:,.<>?";
|
"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789`~!@#$%^&*()-_=+;:,.<>?";
|
||||||
|
@ -18,7 +18,7 @@ void DecimalQuantityTest::runIndexedTest(int32_t index, UBool exec, const char *
|
|||||||
}
|
}
|
||||||
TESTCASE_AUTO_BEGIN;
|
TESTCASE_AUTO_BEGIN;
|
||||||
TESTCASE_AUTO(testDecimalQuantityBehaviorStandalone);
|
TESTCASE_AUTO(testDecimalQuantityBehaviorStandalone);
|
||||||
TESTCASE_AUTO(testSwitchStorage);;
|
TESTCASE_AUTO(testSwitchStorage);
|
||||||
TESTCASE_AUTO(testCopyMove);
|
TESTCASE_AUTO(testCopyMove);
|
||||||
TESTCASE_AUTO(testAppend);
|
TESTCASE_AUTO(testAppend);
|
||||||
if (!quick) {
|
if (!quick) {
|
||||||
|
@ -322,7 +322,7 @@ NumberFormatTest::TestCoverage(void){
|
|||||||
int64_t num = 4;
|
int64_t num = 4;
|
||||||
if (stub.format(num, agent, pos) != UnicodeString("agent3")){
|
if (stub.format(num, agent, pos) != UnicodeString("agent3")){
|
||||||
errln("NumberFormat::format(int64, UnicodString&, FieldPosition&) should delegate to (int32, ,)");
|
errln("NumberFormat::format(int64, UnicodString&, FieldPosition&) should delegate to (int32, ,)");
|
||||||
};
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void NumberFormatTest::TestLocalizedPatternSymbolCoverage() {
|
void NumberFormatTest::TestLocalizedPatternSymbolCoverage() {
|
||||||
|
@ -998,7 +998,7 @@ void NumberFormatRegressionTest::Test4071005 (void)
|
|||||||
if (failure(status, "NumberFormat::createInstance", Locale::getCanadaFrench(), TRUE)){
|
if (failure(status, "NumberFormat::createInstance", Locale::getCanadaFrench(), TRUE)){
|
||||||
delete formatter;
|
delete formatter;
|
||||||
return;
|
return;
|
||||||
};
|
}
|
||||||
tempString = formatter->format (-5789.9876, tempString);
|
tempString = formatter->format (-5789.9876, tempString);
|
||||||
|
|
||||||
if (tempString == expectedDefault) {
|
if (tempString == expectedDefault) {
|
||||||
@ -1132,7 +1132,7 @@ void NumberFormatRegressionTest::Test4071859 (void)
|
|||||||
if (failure(status, "NumberFormat::createNumberInstance", TRUE)){
|
if (failure(status, "NumberFormat::createNumberInstance", TRUE)){
|
||||||
delete formatter;
|
delete formatter;
|
||||||
return;
|
return;
|
||||||
};
|
}
|
||||||
tempString = formatter->format (-5789.9876, tempString);
|
tempString = formatter->format (-5789.9876, tempString);
|
||||||
|
|
||||||
if (tempString == expectedDefault) {
|
if (tempString == expectedDefault) {
|
||||||
@ -1942,7 +1942,7 @@ void NumberFormatRegressionTest::Test4145457() {
|
|||||||
if (failure(status, "NumberFormat::createInstance", TRUE)){
|
if (failure(status, "NumberFormat::createInstance", TRUE)){
|
||||||
delete nff;
|
delete nff;
|
||||||
return;
|
return;
|
||||||
};
|
}
|
||||||
DecimalFormat *nf = dynamic_cast<DecimalFormat *>(nff);
|
DecimalFormat *nf = dynamic_cast<DecimalFormat *>(nff);
|
||||||
if(nf == NULL) {
|
if(nf == NULL) {
|
||||||
errln("DecimalFormat needed to continue");
|
errln("DecimalFormat needed to continue");
|
||||||
@ -2185,7 +2185,7 @@ void NumberFormatRegressionTest::Test4167494(void) {
|
|||||||
if (failure(status, "NumberFormat::createInstance", TRUE)){
|
if (failure(status, "NumberFormat::createInstance", TRUE)){
|
||||||
delete fmt;
|
delete fmt;
|
||||||
return;
|
return;
|
||||||
};
|
}
|
||||||
|
|
||||||
double a = DBL_MAX * 0.99; // DBL_MAX itself overflows to +Inf
|
double a = DBL_MAX * 0.99; // DBL_MAX itself overflows to +Inf
|
||||||
UnicodeString s;
|
UnicodeString s;
|
||||||
@ -2515,7 +2515,7 @@ void NumberFormatRegressionTest::Test4216742(void) {
|
|||||||
if (failure(status, "createInstance", Locale::getUS(), TRUE)){
|
if (failure(status, "createInstance", Locale::getUS(), TRUE)){
|
||||||
delete fmt;
|
delete fmt;
|
||||||
return;
|
return;
|
||||||
};
|
}
|
||||||
int32_t DATA[] = { INT32_MIN, INT32_MAX, -100000000, 100000000 };
|
int32_t DATA[] = { INT32_MIN, INT32_MAX, -100000000, 100000000 };
|
||||||
int DATA_length = UPRV_LENGTHOF(DATA);
|
int DATA_length = UPRV_LENGTHOF(DATA);
|
||||||
for (int i=0; i<DATA_length; ++i) {
|
for (int i=0; i<DATA_length; ++i) {
|
||||||
@ -2557,7 +2557,7 @@ void NumberFormatRegressionTest::Test4217661(void) {
|
|||||||
if (failure(status, "createInstance", Locale::getUS(), TRUE)){
|
if (failure(status, "createInstance", Locale::getUS(), TRUE)){
|
||||||
delete fmt;
|
delete fmt;
|
||||||
return;
|
return;
|
||||||
};
|
}
|
||||||
fmt->setMaximumFractionDigits(2);
|
fmt->setMaximumFractionDigits(2);
|
||||||
for (int i=0; i<D_length; i++) {
|
for (int i=0; i<D_length; i++) {
|
||||||
UnicodeString s;
|
UnicodeString s;
|
||||||
@ -2578,7 +2578,7 @@ void NumberFormatRegressionTest::Test4161100(void) {
|
|||||||
if (failure(status, "createInstance", Locale::getUS(), TRUE)){
|
if (failure(status, "createInstance", Locale::getUS(), TRUE)){
|
||||||
delete nf;
|
delete nf;
|
||||||
return;
|
return;
|
||||||
};
|
}
|
||||||
nf->setMinimumFractionDigits(1);
|
nf->setMinimumFractionDigits(1);
|
||||||
nf->setMaximumFractionDigits(1);
|
nf->setMaximumFractionDigits(1);
|
||||||
double a = -0.09;
|
double a = -0.09;
|
||||||
@ -2911,7 +2911,7 @@ void NumberFormatRegressionTest::Test9780(void) {
|
|||||||
if (failure(status, "NumberFormat::createInstance", TRUE)){
|
if (failure(status, "NumberFormat::createInstance", TRUE)){
|
||||||
delete nf;
|
delete nf;
|
||||||
return;
|
return;
|
||||||
};
|
}
|
||||||
DecimalFormat *df = dynamic_cast<DecimalFormat *>(nf);
|
DecimalFormat *df = dynamic_cast<DecimalFormat *>(nf);
|
||||||
if(df == NULL) {
|
if(df == NULL) {
|
||||||
errln("DecimalFormat needed to continue");
|
errln("DecimalFormat needed to continue");
|
||||||
@ -3025,7 +3025,6 @@ void NumberFormatRegressionTest::Test9677(void) {
|
|||||||
errln("FAIL: with different neg prefix , parse error %s\n", u_errorName(status));
|
errln("FAIL: with different neg prefix , parse error %s\n", u_errorName(status));
|
||||||
status = U_ZERO_ERROR;
|
status = U_ZERO_ERROR;
|
||||||
} else {
|
} else {
|
||||||
;
|
|
||||||
if(n!=-123456789) {
|
if(n!=-123456789) {
|
||||||
errln("FAIL: with different neg prefix , unum_parse status %s, result %d expected -123456789\n", u_errorName(status), n);
|
errln("FAIL: with different neg prefix , unum_parse status %s, result %d expected -123456789\n", u_errorName(status), n);
|
||||||
} else {
|
} else {
|
||||||
|
@ -182,7 +182,7 @@ void ParsePositionTest::TestFieldPosition_example()
|
|||||||
if (failure(status, "NumberFormat::createInstance", TRUE)){
|
if (failure(status, "NumberFormat::createInstance", TRUE)){
|
||||||
delete nf;
|
delete nf;
|
||||||
return;
|
return;
|
||||||
};
|
}
|
||||||
|
|
||||||
DecimalFormat *fmt = dynamic_cast<DecimalFormat *>(nf);
|
DecimalFormat *fmt = dynamic_cast<DecimalFormat *>(nf);
|
||||||
if(fmt == NULL) {
|
if(fmt == NULL) {
|
||||||
|
@ -38,7 +38,7 @@
|
|||||||
dataerrln("Failure at file %s, line %d, error = %s", __FILE__, __LINE__, u_errorName(status));}}
|
dataerrln("Failure at file %s, line %d, error = %s", __FILE__, __LINE__, u_errorName(status));}}
|
||||||
|
|
||||||
#define TEST_ASSERT(expr) {if ((expr) == FALSE) { \
|
#define TEST_ASSERT(expr) {if ((expr) == FALSE) { \
|
||||||
errln("Test Failure at file %s, line %d: \"%s\" is false.\n", __FILE__, __LINE__, #expr);};}
|
errln("Test Failure at file %s, line %d: \"%s\" is false.\n", __FILE__, __LINE__, #expr);}}
|
||||||
|
|
||||||
void RBBIAPITest::TestCloneEquals()
|
void RBBIAPITest::TestCloneEquals()
|
||||||
{
|
{
|
||||||
@ -1041,7 +1041,7 @@ void RBBIAPITest::RoundtripRule(const char *dataFile) {
|
|||||||
__FILE__, __LINE__, u_errorName(status), parseError.line, parseError.offset);
|
__FILE__, __LINE__, u_errorName(status), parseError.line, parseError.offset);
|
||||||
errln(UnicodeString(builtSource));
|
errln(UnicodeString(builtSource));
|
||||||
return;
|
return;
|
||||||
};
|
}
|
||||||
rbbiRules = brkItr->getBinaryRules(length);
|
rbbiRules = brkItr->getBinaryRules(length);
|
||||||
logln("Comparing \"%s\" len=%d", dataFile, length);
|
logln("Comparing \"%s\" len=%d", dataFile, length);
|
||||||
if (memcmp(builtRules, rbbiRules, (int32_t)length) != 0) {
|
if (memcmp(builtRules, rbbiRules, (int32_t)length) != 0) {
|
||||||
|
@ -1237,7 +1237,7 @@ cleanUpAndReturn:
|
|||||||
delete []retPtr;
|
delete []retPtr;
|
||||||
retPtr = 0;
|
retPtr = 0;
|
||||||
ulen = 0;
|
ulen = 0;
|
||||||
};
|
}
|
||||||
return retPtr;
|
return retPtr;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -2033,7 +2033,7 @@ int32_t RBBIWordMonkey::next(int32_t prevPos) {
|
|||||||
c3 = fText->char32At(p3);
|
c3 = fText->char32At(p3);
|
||||||
if (fCRSet->contains(c2) || fLFSet->contains(c2) || fNewlineSet->contains(c2)) {
|
if (fCRSet->contains(c2) || fLFSet->contains(c2) || fNewlineSet->contains(c2)) {
|
||||||
break;
|
break;
|
||||||
};
|
}
|
||||||
}
|
}
|
||||||
while (fFormatSet->contains(c3) || fExtendSet->contains(c3) || fZWJSet->contains(c3));
|
while (fFormatSet->contains(c3) || fExtendSet->contains(c3) || fZWJSet->contains(c3));
|
||||||
|
|
||||||
@ -2059,10 +2059,10 @@ int32_t RBBIWordMonkey::next(int32_t prevPos) {
|
|||||||
//
|
//
|
||||||
if (fCRSet->contains(c1) || fLFSet->contains(c1) || fNewlineSet->contains(c1)) {
|
if (fCRSet->contains(c1) || fLFSet->contains(c1) || fNewlineSet->contains(c1)) {
|
||||||
break;
|
break;
|
||||||
};
|
}
|
||||||
if (fCRSet->contains(c2) || fLFSet->contains(c2) || fNewlineSet->contains(c2)) {
|
if (fCRSet->contains(c2) || fLFSet->contains(c2) || fNewlineSet->contains(c2)) {
|
||||||
break;
|
break;
|
||||||
};
|
}
|
||||||
|
|
||||||
// Rule (3c) ZWJ x Extended_Pictographic
|
// Rule (3c) ZWJ x Extended_Pictographic
|
||||||
// Not ignoring extend chars, so peek into input text to
|
// Not ignoring extend chars, so peek into input text to
|
||||||
|
@ -182,11 +182,11 @@ const char* RegexTest::extractToAssertBuf(const UnicodeString& message) {
|
|||||||
#define REGEX_CHECK_STATUS {if (U_FAILURE(status)) {dataerrln("%s:%d: RegexTest failure. status=%s", \
|
#define REGEX_CHECK_STATUS {if (U_FAILURE(status)) {dataerrln("%s:%d: RegexTest failure. status=%s", \
|
||||||
__FILE__, __LINE__, u_errorName(status)); return;}}
|
__FILE__, __LINE__, u_errorName(status)); return;}}
|
||||||
|
|
||||||
#define REGEX_ASSERT(expr) {if ((expr)==FALSE) {errln("%s:%d: RegexTest failure: REGEX_ASSERT(%s) failed \n", __FILE__, __LINE__, #expr);};}
|
#define REGEX_ASSERT(expr) {if ((expr)==FALSE) {errln("%s:%d: RegexTest failure: REGEX_ASSERT(%s) failed \n", __FILE__, __LINE__, #expr);}}
|
||||||
|
|
||||||
#define REGEX_ASSERT_FAIL(expr, errcode) {UErrorCode status=U_ZERO_ERROR; (expr);\
|
#define REGEX_ASSERT_FAIL(expr, errcode) {UErrorCode status=U_ZERO_ERROR; (expr);\
|
||||||
if (status!=errcode) {dataerrln("RegexTest failure at line %d. Expected status=%s, got %s", \
|
if (status!=errcode) {dataerrln("RegexTest failure at line %d. Expected status=%s, got %s", \
|
||||||
__LINE__, u_errorName(errcode), u_errorName(status));};}
|
__LINE__, u_errorName(errcode), u_errorName(status));}}
|
||||||
|
|
||||||
#define REGEX_CHECK_STATUS_L(line) {if (U_FAILURE(status)) {errln( \
|
#define REGEX_CHECK_STATUS_L(line) {if (U_FAILURE(status)) {errln( \
|
||||||
"RegexTest failure at line %d, from %d. status=%d\n",__LINE__, (line), status); }}
|
"RegexTest failure at line %d, from %d. status=%d\n",__LINE__, (line), status); }}
|
||||||
@ -199,7 +199,7 @@ if (status!=errcode) {dataerrln("RegexTest failure at line %d. Expected status=
|
|||||||
#define REGEX_ASSERT_UNISTR(expected, actual) { \
|
#define REGEX_ASSERT_UNISTR(expected, actual) { \
|
||||||
if (UnicodeString(expected, -1, US_INV) != (actual)) { \
|
if (UnicodeString(expected, -1, US_INV) != (actual)) { \
|
||||||
errln("%s:%d: RegexTest failure: REGEX_ASSERT_UNISTR(%s, %s) failed \n", \
|
errln("%s:%d: RegexTest failure: REGEX_ASSERT_UNISTR(%s, %s) failed \n", \
|
||||||
__FILE__, __LINE__, expected, extractToAssertBuf(actual));};}
|
__FILE__, __LINE__, expected, extractToAssertBuf(actual));}}
|
||||||
|
|
||||||
|
|
||||||
static UBool testUTextEqual(UText *uta, UText *utb) {
|
static UBool testUTextEqual(UText *uta, UText *utb) {
|
||||||
@ -481,7 +481,7 @@ UBool RegexTest::doRegexLMTestUTF8(const char *pat, const char *text, UBool look
|
|||||||
// REGEX_ERR("pattern", expected error line, column, expected status);
|
// REGEX_ERR("pattern", expected error line, column, expected status);
|
||||||
//
|
//
|
||||||
//---------------------------------------------------------------------------
|
//---------------------------------------------------------------------------
|
||||||
#define REGEX_ERR(pat, line, col, status) regex_err(pat, line, col, status, __LINE__);
|
#define REGEX_ERR(pat, line, col, status) regex_err(pat, line, col, status, __LINE__)
|
||||||
|
|
||||||
void RegexTest::regex_err(const char *pat, int32_t errLine, int32_t errCol,
|
void RegexTest::regex_err(const char *pat, int32_t errLine, int32_t errCol,
|
||||||
UErrorCode expectedStatus, int32_t line) {
|
UErrorCode expectedStatus, int32_t line) {
|
||||||
@ -3928,7 +3928,7 @@ cleanUpAndReturn:
|
|||||||
delete []retPtr;
|
delete []retPtr;
|
||||||
retPtr = 0;
|
retPtr = 0;
|
||||||
ulen = 0;
|
ulen = 0;
|
||||||
};
|
}
|
||||||
return retPtr;
|
return retPtr;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -201,7 +201,7 @@ void SSearchTest::searchTest()
|
|||||||
const UnicodeString *locale = testCase->getAttribute("locale");
|
const UnicodeString *locale = testCase->getAttribute("locale");
|
||||||
if (locale == NULL || locale->length()==0) {
|
if (locale == NULL || locale->length()==0) {
|
||||||
locale = &defLocale;
|
locale = &defLocale;
|
||||||
};
|
}
|
||||||
locale->extract(0, locale->length(), clocale, sizeof(clocale), NULL);
|
locale->extract(0, locale->length(), clocale, sizeof(clocale), NULL);
|
||||||
|
|
||||||
|
|
||||||
|
@ -244,7 +244,7 @@ static void U_CALLCONV AccessTest(void)
|
|||||||
SimpleFontInstance *font = new SimpleFontInstance(12, status);
|
SimpleFontInstance *font = new SimpleFontInstance(12, status);
|
||||||
LayoutEngine *engine = LayoutEngine::layoutEngineFactory(font, arabScriptCode, -1, status);
|
LayoutEngine *engine = LayoutEngine::layoutEngineFactory(font, arabScriptCode, -1, status);
|
||||||
le_int32 glyphCount;
|
le_int32 glyphCount;
|
||||||
LEGlyphID glyphs[6], extraBitGlyphs[6];;
|
LEGlyphID glyphs[6], extraBitGlyphs[6];
|
||||||
le_int32 biasedIndices[6], indices[6], glyph;
|
le_int32 biasedIndices[6], indices[6], glyph;
|
||||||
float positions[6 * 2 + 2];
|
float positions[6 * 2 + 2];
|
||||||
LEUnicode chars[] = {
|
LEUnicode chars[] = {
|
||||||
|
@ -262,7 +262,7 @@ int main(int argc, char **argv) {
|
|||||||
if (status != U_BUFFER_OVERFLOW_ERROR) {
|
if (status != U_BUFFER_OVERFLOW_ERROR) {
|
||||||
fprintf(stderr, "ucnv_toUChars: ICU Error \"%s\"\n", u_errorName(status));
|
fprintf(stderr, "ucnv_toUChars: ICU Error \"%s\"\n", u_errorName(status));
|
||||||
exit(status);
|
exit(status);
|
||||||
};
|
}
|
||||||
|
|
||||||
status = U_ZERO_ERROR;
|
status = U_ZERO_ERROR;
|
||||||
UChar *ruleSourceU = new UChar[destCap+1];
|
UChar *ruleSourceU = new UChar[destCap+1];
|
||||||
@ -275,7 +275,7 @@ int main(int argc, char **argv) {
|
|||||||
if (U_FAILURE(status)) {
|
if (U_FAILURE(status)) {
|
||||||
fprintf(stderr, "ucnv_toUChars: ICU Error \"%s\"\n", u_errorName(status));
|
fprintf(stderr, "ucnv_toUChars: ICU Error \"%s\"\n", u_errorName(status));
|
||||||
exit(status);
|
exit(status);
|
||||||
};
|
}
|
||||||
ucnv_close(conv);
|
ucnv_close(conv);
|
||||||
|
|
||||||
|
|
||||||
@ -296,7 +296,7 @@ int main(int argc, char **argv) {
|
|||||||
fprintf(stderr, "createRuleBasedBreakIterator: ICU Error \"%s\" at line %d, column %d\n",
|
fprintf(stderr, "createRuleBasedBreakIterator: ICU Error \"%s\" at line %d, column %d\n",
|
||||||
u_errorName(status), (int)parseError.line, (int)parseError.offset);
|
u_errorName(status), (int)parseError.line, (int)parseError.offset);
|
||||||
exit(status);
|
exit(status);
|
||||||
};
|
}
|
||||||
|
|
||||||
|
|
||||||
//
|
//
|
||||||
|
@ -236,7 +236,7 @@ int main(int argc, char **argv) {
|
|||||||
fprintf(stderr, "gencfu: uspoof_openFromSource error \"%s\" at file %s, line %d, column %d\n",
|
fprintf(stderr, "gencfu: uspoof_openFromSource error \"%s\" at file %s, line %d, column %d\n",
|
||||||
u_errorName(status), confFileName, (int)parseError.line, (int)parseError.offset);
|
u_errorName(status), confFileName, (int)parseError.line, (int)parseError.offset);
|
||||||
exit(status);
|
exit(status);
|
||||||
};
|
}
|
||||||
|
|
||||||
|
|
||||||
//
|
//
|
||||||
|
@ -631,7 +631,7 @@ static const char *getEncodingName(const char *encoding) {
|
|||||||
if (!(enc = ucnv_getStandardName(encoding, "MIME", &err))) {
|
if (!(enc = ucnv_getStandardName(encoding, "MIME", &err))) {
|
||||||
err = U_ZERO_ERROR;
|
err = U_ZERO_ERROR;
|
||||||
if (!(enc = ucnv_getStandardName(encoding, "IANA", &err))) {
|
if (!(enc = ucnv_getStandardName(encoding, "IANA", &err))) {
|
||||||
;
|
// do nothing
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -65,7 +65,7 @@ isFileModTimeLater(const char *filePath, const char *checkAgainst, UBool isDir)
|
|||||||
if (U_FAILURE(status)) {
|
if (U_FAILURE(status)) {
|
||||||
fprintf(stderr, "%s:%d: %s\n", __FILE__, __LINE__, u_errorName(status));
|
fprintf(stderr, "%s:%d: %s\n", __FILE__, __LINE__, u_errorName(status));
|
||||||
return FALSE;
|
return FALSE;
|
||||||
};
|
}
|
||||||
|
|
||||||
if ((subDirp = opendir(newpath.data())) != NULL) {
|
if ((subDirp = opendir(newpath.data())) != NULL) {
|
||||||
/* If this new path is a directory, make a recursive call with the newpath. */
|
/* If this new path is a directory, make a recursive call with the newpath. */
|
||||||
|
@ -313,7 +313,7 @@ UXMLParser::parseFile(const char *filename, UErrorCode &errorCode) {
|
|||||||
// reached end of file, convert once more to flush the converter
|
// reached end of file, convert once more to flush the converter
|
||||||
flush=TRUE;
|
flush=TRUE;
|
||||||
}
|
}
|
||||||
};
|
}
|
||||||
|
|
||||||
exit:
|
exit:
|
||||||
ucnv_close(cnv);
|
ucnv_close(cnv);
|
||||||
|
Loading…
Reference in New Issue
Block a user