-
Notifications
You must be signed in to change notification settings - Fork 90
Feature: implemented all remaining string functions in stdlib except dump
#109
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
I've had a chance to read through this now, and it looks reasonable, though it'll need some cleanup and should probably be split into multiple smaller PRs. (The simplest split would be the base string ops; format; pattern matching; pack/unpack.)
|
All functions are based on and fully comply with the Lua 5.3 manual (https://www.lua.org/manual/5.3/).
Features
string.char,string.byte,string.find,string.match,string.gmatch,string.gsub,string.rep,string.pack,string.unpack,string.packsize.string.luafor all new functions.Cargo.toml, thelsonarcrate has been added - an implementation of Lua patterns in Pure Rust, without unsafe and dependencies (https://github.com/reloginn/lsonar).Cargo.toml, thelformatcrate has been added - an implementation ofstring.formatbased on thesprintfcrate, without unsafe and with (almost) no dependencies (https://github.com/reloginn/lformat).Caveats
string.gsubfunction, theValue::Function(_)case is not implemented (I don't know how to call VM functions from Rust).