Skip to content

Release v0.5.0

Compare
Choose a tag to compare
@Ygg01 Ygg01 released this 11 Jun 19:23
· 56 commits to master since this release

What's Changed

Improves parsing performance by eliminating bounds check on ReadOnlySpan<char> for char @RoosterDragon

Breaking changes:

  • ZeroCopyUtil
    • TryReadCharSpan replaced with TryReadChar.
    • Methods IsIdentifier/IsNumberStart/IsAsciiDigit/IsAsciiUppercase/IsAsciiHexdigit/IsAsciiAlphabetic
      take char rather than ReadOnlySpan<char>.
    • EqualSpans method removed
  • ZeroCopyReader
    • method signature ReadOnlySpan<char> PeekCharSpan(int offset = 0) changed to char? PeekChar(int offset = 0)
    • method SeekEol added.
    • added methods TryPeekChar, TryPeekCharAt, CurrentChar, and IndexOfAnyChar.
  • ParserError
    • factory method for ExpectedTokens arguments changed
  • LinguiniParser
    • changed to use the new ZeroCopyUtil internally.

Non-breaking changes:

  • Fluent.Bundle private bundle method is separated into AddEntry and AddEntryOverriding.

Full Changelog: v0.4.0...v0.5.0