]> granicus.if.org Git - icu/commitdiff
ICU-13194 Safe tables, make C and Java code closer.
authorAndy Heninger <andy.heninger@gmail.com>
Tue, 3 Apr 2018 05:12:36 +0000 (05:12 +0000)
committerAndy Heninger <andy.heninger@gmail.com>
Tue, 3 Apr 2018 05:12:36 +0000 (05:12 +0000)
X-SVN-Rev: 41190

icu4j/main/classes/core/src/com/ibm/icu/text/RBBITableBuilder.java

index c511a5a16cebf54c800b43b2405a9fa7d2918dae..748c04eb2dd685a4f125a9b30c9293e8748d26b1 100644 (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();