Releases: ltrzesniewski/pcre-net
Releases · ltrzesniewski/pcre-net
v0.18.0
- Updated PCRE to v10.39
- Added a
ValueSpan
property to string-based matches and groups
v0.17.0
v0.17.0-pre2
- New zero-allocation API: The
PcreRegex.CreateMatchBuffer
method lets you create a buffer which can then be used for matching operations without performing any further allocations. - Breaking change: Removed the following members on
PcreMatchSettings
:StartIndex
,AdditionalOptions
,SetCallout
. These options now need to be provided directly to theMatch
/Matches
methods.PcreMatchSettings
now only contains advanced settings. - Removed the
PcreRefMatch.Copy()
method introduced in v0.17.0-pre1.PcreRefMatch
can now be copied normally like any struct, and won't be overwritten unless it's created by the zero-allocation API.
v0.17.0-pre1
- Updated PCRE to v10.38-RC1
- Added
PcreExtraCompileOptions.AllowLookaroundBsK
to enable\K
support in lookarounds - Removed allocations when the match fails and there are few capturing groups in the pattern
- Added a
PcreRefMatch.Copy()
method to create a copy of a ref match that will not be overwritten - Made some other optimizations
v0.16.0
- Updated PCRE to v10.37
- Added a .NET 5 target with a few optimizations
v0.15.0
- Added a
GroupNames
property in the pattern info (#24) - Added nullable reference types annotations
- Breaking change:
match[invalidIndex]
andmatch[invalidName]
won't returnnull
anymore, but an "undefined" group - Added a
IsDefined
property toPcreGroup
andPcreRefGroup
to tell if a group index or name is defined - Added
TryGetGroup
methods toPcreMatch
andPcreRefMatch
to tell if a group index or name is defined - Made the values returned by
PcreRefGroup
consistent with those returned byPcreGroup
when a group did not match
v0.14.0
- Updated PCRE to v10.36
v0.13.1
v0.13.0
- Updated PCRE to v10.35
v0.12.0
- Added new APIs for matching
ReadOnlySpan<char>
inputs, based onref struct
types. These APIs will cause substantially less heap allocations. - The
IsMatch
instance method no longer allocates on the heap if there are few capturing groups in the pattern.