[WASM] More optimal way to keep regex decomposition table

This commit is contained in:
Igor Yakovlev
2021-12-09 00:45:57 +01:00
parent 3e9ee8cf6f
commit 72e360be83
3 changed files with 352 additions and 2041 deletions
@@ -777,9 +777,6 @@ internal class Lexer(val patternString: String, flags: Int) {
fun hasDecompositionNonNullCanClass(ch: Int): Boolean =
(ch == 0x0340) or (ch == 0x0341) or (ch == 0x0343) or (ch == 0x0344)
/** Gets decomposition for given codepoint from decomposition mappings table. */
fun getDecomposition(ch: Int): IntArray? = getDecompositionInternal(ch)
// =============================================================================================================
/**