From 99c6d7cd15a29ffba54836f26151847176a8569c Mon Sep 17 00:00:00 2001 From: bptato Date: Fri, 10 May 2024 14:56:28 +0200 Subject: luwrap: use separate context (+ various cleanups) Use a LUContext to only load required CharRanges once per pager. Also, add kana & hangul vi word break categories for convenience. --- src/bindings/libunicode.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/bindings/libunicode.nim') diff --git a/src/bindings/libunicode.nim b/src/bindings/libunicode.nim index 13a36da4..18d146fe 100644 --- a/src/bindings/libunicode.nim +++ b/src/bindings/libunicode.nim @@ -25,7 +25,7 @@ proc unicode_normalize*(pdst: ptr ptr uint32; src: ptr uint32; src_len: cint; realloc_func: DynBufReallocFunc): cint proc unicode_script*(cr: ptr CharRange; script_name: cstring; is_ext: cint): - cint {.importc, header: "quickjs/libunicode.h".} + cint proc unicode_prop*(cr: ptr CharRange; prop_name: cstring): cint proc unicode_general_category*(cr: ptr CharRange; gc_name: cstring): cint -- cgit 1.4.1-2-gfad0