ICU-13194 Safe tables, make C and Java code closer.

X-SVN-Rev: 41190
This commit is contained in:
Andy Heninger 2018-04-03 05:12:36 +00:00
parent 962ccb4a48
commit 15d9f3a9ce

View file

@ -1110,15 +1110,9 @@ class RBBITableBuilder {
* Synthesize a safe state table from the main state table.
*/
void buildSafeReverseTable() {
// Find safe char class pairs.
// make a state table row for each trailing class, and map from class to row.
// For each pair
// startRow[p1] = p2
// p2row[p2] = stopRow
// For each unfilled in cell
// set to row corresponding to its column.
// Safe Reverse table construction is described in more detail in the corresponding
// function in ICU4C, in source/common/rbbitblb.cpp. Not duplicated here because
// it is too likely to get out of sync.
// Each safe pair is stored as two chars in the safePair stringBuilder.
StringBuilder safePairs = new StringBuilder();