/// Bindings for `api.h`, generated by `louise bindgen` with their C shim: /// do not edit, regenerate. /// /// Not bound, or worth knowing: /// - line 62, `szl_sort_free`: the finalizer of `SzlSort`, not bound. import std/ffi.{type Resource} /// `struct szl_sort`, opaque. pub type SzlSort /// C: `int64_t szl_find(const char *haystack, size_t haystack_len, const char *needle, size_t needle_len)` @extern c "louise_szl_find" pub fn szl_find :: haystack: String needle: String -> Int / /// C: `int64_t szl_rfind(const char *haystack, size_t haystack_len, const char *needle, size_t needle_len)` @extern c "louise_szl_rfind" pub fn szl_rfind :: haystack: String needle: String -> Int / /// C: `size_t szl_count(const char *haystack, size_t haystack_len, const char *needle, size_t needle_len)` @extern c "louise_szl_count" pub fn szl_count :: haystack: String needle: String -> Int / /// C: `int64_t szl_find_byte(const char *s, size_t len, uint8_t byte)` @extern c "louise_szl_find_byte" pub fn szl_find_byte :: s: String byte: Int -> Int / /// C: `int64_t szl_rfind_byte(const char *s, size_t len, uint8_t byte)` @extern c "louise_szl_rfind_byte" pub fn szl_rfind_byte :: s: String byte: Int -> Int / /// C: `int szl_order(const char *a, size_t a_len, const char *b, size_t b_len)` @extern c "louise_szl_order" pub fn szl_order :: a: String b: String -> Int / /// C: `int64_t szl_hash(const char *s, size_t len, int64_t seed)` @extern c "louise_szl_hash" pub fn szl_hash :: s: String seed: Int -> Int / /// C: `int64_t szl_bytesum(const char *s, size_t len)` @extern c "louise_szl_bytesum" pub fn szl_bytesum :: s: String -> Int / /// C: `const char *szl_version(void)` @extern c "louise_szl_version" pub fn szl_version :: -> String / /// C: `const char *szl_capabilities(void)` @extern c "louise_szl_capabilities" pub fn szl_capabilities :: -> String / /// C: `szl_sort *szl_sort_new(void)` @extern c "louise_szl_sort_new" pub fn szl_sort_new :: -> Resource / /// C: `bool szl_sort_push(szl_sort *s, const char *text, size_t text_len)` @extern c "louise_szl_sort_push" pub fn szl_sort_push :: s: Resource text: String -> Bool / /// C: `size_t szl_sort_count(const szl_sort *s)` @extern c "louise_szl_sort_count" pub fn szl_sort_count :: s: Resource -> Int / /// C: `bool szl_sort_argsort(szl_sort *s)` @extern c "louise_szl_sort_argsort" pub fn szl_sort_argsort :: s: Resource -> Bool / /// C: `int64_t szl_sort_order(const szl_sort *s, size_t i)` @extern c "louise_szl_sort_order" pub fn szl_sort_order :: s: Resource i: Int -> Int /