diff --git a/lang/af/af.wasm b/lang/af/af.wasm index 83486371..6a4dbc98 100644 Binary files a/lang/af/af.wasm and b/lang/af/af.wasm differ diff --git a/lang/af/src/hyphenEngine.ts b/lang/af/src/hyphenEngine.ts index 951e06e1..24f2f431 100644 --- a/lang/af/src/hyphenEngine.ts +++ b/lang/af/src/hyphenEngine.ts @@ -316,13 +316,13 @@ function select0(ith: i32, startByte: i32, endByte: i32): i32 { do { ith += run; do { + if (bytePos > endByte) { + return 0; + } dWord = ~load(bytePos); dWord0Count = popcnt(dWord); count += dWord0Count; bytePos += 4; - if (bytePos > endByte) { - return 0; - } } while (count < ith); count -= dWord0Count; bytePos -= 4; diff --git a/lang/as/as.wasm b/lang/as/as.wasm index 0097dfac..33f7fc4b 100644 Binary files a/lang/as/as.wasm and b/lang/as/as.wasm differ diff --git a/lang/as/src/hyphenEngine.ts b/lang/as/src/hyphenEngine.ts index 951e06e1..24f2f431 100644 --- a/lang/as/src/hyphenEngine.ts +++ b/lang/as/src/hyphenEngine.ts @@ -316,13 +316,13 @@ function select0(ith: i32, startByte: i32, endByte: i32): i32 { do { ith += run; do { + if (bytePos > endByte) { + return 0; + } dWord = ~load(bytePos); dWord0Count = popcnt(dWord); count += dWord0Count; bytePos += 4; - if (bytePos > endByte) { - return 0; - } } while (count < ith); count -= dWord0Count; bytePos -= 4; diff --git a/lang/be/be.wasm b/lang/be/be.wasm index 71c98763..309ebe8d 100644 Binary files a/lang/be/be.wasm and b/lang/be/be.wasm differ diff --git a/lang/be/src/hyphenEngine.ts b/lang/be/src/hyphenEngine.ts index 951e06e1..24f2f431 100644 --- a/lang/be/src/hyphenEngine.ts +++ b/lang/be/src/hyphenEngine.ts @@ -316,13 +316,13 @@ function select0(ith: i32, startByte: i32, endByte: i32): i32 { do { ith += run; do { + if (bytePos > endByte) { + return 0; + } dWord = ~load(bytePos); dWord0Count = popcnt(dWord); count += dWord0Count; bytePos += 4; - if (bytePos > endByte) { - return 0; - } } while (count < ith); count -= dWord0Count; bytePos -= 4; diff --git a/lang/bg/bg.wasm b/lang/bg/bg.wasm index 7b31ddcf..00a7c8c1 100644 Binary files a/lang/bg/bg.wasm and b/lang/bg/bg.wasm differ diff --git a/lang/bg/src/hyphenEngine.ts b/lang/bg/src/hyphenEngine.ts index 951e06e1..24f2f431 100644 --- a/lang/bg/src/hyphenEngine.ts +++ b/lang/bg/src/hyphenEngine.ts @@ -316,13 +316,13 @@ function select0(ith: i32, startByte: i32, endByte: i32): i32 { do { ith += run; do { + if (bytePos > endByte) { + return 0; + } dWord = ~load(bytePos); dWord0Count = popcnt(dWord); count += dWord0Count; bytePos += 4; - if (bytePos > endByte) { - return 0; - } } while (count < ith); count -= dWord0Count; bytePos -= 4; diff --git a/lang/bn/bn.wasm b/lang/bn/bn.wasm index 067b7f6b..db853eb1 100644 Binary files a/lang/bn/bn.wasm and b/lang/bn/bn.wasm differ diff --git a/lang/bn/src/hyphenEngine.ts b/lang/bn/src/hyphenEngine.ts index 951e06e1..24f2f431 100644 --- a/lang/bn/src/hyphenEngine.ts +++ b/lang/bn/src/hyphenEngine.ts @@ -316,13 +316,13 @@ function select0(ith: i32, startByte: i32, endByte: i32): i32 { do { ith += run; do { + if (bytePos > endByte) { + return 0; + } dWord = ~load(bytePos); dWord0Count = popcnt(dWord); count += dWord0Count; bytePos += 4; - if (bytePos > endByte) { - return 0; - } } while (count < ith); count -= dWord0Count; bytePos -= 4; diff --git a/lang/ca/ca.wasm b/lang/ca/ca.wasm index b937b463..8068e410 100644 Binary files a/lang/ca/ca.wasm and b/lang/ca/ca.wasm differ diff --git a/lang/ca/src/hyphenEngine.ts b/lang/ca/src/hyphenEngine.ts index 951e06e1..24f2f431 100644 --- a/lang/ca/src/hyphenEngine.ts +++ b/lang/ca/src/hyphenEngine.ts @@ -316,13 +316,13 @@ function select0(ith: i32, startByte: i32, endByte: i32): i32 { do { ith += run; do { + if (bytePos > endByte) { + return 0; + } dWord = ~load(bytePos); dWord0Count = popcnt(dWord); count += dWord0Count; bytePos += 4; - if (bytePos > endByte) { - return 0; - } } while (count < ith); count -= dWord0Count; bytePos -= 4; diff --git a/lang/cs/cs.wasm b/lang/cs/cs.wasm index cc242c05..2c4ddf9e 100644 Binary files a/lang/cs/cs.wasm and b/lang/cs/cs.wasm differ diff --git a/lang/cs/src/hyphenEngine.ts b/lang/cs/src/hyphenEngine.ts index 951e06e1..24f2f431 100644 --- a/lang/cs/src/hyphenEngine.ts +++ b/lang/cs/src/hyphenEngine.ts @@ -316,13 +316,13 @@ function select0(ith: i32, startByte: i32, endByte: i32): i32 { do { ith += run; do { + if (bytePos > endByte) { + return 0; + } dWord = ~load(bytePos); dWord0Count = popcnt(dWord); count += dWord0Count; bytePos += 4; - if (bytePos > endByte) { - return 0; - } } while (count < ith); count -= dWord0Count; bytePos -= 4; diff --git a/lang/cy/cy.wasm b/lang/cy/cy.wasm index 4a8c3f3b..4170831c 100644 Binary files a/lang/cy/cy.wasm and b/lang/cy/cy.wasm differ diff --git a/lang/cy/src/hyphenEngine.ts b/lang/cy/src/hyphenEngine.ts index 951e06e1..24f2f431 100644 --- a/lang/cy/src/hyphenEngine.ts +++ b/lang/cy/src/hyphenEngine.ts @@ -316,13 +316,13 @@ function select0(ith: i32, startByte: i32, endByte: i32): i32 { do { ith += run; do { + if (bytePos > endByte) { + return 0; + } dWord = ~load(bytePos); dWord0Count = popcnt(dWord); count += dWord0Count; bytePos += 4; - if (bytePos > endByte) { - return 0; - } } while (count < ith); count -= dWord0Count; bytePos -= 4; diff --git a/lang/da/da.wasm b/lang/da/da.wasm index 7f61893c..2318f3b8 100644 Binary files a/lang/da/da.wasm and b/lang/da/da.wasm differ diff --git a/lang/da/src/hyphenEngine.ts b/lang/da/src/hyphenEngine.ts index 951e06e1..24f2f431 100644 --- a/lang/da/src/hyphenEngine.ts +++ b/lang/da/src/hyphenEngine.ts @@ -316,13 +316,13 @@ function select0(ith: i32, startByte: i32, endByte: i32): i32 { do { ith += run; do { + if (bytePos > endByte) { + return 0; + } dWord = ~load(bytePos); dWord0Count = popcnt(dWord); count += dWord0Count; bytePos += 4; - if (bytePos > endByte) { - return 0; - } } while (count < ith); count -= dWord0Count; bytePos -= 4; diff --git a/lang/de/de.wasm b/lang/de/de.wasm index 57721169..8f9c614b 100644 Binary files a/lang/de/de.wasm and b/lang/de/de.wasm differ diff --git a/lang/de/src/hyphenEngine.ts b/lang/de/src/hyphenEngine.ts index 951e06e1..24f2f431 100644 --- a/lang/de/src/hyphenEngine.ts +++ b/lang/de/src/hyphenEngine.ts @@ -316,13 +316,13 @@ function select0(ith: i32, startByte: i32, endByte: i32): i32 { do { ith += run; do { + if (bytePos > endByte) { + return 0; + } dWord = ~load(bytePos); dWord0Count = popcnt(dWord); count += dWord0Count; bytePos += 4; - if (bytePos > endByte) { - return 0; - } } while (count < ith); count -= dWord0Count; bytePos -= 4; diff --git a/lang/el-monoton/el-monoton.wasm b/lang/el-monoton/el-monoton.wasm index 60a79cc7..a78812c4 100644 Binary files a/lang/el-monoton/el-monoton.wasm and b/lang/el-monoton/el-monoton.wasm differ diff --git a/lang/el-monoton/src/hyphenEngine.ts b/lang/el-monoton/src/hyphenEngine.ts index 951e06e1..24f2f431 100644 --- a/lang/el-monoton/src/hyphenEngine.ts +++ b/lang/el-monoton/src/hyphenEngine.ts @@ -316,13 +316,13 @@ function select0(ith: i32, startByte: i32, endByte: i32): i32 { do { ith += run; do { + if (bytePos > endByte) { + return 0; + } dWord = ~load(bytePos); dWord0Count = popcnt(dWord); count += dWord0Count; bytePos += 4; - if (bytePos > endByte) { - return 0; - } } while (count < ith); count -= dWord0Count; bytePos -= 4; diff --git a/lang/el-polyton/el-polyton.wasm b/lang/el-polyton/el-polyton.wasm index bdd67426..275c5fc5 100644 Binary files a/lang/el-polyton/el-polyton.wasm and b/lang/el-polyton/el-polyton.wasm differ diff --git a/lang/el-polyton/src/hyphenEngine.ts b/lang/el-polyton/src/hyphenEngine.ts index 951e06e1..24f2f431 100644 --- a/lang/el-polyton/src/hyphenEngine.ts +++ b/lang/el-polyton/src/hyphenEngine.ts @@ -316,13 +316,13 @@ function select0(ith: i32, startByte: i32, endByte: i32): i32 { do { ith += run; do { + if (bytePos > endByte) { + return 0; + } dWord = ~load(bytePos); dWord0Count = popcnt(dWord); count += dWord0Count; bytePos += 4; - if (bytePos > endByte) { - return 0; - } } while (count < ith); count -= dWord0Count; bytePos -= 4; diff --git a/lang/en-gb/en-gb.wasm b/lang/en-gb/en-gb.wasm index 733c0d17..57eeb116 100644 Binary files a/lang/en-gb/en-gb.wasm and b/lang/en-gb/en-gb.wasm differ diff --git a/lang/en-gb/src/hyphenEngine.ts b/lang/en-gb/src/hyphenEngine.ts index 951e06e1..24f2f431 100644 --- a/lang/en-gb/src/hyphenEngine.ts +++ b/lang/en-gb/src/hyphenEngine.ts @@ -316,13 +316,13 @@ function select0(ith: i32, startByte: i32, endByte: i32): i32 { do { ith += run; do { + if (bytePos > endByte) { + return 0; + } dWord = ~load(bytePos); dWord0Count = popcnt(dWord); count += dWord0Count; bytePos += 4; - if (bytePos > endByte) { - return 0; - } } while (count < ith); count -= dWord0Count; bytePos -= 4; diff --git a/lang/en-us/en-us.wasm b/lang/en-us/en-us.wasm index 14d3c741..6227f936 100644 Binary files a/lang/en-us/en-us.wasm and b/lang/en-us/en-us.wasm differ diff --git a/lang/en-us/src/hyphenEngine.ts b/lang/en-us/src/hyphenEngine.ts index 951e06e1..24f2f431 100644 --- a/lang/en-us/src/hyphenEngine.ts +++ b/lang/en-us/src/hyphenEngine.ts @@ -316,13 +316,13 @@ function select0(ith: i32, startByte: i32, endByte: i32): i32 { do { ith += run; do { + if (bytePos > endByte) { + return 0; + } dWord = ~load(bytePos); dWord0Count = popcnt(dWord); count += dWord0Count; bytePos += 4; - if (bytePos > endByte) { - return 0; - } } while (count < ith); count -= dWord0Count; bytePos -= 4; diff --git a/lang/eo/eo.wasm b/lang/eo/eo.wasm index b4fdc7b5..5adf85f5 100644 Binary files a/lang/eo/eo.wasm and b/lang/eo/eo.wasm differ diff --git a/lang/eo/src/hyphenEngine.ts b/lang/eo/src/hyphenEngine.ts index 951e06e1..24f2f431 100644 --- a/lang/eo/src/hyphenEngine.ts +++ b/lang/eo/src/hyphenEngine.ts @@ -316,13 +316,13 @@ function select0(ith: i32, startByte: i32, endByte: i32): i32 { do { ith += run; do { + if (bytePos > endByte) { + return 0; + } dWord = ~load(bytePos); dWord0Count = popcnt(dWord); count += dWord0Count; bytePos += 4; - if (bytePos > endByte) { - return 0; - } } while (count < ith); count -= dWord0Count; bytePos -= 4; diff --git a/lang/es/es.wasm b/lang/es/es.wasm index 4431d824..fedd101a 100644 Binary files a/lang/es/es.wasm and b/lang/es/es.wasm differ diff --git a/lang/es/src/hyphenEngine.ts b/lang/es/src/hyphenEngine.ts index 951e06e1..24f2f431 100644 --- a/lang/es/src/hyphenEngine.ts +++ b/lang/es/src/hyphenEngine.ts @@ -316,13 +316,13 @@ function select0(ith: i32, startByte: i32, endByte: i32): i32 { do { ith += run; do { + if (bytePos > endByte) { + return 0; + } dWord = ~load(bytePos); dWord0Count = popcnt(dWord); count += dWord0Count; bytePos += 4; - if (bytePos > endByte) { - return 0; - } } while (count < ith); count -= dWord0Count; bytePos -= 4; diff --git a/lang/et/et.wasm b/lang/et/et.wasm index 4a89ffca..e325b626 100644 Binary files a/lang/et/et.wasm and b/lang/et/et.wasm differ diff --git a/lang/et/src/hyphenEngine.ts b/lang/et/src/hyphenEngine.ts index 951e06e1..24f2f431 100644 --- a/lang/et/src/hyphenEngine.ts +++ b/lang/et/src/hyphenEngine.ts @@ -316,13 +316,13 @@ function select0(ith: i32, startByte: i32, endByte: i32): i32 { do { ith += run; do { + if (bytePos > endByte) { + return 0; + } dWord = ~load(bytePos); dWord0Count = popcnt(dWord); count += dWord0Count; bytePos += 4; - if (bytePos > endByte) { - return 0; - } } while (count < ith); count -= dWord0Count; bytePos -= 4; diff --git a/lang/eu/eu.wasm b/lang/eu/eu.wasm index 43707f85..939a58e0 100644 Binary files a/lang/eu/eu.wasm and b/lang/eu/eu.wasm differ diff --git a/lang/eu/src/hyphenEngine.ts b/lang/eu/src/hyphenEngine.ts index 951e06e1..24f2f431 100644 --- a/lang/eu/src/hyphenEngine.ts +++ b/lang/eu/src/hyphenEngine.ts @@ -316,13 +316,13 @@ function select0(ith: i32, startByte: i32, endByte: i32): i32 { do { ith += run; do { + if (bytePos > endByte) { + return 0; + } dWord = ~load(bytePos); dWord0Count = popcnt(dWord); count += dWord0Count; bytePos += 4; - if (bytePos > endByte) { - return 0; - } } while (count < ith); count -= dWord0Count; bytePos -= 4; diff --git a/lang/fi/fi.wasm b/lang/fi/fi.wasm index 94d3011c..cac94d36 100644 Binary files a/lang/fi/fi.wasm and b/lang/fi/fi.wasm differ diff --git a/lang/fi/src/hyphenEngine.ts b/lang/fi/src/hyphenEngine.ts index 951e06e1..24f2f431 100644 --- a/lang/fi/src/hyphenEngine.ts +++ b/lang/fi/src/hyphenEngine.ts @@ -316,13 +316,13 @@ function select0(ith: i32, startByte: i32, endByte: i32): i32 { do { ith += run; do { + if (bytePos > endByte) { + return 0; + } dWord = ~load(bytePos); dWord0Count = popcnt(dWord); count += dWord0Count; bytePos += 4; - if (bytePos > endByte) { - return 0; - } } while (count < ith); count -= dWord0Count; bytePos -= 4; diff --git a/lang/fr/fr.wasm b/lang/fr/fr.wasm index 62bf1b02..092fbc59 100644 Binary files a/lang/fr/fr.wasm and b/lang/fr/fr.wasm differ diff --git a/lang/fr/src/hyphenEngine.ts b/lang/fr/src/hyphenEngine.ts index 951e06e1..24f2f431 100644 --- a/lang/fr/src/hyphenEngine.ts +++ b/lang/fr/src/hyphenEngine.ts @@ -316,13 +316,13 @@ function select0(ith: i32, startByte: i32, endByte: i32): i32 { do { ith += run; do { + if (bytePos > endByte) { + return 0; + } dWord = ~load(bytePos); dWord0Count = popcnt(dWord); count += dWord0Count; bytePos += 4; - if (bytePos > endByte) { - return 0; - } } while (count < ith); count -= dWord0Count; bytePos -= 4; diff --git a/lang/fur/fur.wasm b/lang/fur/fur.wasm index 6d003c10..0c6e1573 100644 Binary files a/lang/fur/fur.wasm and b/lang/fur/fur.wasm differ diff --git a/lang/fur/src/hyphenEngine.ts b/lang/fur/src/hyphenEngine.ts index 951e06e1..24f2f431 100644 --- a/lang/fur/src/hyphenEngine.ts +++ b/lang/fur/src/hyphenEngine.ts @@ -316,13 +316,13 @@ function select0(ith: i32, startByte: i32, endByte: i32): i32 { do { ith += run; do { + if (bytePos > endByte) { + return 0; + } dWord = ~load(bytePos); dWord0Count = popcnt(dWord); count += dWord0Count; bytePos += 4; - if (bytePos > endByte) { - return 0; - } } while (count < ith); count -= dWord0Count; bytePos -= 4; diff --git a/lang/ga/ga.wasm b/lang/ga/ga.wasm index 9731c01d..1c7a3895 100644 Binary files a/lang/ga/ga.wasm and b/lang/ga/ga.wasm differ diff --git a/lang/ga/src/hyphenEngine.ts b/lang/ga/src/hyphenEngine.ts index 951e06e1..24f2f431 100644 --- a/lang/ga/src/hyphenEngine.ts +++ b/lang/ga/src/hyphenEngine.ts @@ -316,13 +316,13 @@ function select0(ith: i32, startByte: i32, endByte: i32): i32 { do { ith += run; do { + if (bytePos > endByte) { + return 0; + } dWord = ~load(bytePos); dWord0Count = popcnt(dWord); count += dWord0Count; bytePos += 4; - if (bytePos > endByte) { - return 0; - } } while (count < ith); count -= dWord0Count; bytePos -= 4; diff --git a/lang/gl/gl.wasm b/lang/gl/gl.wasm index 6b697179..b7767c3b 100644 Binary files a/lang/gl/gl.wasm and b/lang/gl/gl.wasm differ diff --git a/lang/gl/src/hyphenEngine.ts b/lang/gl/src/hyphenEngine.ts index 951e06e1..24f2f431 100644 --- a/lang/gl/src/hyphenEngine.ts +++ b/lang/gl/src/hyphenEngine.ts @@ -316,13 +316,13 @@ function select0(ith: i32, startByte: i32, endByte: i32): i32 { do { ith += run; do { + if (bytePos > endByte) { + return 0; + } dWord = ~load(bytePos); dWord0Count = popcnt(dWord); count += dWord0Count; bytePos += 4; - if (bytePos > endByte) { - return 0; - } } while (count < ith); count -= dWord0Count; bytePos -= 4; diff --git a/lang/gu/gu.wasm b/lang/gu/gu.wasm index ec0dc414..c13c7191 100644 Binary files a/lang/gu/gu.wasm and b/lang/gu/gu.wasm differ diff --git a/lang/gu/src/hyphenEngine.ts b/lang/gu/src/hyphenEngine.ts index 951e06e1..24f2f431 100644 --- a/lang/gu/src/hyphenEngine.ts +++ b/lang/gu/src/hyphenEngine.ts @@ -316,13 +316,13 @@ function select0(ith: i32, startByte: i32, endByte: i32): i32 { do { ith += run; do { + if (bytePos > endByte) { + return 0; + } dWord = ~load(bytePos); dWord0Count = popcnt(dWord); count += dWord0Count; bytePos += 4; - if (bytePos > endByte) { - return 0; - } } while (count < ith); count -= dWord0Count; bytePos -= 4; diff --git a/lang/hi/hi.wasm b/lang/hi/hi.wasm index 0b04c402..92b013a1 100644 Binary files a/lang/hi/hi.wasm and b/lang/hi/hi.wasm differ diff --git a/lang/hi/src/hyphenEngine.ts b/lang/hi/src/hyphenEngine.ts index 951e06e1..24f2f431 100644 --- a/lang/hi/src/hyphenEngine.ts +++ b/lang/hi/src/hyphenEngine.ts @@ -316,13 +316,13 @@ function select0(ith: i32, startByte: i32, endByte: i32): i32 { do { ith += run; do { + if (bytePos > endByte) { + return 0; + } dWord = ~load(bytePos); dWord0Count = popcnt(dWord); count += dWord0Count; bytePos += 4; - if (bytePos > endByte) { - return 0; - } } while (count < ith); count -= dWord0Count; bytePos -= 4; diff --git a/lang/hr/hr.wasm b/lang/hr/hr.wasm index 00ae9064..ca3abb6e 100644 Binary files a/lang/hr/hr.wasm and b/lang/hr/hr.wasm differ diff --git a/lang/hr/src/hyphenEngine.ts b/lang/hr/src/hyphenEngine.ts index 951e06e1..24f2f431 100644 --- a/lang/hr/src/hyphenEngine.ts +++ b/lang/hr/src/hyphenEngine.ts @@ -316,13 +316,13 @@ function select0(ith: i32, startByte: i32, endByte: i32): i32 { do { ith += run; do { + if (bytePos > endByte) { + return 0; + } dWord = ~load(bytePos); dWord0Count = popcnt(dWord); count += dWord0Count; bytePos += 4; - if (bytePos > endByte) { - return 0; - } } while (count < ith); count -= dWord0Count; bytePos -= 4; diff --git a/lang/hsb/hsb.wasm b/lang/hsb/hsb.wasm index d7b25888..0b70813a 100644 Binary files a/lang/hsb/hsb.wasm and b/lang/hsb/hsb.wasm differ diff --git a/lang/hsb/src/hyphenEngine.ts b/lang/hsb/src/hyphenEngine.ts index 951e06e1..24f2f431 100644 --- a/lang/hsb/src/hyphenEngine.ts +++ b/lang/hsb/src/hyphenEngine.ts @@ -316,13 +316,13 @@ function select0(ith: i32, startByte: i32, endByte: i32): i32 { do { ith += run; do { + if (bytePos > endByte) { + return 0; + } dWord = ~load(bytePos); dWord0Count = popcnt(dWord); count += dWord0Count; bytePos += 4; - if (bytePos > endByte) { - return 0; - } } while (count < ith); count -= dWord0Count; bytePos -= 4; diff --git a/lang/hu/hu.wasm b/lang/hu/hu.wasm index 24020e39..56a83721 100644 Binary files a/lang/hu/hu.wasm and b/lang/hu/hu.wasm differ diff --git a/lang/hu/src/hyphenEngine.ts b/lang/hu/src/hyphenEngine.ts index 951e06e1..24f2f431 100644 --- a/lang/hu/src/hyphenEngine.ts +++ b/lang/hu/src/hyphenEngine.ts @@ -316,13 +316,13 @@ function select0(ith: i32, startByte: i32, endByte: i32): i32 { do { ith += run; do { + if (bytePos > endByte) { + return 0; + } dWord = ~load(bytePos); dWord0Count = popcnt(dWord); count += dWord0Count; bytePos += 4; - if (bytePos > endByte) { - return 0; - } } while (count < ith); count -= dWord0Count; bytePos -= 4; diff --git a/lang/hy/hy.wasm b/lang/hy/hy.wasm index 60aca3f4..6bfbefe3 100644 Binary files a/lang/hy/hy.wasm and b/lang/hy/hy.wasm differ diff --git a/lang/hy/src/hyphenEngine.ts b/lang/hy/src/hyphenEngine.ts index 951e06e1..24f2f431 100644 --- a/lang/hy/src/hyphenEngine.ts +++ b/lang/hy/src/hyphenEngine.ts @@ -316,13 +316,13 @@ function select0(ith: i32, startByte: i32, endByte: i32): i32 { do { ith += run; do { + if (bytePos > endByte) { + return 0; + } dWord = ~load(bytePos); dWord0Count = popcnt(dWord); count += dWord0Count; bytePos += 4; - if (bytePos > endByte) { - return 0; - } } while (count < ith); count -= dWord0Count; bytePos -= 4; diff --git a/lang/ia/ia.wasm b/lang/ia/ia.wasm index 313f1b9f..edb4a786 100644 Binary files a/lang/ia/ia.wasm and b/lang/ia/ia.wasm differ diff --git a/lang/ia/src/hyphenEngine.ts b/lang/ia/src/hyphenEngine.ts index 951e06e1..24f2f431 100644 --- a/lang/ia/src/hyphenEngine.ts +++ b/lang/ia/src/hyphenEngine.ts @@ -316,13 +316,13 @@ function select0(ith: i32, startByte: i32, endByte: i32): i32 { do { ith += run; do { + if (bytePos > endByte) { + return 0; + } dWord = ~load(bytePos); dWord0Count = popcnt(dWord); count += dWord0Count; bytePos += 4; - if (bytePos > endByte) { - return 0; - } } while (count < ith); count -= dWord0Count; bytePos -= 4; diff --git a/lang/id/id.wasm b/lang/id/id.wasm index 8b4c8ae3..d8220b4d 100644 Binary files a/lang/id/id.wasm and b/lang/id/id.wasm differ diff --git a/lang/id/src/hyphenEngine.ts b/lang/id/src/hyphenEngine.ts index 951e06e1..24f2f431 100644 --- a/lang/id/src/hyphenEngine.ts +++ b/lang/id/src/hyphenEngine.ts @@ -316,13 +316,13 @@ function select0(ith: i32, startByte: i32, endByte: i32): i32 { do { ith += run; do { + if (bytePos > endByte) { + return 0; + } dWord = ~load(bytePos); dWord0Count = popcnt(dWord); count += dWord0Count; bytePos += 4; - if (bytePos > endByte) { - return 0; - } } while (count < ith); count -= dWord0Count; bytePos -= 4; diff --git a/lang/is/is.wasm b/lang/is/is.wasm index 96722446..171f2b1f 100644 Binary files a/lang/is/is.wasm and b/lang/is/is.wasm differ diff --git a/lang/is/src/hyphenEngine.ts b/lang/is/src/hyphenEngine.ts index 951e06e1..24f2f431 100644 --- a/lang/is/src/hyphenEngine.ts +++ b/lang/is/src/hyphenEngine.ts @@ -316,13 +316,13 @@ function select0(ith: i32, startByte: i32, endByte: i32): i32 { do { ith += run; do { + if (bytePos > endByte) { + return 0; + } dWord = ~load(bytePos); dWord0Count = popcnt(dWord); count += dWord0Count; bytePos += 4; - if (bytePos > endByte) { - return 0; - } } while (count < ith); count -= dWord0Count; bytePos -= 4; diff --git a/lang/it/it.wasm b/lang/it/it.wasm index 618d1e37..4af38e39 100644 Binary files a/lang/it/it.wasm and b/lang/it/it.wasm differ diff --git a/lang/it/src/hyphenEngine.ts b/lang/it/src/hyphenEngine.ts index 951e06e1..24f2f431 100644 --- a/lang/it/src/hyphenEngine.ts +++ b/lang/it/src/hyphenEngine.ts @@ -316,13 +316,13 @@ function select0(ith: i32, startByte: i32, endByte: i32): i32 { do { ith += run; do { + if (bytePos > endByte) { + return 0; + } dWord = ~load(bytePos); dWord0Count = popcnt(dWord); count += dWord0Count; bytePos += 4; - if (bytePos > endByte) { - return 0; - } } while (count < ith); count -= dWord0Count; bytePos -= 4; diff --git a/lang/ka/ka.wasm b/lang/ka/ka.wasm index 46a6e090..8c18329a 100644 Binary files a/lang/ka/ka.wasm and b/lang/ka/ka.wasm differ diff --git a/lang/ka/src/hyphenEngine.ts b/lang/ka/src/hyphenEngine.ts index 951e06e1..24f2f431 100644 --- a/lang/ka/src/hyphenEngine.ts +++ b/lang/ka/src/hyphenEngine.ts @@ -316,13 +316,13 @@ function select0(ith: i32, startByte: i32, endByte: i32): i32 { do { ith += run; do { + if (bytePos > endByte) { + return 0; + } dWord = ~load(bytePos); dWord0Count = popcnt(dWord); count += dWord0Count; bytePos += 4; - if (bytePos > endByte) { - return 0; - } } while (count < ith); count -= dWord0Count; bytePos -= 4; diff --git a/lang/kmr/kmr.wasm b/lang/kmr/kmr.wasm index 5cf16e50..1df217b8 100644 Binary files a/lang/kmr/kmr.wasm and b/lang/kmr/kmr.wasm differ diff --git a/lang/kmr/src/hyphenEngine.ts b/lang/kmr/src/hyphenEngine.ts index 951e06e1..24f2f431 100644 --- a/lang/kmr/src/hyphenEngine.ts +++ b/lang/kmr/src/hyphenEngine.ts @@ -316,13 +316,13 @@ function select0(ith: i32, startByte: i32, endByte: i32): i32 { do { ith += run; do { + if (bytePos > endByte) { + return 0; + } dWord = ~load(bytePos); dWord0Count = popcnt(dWord); count += dWord0Count; bytePos += 4; - if (bytePos > endByte) { - return 0; - } } while (count < ith); count -= dWord0Count; bytePos -= 4; diff --git a/lang/kn/kn.wasm b/lang/kn/kn.wasm index 9c55fcf2..10c27916 100644 Binary files a/lang/kn/kn.wasm and b/lang/kn/kn.wasm differ diff --git a/lang/kn/src/hyphenEngine.ts b/lang/kn/src/hyphenEngine.ts index 951e06e1..24f2f431 100644 --- a/lang/kn/src/hyphenEngine.ts +++ b/lang/kn/src/hyphenEngine.ts @@ -316,13 +316,13 @@ function select0(ith: i32, startByte: i32, endByte: i32): i32 { do { ith += run; do { + if (bytePos > endByte) { + return 0; + } dWord = ~load(bytePos); dWord0Count = popcnt(dWord); count += dWord0Count; bytePos += 4; - if (bytePos > endByte) { - return 0; - } } while (count < ith); count -= dWord0Count; bytePos -= 4; diff --git a/lang/la/la.wasm b/lang/la/la.wasm index a78007f7..0a798a9e 100644 Binary files a/lang/la/la.wasm and b/lang/la/la.wasm differ diff --git a/lang/la/src/hyphenEngine.ts b/lang/la/src/hyphenEngine.ts index 951e06e1..24f2f431 100644 --- a/lang/la/src/hyphenEngine.ts +++ b/lang/la/src/hyphenEngine.ts @@ -316,13 +316,13 @@ function select0(ith: i32, startByte: i32, endByte: i32): i32 { do { ith += run; do { + if (bytePos > endByte) { + return 0; + } dWord = ~load(bytePos); dWord0Count = popcnt(dWord); count += dWord0Count; bytePos += 4; - if (bytePos > endByte) { - return 0; - } } while (count < ith); count -= dWord0Count; bytePos -= 4; diff --git a/lang/lt/lt.wasm b/lang/lt/lt.wasm index 7dc92072..593a420c 100644 Binary files a/lang/lt/lt.wasm and b/lang/lt/lt.wasm differ diff --git a/lang/lt/src/hyphenEngine.ts b/lang/lt/src/hyphenEngine.ts index 951e06e1..24f2f431 100644 --- a/lang/lt/src/hyphenEngine.ts +++ b/lang/lt/src/hyphenEngine.ts @@ -316,13 +316,13 @@ function select0(ith: i32, startByte: i32, endByte: i32): i32 { do { ith += run; do { + if (bytePos > endByte) { + return 0; + } dWord = ~load(bytePos); dWord0Count = popcnt(dWord); count += dWord0Count; bytePos += 4; - if (bytePos > endByte) { - return 0; - } } while (count < ith); count -= dWord0Count; bytePos -= 4; diff --git a/lang/lv/lv.wasm b/lang/lv/lv.wasm index 34e8a896..e0b37c52 100644 Binary files a/lang/lv/lv.wasm and b/lang/lv/lv.wasm differ diff --git a/lang/lv/src/hyphenEngine.ts b/lang/lv/src/hyphenEngine.ts index 951e06e1..24f2f431 100644 --- a/lang/lv/src/hyphenEngine.ts +++ b/lang/lv/src/hyphenEngine.ts @@ -316,13 +316,13 @@ function select0(ith: i32, startByte: i32, endByte: i32): i32 { do { ith += run; do { + if (bytePos > endByte) { + return 0; + } dWord = ~load(bytePos); dWord0Count = popcnt(dWord); count += dWord0Count; bytePos += 4; - if (bytePos > endByte) { - return 0; - } } while (count < ith); count -= dWord0Count; bytePos -= 4; diff --git a/lang/mk/mk.wasm b/lang/mk/mk.wasm index 82265ce3..f5bb58ff 100644 Binary files a/lang/mk/mk.wasm and b/lang/mk/mk.wasm differ diff --git a/lang/mk/src/hyphenEngine.ts b/lang/mk/src/hyphenEngine.ts index 951e06e1..24f2f431 100644 --- a/lang/mk/src/hyphenEngine.ts +++ b/lang/mk/src/hyphenEngine.ts @@ -316,13 +316,13 @@ function select0(ith: i32, startByte: i32, endByte: i32): i32 { do { ith += run; do { + if (bytePos > endByte) { + return 0; + } dWord = ~load(bytePos); dWord0Count = popcnt(dWord); count += dWord0Count; bytePos += 4; - if (bytePos > endByte) { - return 0; - } } while (count < ith); count -= dWord0Count; bytePos -= 4; diff --git a/lang/ml/ml.wasm b/lang/ml/ml.wasm index ac045c9d..c93e31d9 100644 Binary files a/lang/ml/ml.wasm and b/lang/ml/ml.wasm differ diff --git a/lang/ml/src/hyphenEngine.ts b/lang/ml/src/hyphenEngine.ts index 951e06e1..24f2f431 100644 --- a/lang/ml/src/hyphenEngine.ts +++ b/lang/ml/src/hyphenEngine.ts @@ -316,13 +316,13 @@ function select0(ith: i32, startByte: i32, endByte: i32): i32 { do { ith += run; do { + if (bytePos > endByte) { + return 0; + } dWord = ~load(bytePos); dWord0Count = popcnt(dWord); count += dWord0Count; bytePos += 4; - if (bytePos > endByte) { - return 0; - } } while (count < ith); count -= dWord0Count; bytePos -= 4; diff --git a/lang/mn-cyrl/mn-cyrl.wasm b/lang/mn-cyrl/mn-cyrl.wasm index 03de0283..5958e59c 100644 Binary files a/lang/mn-cyrl/mn-cyrl.wasm and b/lang/mn-cyrl/mn-cyrl.wasm differ diff --git a/lang/mn-cyrl/src/hyphenEngine.ts b/lang/mn-cyrl/src/hyphenEngine.ts index 951e06e1..24f2f431 100644 --- a/lang/mn-cyrl/src/hyphenEngine.ts +++ b/lang/mn-cyrl/src/hyphenEngine.ts @@ -316,13 +316,13 @@ function select0(ith: i32, startByte: i32, endByte: i32): i32 { do { ith += run; do { + if (bytePos > endByte) { + return 0; + } dWord = ~load(bytePos); dWord0Count = popcnt(dWord); count += dWord0Count; bytePos += 4; - if (bytePos > endByte) { - return 0; - } } while (count < ith); count -= dWord0Count; bytePos -= 4; diff --git a/lang/mr/mr.wasm b/lang/mr/mr.wasm index d7718575..08fa5d3c 100644 Binary files a/lang/mr/mr.wasm and b/lang/mr/mr.wasm differ diff --git a/lang/mr/src/hyphenEngine.ts b/lang/mr/src/hyphenEngine.ts index 951e06e1..24f2f431 100644 --- a/lang/mr/src/hyphenEngine.ts +++ b/lang/mr/src/hyphenEngine.ts @@ -316,13 +316,13 @@ function select0(ith: i32, startByte: i32, endByte: i32): i32 { do { ith += run; do { + if (bytePos > endByte) { + return 0; + } dWord = ~load(bytePos); dWord0Count = popcnt(dWord); count += dWord0Count; bytePos += 4; - if (bytePos > endByte) { - return 0; - } } while (count < ith); count -= dWord0Count; bytePos -= 4; diff --git a/lang/nb/nb.wasm b/lang/nb/nb.wasm index 2090b250..3e4f8aaa 100644 Binary files a/lang/nb/nb.wasm and b/lang/nb/nb.wasm differ diff --git a/lang/nb/src/hyphenEngine.ts b/lang/nb/src/hyphenEngine.ts index 951e06e1..24f2f431 100644 --- a/lang/nb/src/hyphenEngine.ts +++ b/lang/nb/src/hyphenEngine.ts @@ -316,13 +316,13 @@ function select0(ith: i32, startByte: i32, endByte: i32): i32 { do { ith += run; do { + if (bytePos > endByte) { + return 0; + } dWord = ~load(bytePos); dWord0Count = popcnt(dWord); count += dWord0Count; bytePos += 4; - if (bytePos > endByte) { - return 0; - } } while (count < ith); count -= dWord0Count; bytePos -= 4; diff --git a/lang/nl/nl.wasm b/lang/nl/nl.wasm index 5b7bd67f..40004d6c 100644 Binary files a/lang/nl/nl.wasm and b/lang/nl/nl.wasm differ diff --git a/lang/nl/src/hyphenEngine.ts b/lang/nl/src/hyphenEngine.ts index 951e06e1..24f2f431 100644 --- a/lang/nl/src/hyphenEngine.ts +++ b/lang/nl/src/hyphenEngine.ts @@ -316,13 +316,13 @@ function select0(ith: i32, startByte: i32, endByte: i32): i32 { do { ith += run; do { + if (bytePos > endByte) { + return 0; + } dWord = ~load(bytePos); dWord0Count = popcnt(dWord); count += dWord0Count; bytePos += 4; - if (bytePos > endByte) { - return 0; - } } while (count < ith); count -= dWord0Count; bytePos -= 4; diff --git a/lang/nn/nn.wasm b/lang/nn/nn.wasm index 5a2502ff..e0cafef6 100644 Binary files a/lang/nn/nn.wasm and b/lang/nn/nn.wasm differ diff --git a/lang/nn/src/hyphenEngine.ts b/lang/nn/src/hyphenEngine.ts index 951e06e1..24f2f431 100644 --- a/lang/nn/src/hyphenEngine.ts +++ b/lang/nn/src/hyphenEngine.ts @@ -316,13 +316,13 @@ function select0(ith: i32, startByte: i32, endByte: i32): i32 { do { ith += run; do { + if (bytePos > endByte) { + return 0; + } dWord = ~load(bytePos); dWord0Count = popcnt(dWord); count += dWord0Count; bytePos += 4; - if (bytePos > endByte) { - return 0; - } } while (count < ith); count -= dWord0Count; bytePos -= 4; diff --git a/lang/no/no.wasm b/lang/no/no.wasm index e487acf7..cd22a2f4 100644 Binary files a/lang/no/no.wasm and b/lang/no/no.wasm differ diff --git a/lang/no/src/hyphenEngine.ts b/lang/no/src/hyphenEngine.ts index 951e06e1..24f2f431 100644 --- a/lang/no/src/hyphenEngine.ts +++ b/lang/no/src/hyphenEngine.ts @@ -316,13 +316,13 @@ function select0(ith: i32, startByte: i32, endByte: i32): i32 { do { ith += run; do { + if (bytePos > endByte) { + return 0; + } dWord = ~load(bytePos); dWord0Count = popcnt(dWord); count += dWord0Count; bytePos += 4; - if (bytePos > endByte) { - return 0; - } } while (count < ith); count -= dWord0Count; bytePos -= 4; diff --git a/lang/oc/oc.wasm b/lang/oc/oc.wasm index ae0f165e..fc216b7e 100644 Binary files a/lang/oc/oc.wasm and b/lang/oc/oc.wasm differ diff --git a/lang/oc/src/hyphenEngine.ts b/lang/oc/src/hyphenEngine.ts index 951e06e1..24f2f431 100644 --- a/lang/oc/src/hyphenEngine.ts +++ b/lang/oc/src/hyphenEngine.ts @@ -316,13 +316,13 @@ function select0(ith: i32, startByte: i32, endByte: i32): i32 { do { ith += run; do { + if (bytePos > endByte) { + return 0; + } dWord = ~load(bytePos); dWord0Count = popcnt(dWord); count += dWord0Count; bytePos += 4; - if (bytePos > endByte) { - return 0; - } } while (count < ith); count -= dWord0Count; bytePos -= 4; diff --git a/lang/or/or.wasm b/lang/or/or.wasm index 24d780ae..8995c018 100644 Binary files a/lang/or/or.wasm and b/lang/or/or.wasm differ diff --git a/lang/or/src/hyphenEngine.ts b/lang/or/src/hyphenEngine.ts index 951e06e1..24f2f431 100644 --- a/lang/or/src/hyphenEngine.ts +++ b/lang/or/src/hyphenEngine.ts @@ -316,13 +316,13 @@ function select0(ith: i32, startByte: i32, endByte: i32): i32 { do { ith += run; do { + if (bytePos > endByte) { + return 0; + } dWord = ~load(bytePos); dWord0Count = popcnt(dWord); count += dWord0Count; bytePos += 4; - if (bytePos > endByte) { - return 0; - } } while (count < ith); count -= dWord0Count; bytePos -= 4; diff --git a/lang/pa/pa.wasm b/lang/pa/pa.wasm index 98784cb1..1c5a70aa 100644 Binary files a/lang/pa/pa.wasm and b/lang/pa/pa.wasm differ diff --git a/lang/pa/src/hyphenEngine.ts b/lang/pa/src/hyphenEngine.ts index 951e06e1..24f2f431 100644 --- a/lang/pa/src/hyphenEngine.ts +++ b/lang/pa/src/hyphenEngine.ts @@ -316,13 +316,13 @@ function select0(ith: i32, startByte: i32, endByte: i32): i32 { do { ith += run; do { + if (bytePos > endByte) { + return 0; + } dWord = ~load(bytePos); dWord0Count = popcnt(dWord); count += dWord0Count; bytePos += 4; - if (bytePos > endByte) { - return 0; - } } while (count < ith); count -= dWord0Count; bytePos -= 4; diff --git a/lang/pl/pl.wasm b/lang/pl/pl.wasm index 3ba1b280..098e8f2e 100644 Binary files a/lang/pl/pl.wasm and b/lang/pl/pl.wasm differ diff --git a/lang/pl/src/hyphenEngine.ts b/lang/pl/src/hyphenEngine.ts index 951e06e1..24f2f431 100644 --- a/lang/pl/src/hyphenEngine.ts +++ b/lang/pl/src/hyphenEngine.ts @@ -316,13 +316,13 @@ function select0(ith: i32, startByte: i32, endByte: i32): i32 { do { ith += run; do { + if (bytePos > endByte) { + return 0; + } dWord = ~load(bytePos); dWord0Count = popcnt(dWord); count += dWord0Count; bytePos += 4; - if (bytePos > endByte) { - return 0; - } } while (count < ith); count -= dWord0Count; bytePos -= 4; diff --git a/lang/pms/pms.wasm b/lang/pms/pms.wasm index c41193d4..2eaebf0a 100644 Binary files a/lang/pms/pms.wasm and b/lang/pms/pms.wasm differ diff --git a/lang/pms/src/hyphenEngine.ts b/lang/pms/src/hyphenEngine.ts index 951e06e1..24f2f431 100644 --- a/lang/pms/src/hyphenEngine.ts +++ b/lang/pms/src/hyphenEngine.ts @@ -316,13 +316,13 @@ function select0(ith: i32, startByte: i32, endByte: i32): i32 { do { ith += run; do { + if (bytePos > endByte) { + return 0; + } dWord = ~load(bytePos); dWord0Count = popcnt(dWord); count += dWord0Count; bytePos += 4; - if (bytePos > endByte) { - return 0; - } } while (count < ith); count -= dWord0Count; bytePos -= 4; diff --git a/lang/pt/pt.wasm b/lang/pt/pt.wasm index 6e85ac7a..674ae5c4 100644 Binary files a/lang/pt/pt.wasm and b/lang/pt/pt.wasm differ diff --git a/lang/pt/src/hyphenEngine.ts b/lang/pt/src/hyphenEngine.ts index 951e06e1..24f2f431 100644 --- a/lang/pt/src/hyphenEngine.ts +++ b/lang/pt/src/hyphenEngine.ts @@ -316,13 +316,13 @@ function select0(ith: i32, startByte: i32, endByte: i32): i32 { do { ith += run; do { + if (bytePos > endByte) { + return 0; + } dWord = ~load(bytePos); dWord0Count = popcnt(dWord); count += dWord0Count; bytePos += 4; - if (bytePos > endByte) { - return 0; - } } while (count < ith); count -= dWord0Count; bytePos -= 4; diff --git a/lang/rm/rm.wasm b/lang/rm/rm.wasm index 3e78ae3d..6a0a6b62 100644 Binary files a/lang/rm/rm.wasm and b/lang/rm/rm.wasm differ diff --git a/lang/rm/src/hyphenEngine.ts b/lang/rm/src/hyphenEngine.ts index 951e06e1..24f2f431 100644 --- a/lang/rm/src/hyphenEngine.ts +++ b/lang/rm/src/hyphenEngine.ts @@ -316,13 +316,13 @@ function select0(ith: i32, startByte: i32, endByte: i32): i32 { do { ith += run; do { + if (bytePos > endByte) { + return 0; + } dWord = ~load(bytePos); dWord0Count = popcnt(dWord); count += dWord0Count; bytePos += 4; - if (bytePos > endByte) { - return 0; - } } while (count < ith); count -= dWord0Count; bytePos -= 4; diff --git a/lang/ro/ro.wasm b/lang/ro/ro.wasm index 6a961f64..eecf85b7 100644 Binary files a/lang/ro/ro.wasm and b/lang/ro/ro.wasm differ diff --git a/lang/ro/src/hyphenEngine.ts b/lang/ro/src/hyphenEngine.ts index 951e06e1..24f2f431 100644 --- a/lang/ro/src/hyphenEngine.ts +++ b/lang/ro/src/hyphenEngine.ts @@ -316,13 +316,13 @@ function select0(ith: i32, startByte: i32, endByte: i32): i32 { do { ith += run; do { + if (bytePos > endByte) { + return 0; + } dWord = ~load(bytePos); dWord0Count = popcnt(dWord); count += dWord0Count; bytePos += 4; - if (bytePos > endByte) { - return 0; - } } while (count < ith); count -= dWord0Count; bytePos -= 4; diff --git a/lang/ru/ru.wasm b/lang/ru/ru.wasm index a2981c52..249aa4d7 100644 Binary files a/lang/ru/ru.wasm and b/lang/ru/ru.wasm differ diff --git a/lang/ru/src/hyphenEngine.ts b/lang/ru/src/hyphenEngine.ts index 951e06e1..24f2f431 100644 --- a/lang/ru/src/hyphenEngine.ts +++ b/lang/ru/src/hyphenEngine.ts @@ -316,13 +316,13 @@ function select0(ith: i32, startByte: i32, endByte: i32): i32 { do { ith += run; do { + if (bytePos > endByte) { + return 0; + } dWord = ~load(bytePos); dWord0Count = popcnt(dWord); count += dWord0Count; bytePos += 4; - if (bytePos > endByte) { - return 0; - } } while (count < ith); count -= dWord0Count; bytePos -= 4; diff --git a/lang/sh-cyrl/sh-cyrl.wasm b/lang/sh-cyrl/sh-cyrl.wasm index 4d4d40de..fe50fc54 100644 Binary files a/lang/sh-cyrl/sh-cyrl.wasm and b/lang/sh-cyrl/sh-cyrl.wasm differ diff --git a/lang/sh-cyrl/src/hyphenEngine.ts b/lang/sh-cyrl/src/hyphenEngine.ts index 951e06e1..24f2f431 100644 --- a/lang/sh-cyrl/src/hyphenEngine.ts +++ b/lang/sh-cyrl/src/hyphenEngine.ts @@ -316,13 +316,13 @@ function select0(ith: i32, startByte: i32, endByte: i32): i32 { do { ith += run; do { + if (bytePos > endByte) { + return 0; + } dWord = ~load(bytePos); dWord0Count = popcnt(dWord); count += dWord0Count; bytePos += 4; - if (bytePos > endByte) { - return 0; - } } while (count < ith); count -= dWord0Count; bytePos -= 4; diff --git a/lang/sh-latn/sh-latn.wasm b/lang/sh-latn/sh-latn.wasm index 54ae12cf..0bfbce3a 100644 Binary files a/lang/sh-latn/sh-latn.wasm and b/lang/sh-latn/sh-latn.wasm differ diff --git a/lang/sh-latn/src/hyphenEngine.ts b/lang/sh-latn/src/hyphenEngine.ts index 951e06e1..24f2f431 100644 --- a/lang/sh-latn/src/hyphenEngine.ts +++ b/lang/sh-latn/src/hyphenEngine.ts @@ -316,13 +316,13 @@ function select0(ith: i32, startByte: i32, endByte: i32): i32 { do { ith += run; do { + if (bytePos > endByte) { + return 0; + } dWord = ~load(bytePos); dWord0Count = popcnt(dWord); count += dWord0Count; bytePos += 4; - if (bytePos > endByte) { - return 0; - } } while (count < ith); count -= dWord0Count; bytePos -= 4; diff --git a/lang/sk/sk.wasm b/lang/sk/sk.wasm index dbc9df75..360340f3 100644 Binary files a/lang/sk/sk.wasm and b/lang/sk/sk.wasm differ diff --git a/lang/sk/src/hyphenEngine.ts b/lang/sk/src/hyphenEngine.ts index 951e06e1..24f2f431 100644 --- a/lang/sk/src/hyphenEngine.ts +++ b/lang/sk/src/hyphenEngine.ts @@ -316,13 +316,13 @@ function select0(ith: i32, startByte: i32, endByte: i32): i32 { do { ith += run; do { + if (bytePos > endByte) { + return 0; + } dWord = ~load(bytePos); dWord0Count = popcnt(dWord); count += dWord0Count; bytePos += 4; - if (bytePos > endByte) { - return 0; - } } while (count < ith); count -= dWord0Count; bytePos -= 4; diff --git a/lang/sl/sl.wasm b/lang/sl/sl.wasm index d3b71cc2..e2063921 100644 Binary files a/lang/sl/sl.wasm and b/lang/sl/sl.wasm differ diff --git a/lang/sl/src/hyphenEngine.ts b/lang/sl/src/hyphenEngine.ts index 951e06e1..24f2f431 100644 --- a/lang/sl/src/hyphenEngine.ts +++ b/lang/sl/src/hyphenEngine.ts @@ -316,13 +316,13 @@ function select0(ith: i32, startByte: i32, endByte: i32): i32 { do { ith += run; do { + if (bytePos > endByte) { + return 0; + } dWord = ~load(bytePos); dWord0Count = popcnt(dWord); count += dWord0Count; bytePos += 4; - if (bytePos > endByte) { - return 0; - } } while (count < ith); count -= dWord0Count; bytePos -= 4; diff --git a/lang/sr-cyrl/sr-cyrl.wasm b/lang/sr-cyrl/sr-cyrl.wasm index 2c375993..8842d6aa 100644 Binary files a/lang/sr-cyrl/sr-cyrl.wasm and b/lang/sr-cyrl/sr-cyrl.wasm differ diff --git a/lang/sr-cyrl/src/hyphenEngine.ts b/lang/sr-cyrl/src/hyphenEngine.ts index 951e06e1..24f2f431 100644 --- a/lang/sr-cyrl/src/hyphenEngine.ts +++ b/lang/sr-cyrl/src/hyphenEngine.ts @@ -316,13 +316,13 @@ function select0(ith: i32, startByte: i32, endByte: i32): i32 { do { ith += run; do { + if (bytePos > endByte) { + return 0; + } dWord = ~load(bytePos); dWord0Count = popcnt(dWord); count += dWord0Count; bytePos += 4; - if (bytePos > endByte) { - return 0; - } } while (count < ith); count -= dWord0Count; bytePos -= 4; diff --git a/lang/sv/src/hyphenEngine.ts b/lang/sv/src/hyphenEngine.ts index 951e06e1..24f2f431 100644 --- a/lang/sv/src/hyphenEngine.ts +++ b/lang/sv/src/hyphenEngine.ts @@ -316,13 +316,13 @@ function select0(ith: i32, startByte: i32, endByte: i32): i32 { do { ith += run; do { + if (bytePos > endByte) { + return 0; + } dWord = ~load(bytePos); dWord0Count = popcnt(dWord); count += dWord0Count; bytePos += 4; - if (bytePos > endByte) { - return 0; - } } while (count < ith); count -= dWord0Count; bytePos -= 4; diff --git a/lang/sv/sv.wasm b/lang/sv/sv.wasm index 7a097e32..d00c2ffc 100644 Binary files a/lang/sv/sv.wasm and b/lang/sv/sv.wasm differ diff --git a/lang/ta/src/hyphenEngine.ts b/lang/ta/src/hyphenEngine.ts index 951e06e1..24f2f431 100644 --- a/lang/ta/src/hyphenEngine.ts +++ b/lang/ta/src/hyphenEngine.ts @@ -316,13 +316,13 @@ function select0(ith: i32, startByte: i32, endByte: i32): i32 { do { ith += run; do { + if (bytePos > endByte) { + return 0; + } dWord = ~load(bytePos); dWord0Count = popcnt(dWord); count += dWord0Count; bytePos += 4; - if (bytePos > endByte) { - return 0; - } } while (count < ith); count -= dWord0Count; bytePos -= 4; diff --git a/lang/ta/ta.wasm b/lang/ta/ta.wasm index 5958771d..7c13eb7c 100644 Binary files a/lang/ta/ta.wasm and b/lang/ta/ta.wasm differ diff --git a/lang/te/src/hyphenEngine.ts b/lang/te/src/hyphenEngine.ts index 951e06e1..24f2f431 100644 --- a/lang/te/src/hyphenEngine.ts +++ b/lang/te/src/hyphenEngine.ts @@ -316,13 +316,13 @@ function select0(ith: i32, startByte: i32, endByte: i32): i32 { do { ith += run; do { + if (bytePos > endByte) { + return 0; + } dWord = ~load(bytePos); dWord0Count = popcnt(dWord); count += dWord0Count; bytePos += 4; - if (bytePos > endByte) { - return 0; - } } while (count < ith); count -= dWord0Count; bytePos -= 4; diff --git a/lang/te/te.wasm b/lang/te/te.wasm index d45f8db5..0559eac3 100644 Binary files a/lang/te/te.wasm and b/lang/te/te.wasm differ diff --git a/lang/th/src/hyphenEngine.ts b/lang/th/src/hyphenEngine.ts index 951e06e1..24f2f431 100644 --- a/lang/th/src/hyphenEngine.ts +++ b/lang/th/src/hyphenEngine.ts @@ -316,13 +316,13 @@ function select0(ith: i32, startByte: i32, endByte: i32): i32 { do { ith += run; do { + if (bytePos > endByte) { + return 0; + } dWord = ~load(bytePos); dWord0Count = popcnt(dWord); count += dWord0Count; bytePos += 4; - if (bytePos > endByte) { - return 0; - } } while (count < ith); count -= dWord0Count; bytePos -= 4; diff --git a/lang/th/th.wasm b/lang/th/th.wasm index 7d309292..50f10df4 100644 Binary files a/lang/th/th.wasm and b/lang/th/th.wasm differ diff --git a/lang/tk/src/hyphenEngine.ts b/lang/tk/src/hyphenEngine.ts index 951e06e1..24f2f431 100644 --- a/lang/tk/src/hyphenEngine.ts +++ b/lang/tk/src/hyphenEngine.ts @@ -316,13 +316,13 @@ function select0(ith: i32, startByte: i32, endByte: i32): i32 { do { ith += run; do { + if (bytePos > endByte) { + return 0; + } dWord = ~load(bytePos); dWord0Count = popcnt(dWord); count += dWord0Count; bytePos += 4; - if (bytePos > endByte) { - return 0; - } } while (count < ith); count -= dWord0Count; bytePos -= 4; diff --git a/lang/tk/tk.wasm b/lang/tk/tk.wasm index 0f5c2307..d3e68591 100644 Binary files a/lang/tk/tk.wasm and b/lang/tk/tk.wasm differ diff --git a/lang/tr/src/hyphenEngine.ts b/lang/tr/src/hyphenEngine.ts index 951e06e1..24f2f431 100644 --- a/lang/tr/src/hyphenEngine.ts +++ b/lang/tr/src/hyphenEngine.ts @@ -316,13 +316,13 @@ function select0(ith: i32, startByte: i32, endByte: i32): i32 { do { ith += run; do { + if (bytePos > endByte) { + return 0; + } dWord = ~load(bytePos); dWord0Count = popcnt(dWord); count += dWord0Count; bytePos += 4; - if (bytePos > endByte) { - return 0; - } } while (count < ith); count -= dWord0Count; bytePos -= 4; diff --git a/lang/tr/tr.wasm b/lang/tr/tr.wasm index 4f8b36b8..a2a5271d 100644 Binary files a/lang/tr/tr.wasm and b/lang/tr/tr.wasm differ diff --git a/lang/uk/src/hyphenEngine.ts b/lang/uk/src/hyphenEngine.ts index 951e06e1..24f2f431 100644 --- a/lang/uk/src/hyphenEngine.ts +++ b/lang/uk/src/hyphenEngine.ts @@ -316,13 +316,13 @@ function select0(ith: i32, startByte: i32, endByte: i32): i32 { do { ith += run; do { + if (bytePos > endByte) { + return 0; + } dWord = ~load(bytePos); dWord0Count = popcnt(dWord); count += dWord0Count; bytePos += 4; - if (bytePos > endByte) { - return 0; - } } while (count < ith); count -= dWord0Count; bytePos -= 4; diff --git a/lang/uk/uk.wasm b/lang/uk/uk.wasm index 3c422d97..67631635 100644 Binary files a/lang/uk/uk.wasm and b/lang/uk/uk.wasm differ diff --git a/lang/zh-latn-pinyin/src/hyphenEngine.ts b/lang/zh-latn-pinyin/src/hyphenEngine.ts index 951e06e1..24f2f431 100644 --- a/lang/zh-latn-pinyin/src/hyphenEngine.ts +++ b/lang/zh-latn-pinyin/src/hyphenEngine.ts @@ -316,13 +316,13 @@ function select0(ith: i32, startByte: i32, endByte: i32): i32 { do { ith += run; do { + if (bytePos > endByte) { + return 0; + } dWord = ~load(bytePos); dWord0Count = popcnt(dWord); count += dWord0Count; bytePos += 4; - if (bytePos > endByte) { - return 0; - } } while (count < ith); count -= dWord0Count; bytePos -= 4; diff --git a/lang/zh-latn-pinyin/zh-latn-pinyin.wasm b/lang/zh-latn-pinyin/zh-latn-pinyin.wasm index 51e43a23..9320d61c 100644 Binary files a/lang/zh-latn-pinyin/zh-latn-pinyin.wasm and b/lang/zh-latn-pinyin/zh-latn-pinyin.wasm differ diff --git a/patterns/af.wasm b/patterns/af.wasm index 83486371..6a4dbc98 100644 Binary files a/patterns/af.wasm and b/patterns/af.wasm differ diff --git a/patterns/as.wasm b/patterns/as.wasm index 0097dfac..33f7fc4b 100644 Binary files a/patterns/as.wasm and b/patterns/as.wasm differ diff --git a/patterns/be.wasm b/patterns/be.wasm index 71c98763..309ebe8d 100644 Binary files a/patterns/be.wasm and b/patterns/be.wasm differ diff --git a/patterns/bg.wasm b/patterns/bg.wasm index 7b31ddcf..00a7c8c1 100644 Binary files a/patterns/bg.wasm and b/patterns/bg.wasm differ diff --git a/patterns/bn.wasm b/patterns/bn.wasm index 067b7f6b..db853eb1 100644 Binary files a/patterns/bn.wasm and b/patterns/bn.wasm differ diff --git a/patterns/ca.wasm b/patterns/ca.wasm index b937b463..8068e410 100644 Binary files a/patterns/ca.wasm and b/patterns/ca.wasm differ diff --git a/patterns/cs.wasm b/patterns/cs.wasm index cc242c05..2c4ddf9e 100644 Binary files a/patterns/cs.wasm and b/patterns/cs.wasm differ diff --git a/patterns/cy.wasm b/patterns/cy.wasm index 4a8c3f3b..4170831c 100644 Binary files a/patterns/cy.wasm and b/patterns/cy.wasm differ diff --git a/patterns/da.wasm b/patterns/da.wasm index 7f61893c..2318f3b8 100644 Binary files a/patterns/da.wasm and b/patterns/da.wasm differ diff --git a/patterns/de.wasm b/patterns/de.wasm index 57721169..8f9c614b 100644 Binary files a/patterns/de.wasm and b/patterns/de.wasm differ diff --git a/patterns/el-monoton.wasm b/patterns/el-monoton.wasm index 60a79cc7..a78812c4 100644 Binary files a/patterns/el-monoton.wasm and b/patterns/el-monoton.wasm differ diff --git a/patterns/el-polyton.wasm b/patterns/el-polyton.wasm index bdd67426..275c5fc5 100644 Binary files a/patterns/el-polyton.wasm and b/patterns/el-polyton.wasm differ diff --git a/patterns/en-gb.wasm b/patterns/en-gb.wasm index 733c0d17..57eeb116 100644 Binary files a/patterns/en-gb.wasm and b/patterns/en-gb.wasm differ diff --git a/patterns/en-us.wasm b/patterns/en-us.wasm index 14d3c741..6227f936 100644 Binary files a/patterns/en-us.wasm and b/patterns/en-us.wasm differ diff --git a/patterns/eo.wasm b/patterns/eo.wasm index b4fdc7b5..5adf85f5 100644 Binary files a/patterns/eo.wasm and b/patterns/eo.wasm differ diff --git a/patterns/es.wasm b/patterns/es.wasm index 4431d824..fedd101a 100644 Binary files a/patterns/es.wasm and b/patterns/es.wasm differ diff --git a/patterns/et.wasm b/patterns/et.wasm index 4a89ffca..e325b626 100644 Binary files a/patterns/et.wasm and b/patterns/et.wasm differ diff --git a/patterns/eu.wasm b/patterns/eu.wasm index 43707f85..939a58e0 100644 Binary files a/patterns/eu.wasm and b/patterns/eu.wasm differ diff --git a/patterns/fi.wasm b/patterns/fi.wasm index 94d3011c..cac94d36 100644 Binary files a/patterns/fi.wasm and b/patterns/fi.wasm differ diff --git a/patterns/fr.wasm b/patterns/fr.wasm index 62bf1b02..092fbc59 100644 Binary files a/patterns/fr.wasm and b/patterns/fr.wasm differ diff --git a/patterns/fur.wasm b/patterns/fur.wasm index 6d003c10..0c6e1573 100644 Binary files a/patterns/fur.wasm and b/patterns/fur.wasm differ diff --git a/patterns/ga.wasm b/patterns/ga.wasm index 9731c01d..1c7a3895 100644 Binary files a/patterns/ga.wasm and b/patterns/ga.wasm differ diff --git a/patterns/gl.wasm b/patterns/gl.wasm index 6b697179..b7767c3b 100644 Binary files a/patterns/gl.wasm and b/patterns/gl.wasm differ diff --git a/patterns/gu.wasm b/patterns/gu.wasm index ec0dc414..c13c7191 100644 Binary files a/patterns/gu.wasm and b/patterns/gu.wasm differ diff --git a/patterns/hi.wasm b/patterns/hi.wasm index 0b04c402..92b013a1 100644 Binary files a/patterns/hi.wasm and b/patterns/hi.wasm differ diff --git a/patterns/hr.wasm b/patterns/hr.wasm index 00ae9064..ca3abb6e 100644 Binary files a/patterns/hr.wasm and b/patterns/hr.wasm differ diff --git a/patterns/hsb.wasm b/patterns/hsb.wasm index d7b25888..0b70813a 100644 Binary files a/patterns/hsb.wasm and b/patterns/hsb.wasm differ diff --git a/patterns/hu.wasm b/patterns/hu.wasm index 24020e39..56a83721 100644 Binary files a/patterns/hu.wasm and b/patterns/hu.wasm differ diff --git a/patterns/hy.wasm b/patterns/hy.wasm index 60aca3f4..6bfbefe3 100644 Binary files a/patterns/hy.wasm and b/patterns/hy.wasm differ diff --git a/patterns/ia.wasm b/patterns/ia.wasm index 313f1b9f..edb4a786 100644 Binary files a/patterns/ia.wasm and b/patterns/ia.wasm differ diff --git a/patterns/id.wasm b/patterns/id.wasm index 8b4c8ae3..d8220b4d 100644 Binary files a/patterns/id.wasm and b/patterns/id.wasm differ diff --git a/patterns/is.wasm b/patterns/is.wasm index 96722446..171f2b1f 100644 Binary files a/patterns/is.wasm and b/patterns/is.wasm differ diff --git a/patterns/it.wasm b/patterns/it.wasm index 618d1e37..4af38e39 100644 Binary files a/patterns/it.wasm and b/patterns/it.wasm differ diff --git a/patterns/ka.wasm b/patterns/ka.wasm index 46a6e090..8c18329a 100644 Binary files a/patterns/ka.wasm and b/patterns/ka.wasm differ diff --git a/patterns/kmr.wasm b/patterns/kmr.wasm index 5cf16e50..1df217b8 100644 Binary files a/patterns/kmr.wasm and b/patterns/kmr.wasm differ diff --git a/patterns/kn.wasm b/patterns/kn.wasm index 9c55fcf2..10c27916 100644 Binary files a/patterns/kn.wasm and b/patterns/kn.wasm differ diff --git a/patterns/la.wasm b/patterns/la.wasm index a78007f7..0a798a9e 100644 Binary files a/patterns/la.wasm and b/patterns/la.wasm differ diff --git a/patterns/lt.wasm b/patterns/lt.wasm index 7dc92072..593a420c 100644 Binary files a/patterns/lt.wasm and b/patterns/lt.wasm differ diff --git a/patterns/lv.wasm b/patterns/lv.wasm index 34e8a896..e0b37c52 100644 Binary files a/patterns/lv.wasm and b/patterns/lv.wasm differ diff --git a/patterns/mk.wasm b/patterns/mk.wasm index 82265ce3..f5bb58ff 100644 Binary files a/patterns/mk.wasm and b/patterns/mk.wasm differ diff --git a/patterns/ml.wasm b/patterns/ml.wasm index ac045c9d..c93e31d9 100644 Binary files a/patterns/ml.wasm and b/patterns/ml.wasm differ diff --git a/patterns/mn-cyrl.wasm b/patterns/mn-cyrl.wasm index 03de0283..5958e59c 100644 Binary files a/patterns/mn-cyrl.wasm and b/patterns/mn-cyrl.wasm differ diff --git a/patterns/mr.wasm b/patterns/mr.wasm index d7718575..08fa5d3c 100644 Binary files a/patterns/mr.wasm and b/patterns/mr.wasm differ diff --git a/patterns/nb.wasm b/patterns/nb.wasm index 2090b250..3e4f8aaa 100644 Binary files a/patterns/nb.wasm and b/patterns/nb.wasm differ diff --git a/patterns/nl.wasm b/patterns/nl.wasm index 5b7bd67f..40004d6c 100644 Binary files a/patterns/nl.wasm and b/patterns/nl.wasm differ diff --git a/patterns/nn.wasm b/patterns/nn.wasm index 5a2502ff..e0cafef6 100644 Binary files a/patterns/nn.wasm and b/patterns/nn.wasm differ diff --git a/patterns/no.wasm b/patterns/no.wasm index e487acf7..cd22a2f4 100644 Binary files a/patterns/no.wasm and b/patterns/no.wasm differ diff --git a/patterns/oc.wasm b/patterns/oc.wasm index ae0f165e..fc216b7e 100644 Binary files a/patterns/oc.wasm and b/patterns/oc.wasm differ diff --git a/patterns/or.wasm b/patterns/or.wasm index 24d780ae..8995c018 100644 Binary files a/patterns/or.wasm and b/patterns/or.wasm differ diff --git a/patterns/pa.wasm b/patterns/pa.wasm index 98784cb1..1c5a70aa 100644 Binary files a/patterns/pa.wasm and b/patterns/pa.wasm differ diff --git a/patterns/pl.wasm b/patterns/pl.wasm index 3ba1b280..098e8f2e 100644 Binary files a/patterns/pl.wasm and b/patterns/pl.wasm differ diff --git a/patterns/pms.wasm b/patterns/pms.wasm index c41193d4..2eaebf0a 100644 Binary files a/patterns/pms.wasm and b/patterns/pms.wasm differ diff --git a/patterns/pt.wasm b/patterns/pt.wasm index 6e85ac7a..674ae5c4 100644 Binary files a/patterns/pt.wasm and b/patterns/pt.wasm differ diff --git a/patterns/rm.wasm b/patterns/rm.wasm index 3e78ae3d..6a0a6b62 100644 Binary files a/patterns/rm.wasm and b/patterns/rm.wasm differ diff --git a/patterns/ro.wasm b/patterns/ro.wasm index 6a961f64..eecf85b7 100644 Binary files a/patterns/ro.wasm and b/patterns/ro.wasm differ diff --git a/patterns/ru.wasm b/patterns/ru.wasm index a2981c52..249aa4d7 100644 Binary files a/patterns/ru.wasm and b/patterns/ru.wasm differ diff --git a/patterns/sh-cyrl.wasm b/patterns/sh-cyrl.wasm index 4d4d40de..fe50fc54 100644 Binary files a/patterns/sh-cyrl.wasm and b/patterns/sh-cyrl.wasm differ diff --git a/patterns/sh-latn.wasm b/patterns/sh-latn.wasm index 54ae12cf..0bfbce3a 100644 Binary files a/patterns/sh-latn.wasm and b/patterns/sh-latn.wasm differ diff --git a/patterns/sk.wasm b/patterns/sk.wasm index dbc9df75..360340f3 100644 Binary files a/patterns/sk.wasm and b/patterns/sk.wasm differ diff --git a/patterns/sl.wasm b/patterns/sl.wasm index d3b71cc2..e2063921 100644 Binary files a/patterns/sl.wasm and b/patterns/sl.wasm differ diff --git a/patterns/sr-cyrl.wasm b/patterns/sr-cyrl.wasm index 2c375993..8842d6aa 100644 Binary files a/patterns/sr-cyrl.wasm and b/patterns/sr-cyrl.wasm differ diff --git a/patterns/sv.wasm b/patterns/sv.wasm index 7a097e32..d00c2ffc 100644 Binary files a/patterns/sv.wasm and b/patterns/sv.wasm differ diff --git a/patterns/ta.wasm b/patterns/ta.wasm index 5958771d..7c13eb7c 100644 Binary files a/patterns/ta.wasm and b/patterns/ta.wasm differ diff --git a/patterns/te.wasm b/patterns/te.wasm index d45f8db5..0559eac3 100644 Binary files a/patterns/te.wasm and b/patterns/te.wasm differ diff --git a/patterns/th.wasm b/patterns/th.wasm index 7d309292..50f10df4 100644 Binary files a/patterns/th.wasm and b/patterns/th.wasm differ diff --git a/patterns/tk.wasm b/patterns/tk.wasm index 0f5c2307..d3e68591 100644 Binary files a/patterns/tk.wasm and b/patterns/tk.wasm differ diff --git a/patterns/tr.wasm b/patterns/tr.wasm index 4f8b36b8..a2a5271d 100644 Binary files a/patterns/tr.wasm and b/patterns/tr.wasm differ diff --git a/patterns/uk.wasm b/patterns/uk.wasm index 3c422d97..67631635 100644 Binary files a/patterns/uk.wasm and b/patterns/uk.wasm differ diff --git a/patterns/zh-latn-pinyin.wasm b/patterns/zh-latn-pinyin.wasm index 51e43a23..9320d61c 100644 Binary files a/patterns/zh-latn-pinyin.wasm and b/patterns/zh-latn-pinyin.wasm differ diff --git a/src/hyphenEngine.ts b/src/hyphenEngine.ts index 951e06e1..24f2f431 100644 --- a/src/hyphenEngine.ts +++ b/src/hyphenEngine.ts @@ -316,13 +316,13 @@ function select0(ith: i32, startByte: i32, endByte: i32): i32 { do { ith += run; do { + if (bytePos > endByte) { + return 0; + } dWord = ~load(bytePos); dWord0Count = popcnt(dWord); count += dWord0Count; bytePos += 4; - if (bytePos > endByte) { - return 0; - } } while (count < ith); count -= dWord0Count; bytePos -= 4;