Feature: implemented all remaining string functions in stdlib except dump#109
Feature: implemented all remaining string functions in stdlib except dump#109reloginn wants to merge 19 commits intokyren:masterfrom
Feature: implemented all remaining string functions in stdlib except dump#109Conversation
|
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).