luaur-repl-cli 0.1.3

Interactive Luau REPL (Rust).
Documentation
1
2
3
4
5
6
7
8
9
10
use core::ffi::c_char;

pub unsafe fn is_method_or_function_char(s: *const c_char, len: i64) -> bool {
    if len != 1 || s.is_null() {
        return false;
    }

    let c = *s as u8 as char;
    c.is_ascii_alphanumeric() || c == '.' || c == ':' || c == '_'
}