ICU-2092 Code Review changes
X-SVN-Rev: 14387
This commit is contained in:
parent
4de846b86d
commit
44fe5a69ee
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user