diff options
| author | bptato <nincsnevem662@gmail.com> | 2025-03-20 18:04:13 +0100 |
|---|---|---|
| committer | bptato <nincsnevem662@gmail.com> | 2025-03-20 18:10:53 +0100 |
| commit | e1139d40b2e914311085136dcc12b559d8e312b5 (patch) | |
| tree | 348c919981812dce625758f3cb91d6e8f7d71ef4 /src/utils | |
| parent | 72dd71c1e608fcca7acfd067f73e4361da4336aa (diff) | |
| download | chawan-e1139d40b2e914311085136dcc12b559d8e312b5.tar.gz | |
Update libregexp/libunicode bindings
Lack of cbool is a pain. I'm sticking with JS_BOOL for now.
Diffstat (limited to 'src/utils')
| -rw-r--r-- | src/utils/luwrap.nim | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/utils/luwrap.nim b/src/utils/luwrap.nim index b22cdb0d..ca5fe410 100644 --- a/src/utils/luwrap.nim +++ b/src/utils/luwrap.nim @@ -48,7 +48,7 @@ proc capitalizeLU*(s: string): string = result = newStringOfCap(s.len) var wordStart = true for u in s.points: - if lre_is_space(u) == 1: + if lre_is_space(u): wordStart = true result.addUTF8(u) elif wordStart: @@ -112,7 +112,7 @@ proc initScript(ctx: LUContext; lur: LURangeType) = if lur notin ctx.inited: let p = addr ctx.crs[lur] cr_init(p, nil, passRealloc) - doAssert unicode_script(p, cstring($lur), 0) == 0 + doAssert unicode_script(p, cstring($lur), false) == 0 ctx.inited.incl(lur) proc isAlpha*(ctx: LUContext; u: uint32): bool = |