Quickjs_c.LibunicodeLow-level bindings to QuickJS's libunicode - Unicode Character Utilities
Unicode character classification and case conversion. These are raw C bindings; for a higher-level API, use Quickjs.Unicode.
val is_cased :
Unsigned.uint32 ->
bool
Quickjs_bindings.Libregexp__c_generated_functions__Function_description__Functions.returnCheck if character has uppercase/lowercase variants (Cased property)
val is_case_ignorable :
Unsigned.uint32 ->
bool
Quickjs_bindings.Libregexp__c_generated_functions__Function_description__Functions.returnCheck if character is ignored during case mapping (Case_Ignorable)
val is_id_start :
Unsigned.uint32 ->
bool
Quickjs_bindings.Libregexp__c_generated_functions__Function_description__Functions.returnCheck if character can start an identifier (ID_Start)
val is_id_continue :
Unsigned.uint32 ->
bool
Quickjs_bindings.Libregexp__c_generated_functions__Function_description__Functions.returnCheck if character can continue an identifier (ID_Continue)
val is_space :
int ->
bool
Quickjs_bindings.Libregexp__c_generated_functions__Function_description__Functions.returnCheck if character is whitespace per ECMA-262 (WhiteSpace or LineTerminator). This is the exact predicate QuickJS uses for regexp \s, String.prototype.trim, and the whitespace skipped by parseInt/parseFloat.
val case_conv :
Unsigned.uint32 Ctypes_static.ptr ->
Unsigned.uint32 ->
int ->
int
Quickjs_bindings.Libregexp__c_generated_functions__Function_description__Functions.returnConvert character case. conv_type: 0 = uppercase, 1 = lowercase, 2 = case folding Returns number of output codepoints (1-3)
val canonicalize :
Unsigned.uint32 ->
bool ->
int
Quickjs_bindings.Libregexp__c_generated_functions__Function_description__Functions.returnCanonicalize character for case-insensitive regex matching. is_unicode: true = full Unicode folding, false = ASCII only
val normalize :
Unsigned.uint32 Ctypes_static.ptr ->
int ->
int ->
Unsigned.uint32 Ctypes_static.ptr Ctypes_static.ptr ->
int
Quickjs_bindings.Libregexp__c_generated_functions__Function_description__Functions.returnNormalize Unicode string. n_type: 0 = NFC, 1 = NFD, 2 = NFKC, 3 = NFKD Returns length of output, or -1 on error
val normalize_free :
Unsigned.uint32 Ctypes_static.ptr ->
unit
Quickjs_bindings.Libregexp__c_generated_functions__Function_description__Functions.returnFree buffer allocated by normalize
val char_range :
int ->
string ->
Unsigned.uint32 Ctypes_static.ptr Ctypes_static.ptr ->
int
Quickjs_bindings.Libregexp__c_generated_functions__Function_description__Functions.returnLook up a Unicode character range table by name. kind: 0 = Script, 1 = Script_Extensions, 2 = General_Category, 3 = binary property. On success returns the number of points (always even) with the buffer stored in dst; each pair points.(2i), points.(2i+1) encodes a half-open interval. Release the buffer with char_range_free. Returns -1 on memory error, -2 when the name is unknown.
val char_range_free :
Unsigned.uint32 Ctypes_static.ptr ->
unit
Quickjs_bindings.Libregexp__c_generated_functions__Function_description__Functions.returnFree buffer returned by char_range