Skip to content

RuneSet v0.9.0: ordinalMatch, serialize

Latest
Compare
Choose a tag to compare
@mnemnion mnemnion released this 03 Sep 14:39
v0.9.0
d64ed09

This release adds runeset.ordinalMatch. When this matches the slice,
it returns the ordinal value of the match in the set. For example, "c"
in "abcde" returns 2. A non-match returns null.

runeset.serialize(writer, private, name) writes the RuneSet to writer
as Zig source code. Pass .public for pub and .private otherwise.
The last argument becomes the name of the constant.