From e1139d40b2e914311085136dcc12b559d8e312b5 Mon Sep 17 00:00:00 2001 From: bptato Date: Thu, 20 Mar 2025 18:04:13 +0100 Subject: Update libregexp/libunicode bindings Lack of cbool is a pain. I'm sticking with JS_BOOL for now. --- src/utils/luwrap.nim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/utils') 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 = -- cgit