Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(1043)

Unified Diff: main/classes/core/src/com/ibm/icu/text/RuleBasedBreakIterator.java

Issue 121870043: ICU ticket #10939: ICU4J optionally read data from .dat and .res (Closed) Base URL: http://source.icu-project.org/repos/icu/icu4j/branches/markus/mapdata/
Patch Set: code review changes r36102 Created 9 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: main/classes/core/src/com/ibm/icu/text/RuleBasedBreakIterator.java
===================================================================
--- main/classes/core/src/com/ibm/icu/text/RuleBasedBreakIterator.java (revision 36076)
+++ main/classes/core/src/com/ibm/icu/text/RuleBasedBreakIterator.java (revision 36102)
@@ -1200,7 +1200,7 @@
int state = START_STATE;
int row = fRData.getRowIndex(state);
short category = 3;
- short flagsState = stateTable[RBBIDataWrapper.FLAGS+1];
+ int flagsState = fRData.getStateTableFlags(stateTable);
int mode = RBBI_RUN;
if ((flagsState & RBBIDataWrapper.RBBI_BOF_REQUIRED) != 0) {
category = 2;
@@ -1373,7 +1373,7 @@
int initialPosition = 0;
int lookaheadResult = 0;
boolean lookAheadHardBreak =
- (stateTable[RBBIDataWrapper.FLAGS+1] & RBBIDataWrapper.RBBI_LOOKAHEAD_HARD_BREAK) != 0;
+ (fRData.getStateTableFlags(stateTable) & RBBIDataWrapper.RBBI_LOOKAHEAD_HARD_BREAK) != 0;
// handlePrevious() never gets the rule status.
// Flag the status as invalid; if the user ever asks for status, we will need
@@ -1392,7 +1392,7 @@
row = fRData.getRowIndex(state);
category = 3; // TODO: obsolete? from the old start/run mode scheme?
mode = RBBI_RUN;
- if ((stateTable[RBBIDataWrapper.FLAGS+1] & RBBIDataWrapper.RBBI_BOF_REQUIRED) != 0) {
+ if ((fRData.getStateTableFlags(stateTable) & RBBIDataWrapper.RBBI_BOF_REQUIRED) != 0) {
category = 2;
mode = RBBI_START;
}
« no previous file with comments | « main/classes/core/src/com/ibm/icu/text/RBBIRuleBuilder.java ('k') | main/classes/core/src/com/ibm/icu/text/SpoofChecker.java » ('j') | no next file with comments »

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b