ICU-2092 Code Review changes

X-SVN-Rev: 14387
This commit is contained in:
Andy Heninger 2004-01-23 01:25:19 +00:00
parent 4de846b86d
commit 44fe5a69ee
2 changed files with 8 additions and 3 deletions

View File

@ -89,9 +89,6 @@ U_NAMESPACE_BEGIN
//----------------------------------------------------------------------------------------
RBBIRuleScanner::RBBIRuleScanner(RBBIRuleBuilder *rb)
{
if (U_FAILURE(*rb->fStatus)) {
return;
}
fRB = rb;
fStackPtr = 0;
fStack[fStackPtr] = 0;
@ -117,6 +114,12 @@ RBBIRuleScanner::RBBIRuleScanner(RBBIRuleBuilder *rb)
fCharNum = 0;
fQuoteMode = FALSE;
// Do not check status until after all critical fields are sufficiently initialized
// that the destructor can run cleanly.
if (U_FAILURE(*rb->fStatus)) {
return;
}
//
// Set up the constant Unicode Sets.
// Note: These could be made static, lazily initialized, and shared among

View File

@ -148,6 +148,8 @@ public:
* whose internal tables live in a memory-mapped file. "image" is an
* ICU UDataMemory handle for the pre-compiled break iterator tables.
* @param image handle to the memory image for the break iterator data.
* Ownership of the UDataMemory handle passes to the Break Iterator,
* which will be responsible for closing it when it is no longer needed.
* @param status Information on any errors encountered.
* @see udata_open
* @see #getBinaryRules