ICU-2924 Fix HP-UX compiler error, and don't use a converter for a simple UnicodeString

X-SVN-Rev: 13761
This commit is contained in:
George Rhoten 2003-11-19 18:00:50 +00:00
parent f32f95772c
commit 58d3dec95e

View file

@ -108,7 +108,7 @@ void RBBIDataWrapper::init(const RBBIDataHeader *data, UErrorCode &status) {
fRefCount = 1;
/// todo: maybe add this formally to the builder
UnicodeString hardbreak("!!lookAheadHardBreak");
UnicodeString hardbreak = UNICODE_STRING_SIMPLE("!!lookAheadHardBreak");
if (fRuleString.indexOf(hardbreak) >= 0) {
fLookAheadHardBreak = TRUE;
}
@ -256,6 +256,8 @@ void RBBIDataWrapper::printData() {
#endif
}
U_NAMESPACE_END
//-----------------------------------------------------------------------------
//
// ubrk_swap - byte swap and char encoding swap of RBBI data
@ -374,6 +376,4 @@ ubrk_swap(const UDataSwapper *ds, const void *inData, int32_t length, void *outD
}
U_NAMESPACE_END
#endif /* #if !UCONFIG_NO_BREAK_ITERATION */