Nemesis.TextParsers 1.5.0

Contains various parser optimized for speed and no allocation
     This package was built from the source at https://github.com/nemesissoft/Nemesis.TextParsers/tree/006bf6cd784237076114ff6e8471fe9aac00dd58

There is a newer version of this package available.
See the version list below for details.
Install-Package Nemesis.TextParsers -Version 1.5.0
dotnet add package Nemesis.TextParsers --version 1.5.0
<PackageReference Include="Nemesis.TextParsers" Version="1.5.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Nemesis.TextParsers --version 1.5.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

Release Notes

Release v1.5.0
Deconstructables + simple parsers singletons + emptiness

1. Simple type parsers are exposed via singletons (see i.e. DoubleParser.Instance)
2. New type of parsing strategy - Deconstructables. It is enough for type to have constructor and matching Deconstruct - these members will be used to parse/format object automatically i.e. this structure
```csharp
readonly struct Address
{
   public string City { get; }
   public int ZipCode { get; }

   public Address(string city, int zipCode)
   {
       City = city;
       ZipCode = zipCode;
   }

   public void Deconstruct(out string city, out int zipCode)
   {
       city = City;
       zipCode = ZipCode;
   }
}
```
will be automatically formatted to "(City;ZipCode)" format and parsed from same format


3. New concept - emptiness vs null parsing. Now transformers can decide what it meas to them when "" string is parsed as opposed to _null_ string

4. TupleHelper - user can now create complex parser that parse tuple-like structures (records etc.) using common logic

5. Transformables - types can register own transformers using TransformerAttribute. Such custom transformers can benefit from simple dependency injections (currently only TransformerStore object) via constructor

DEPRECATED:
One of next minor releases will be the last one where we support FromText(string) convention. It was only a bridge for consumers bound to targets < .NET Standard 2.1. Now we encourage upgrade to FromText(ReadOnlySpan<char>) - especially since all simple type parsers are exposed via singletons (see i.e. DoubleParser.Instance)

This package is not used by any popular GitHub repositories.

Version History

Version Downloads Last updated
2.2.1 47 5/15/2020
2.2.0 26 5/14/2020
2.1.2 25 5/12/2020
2.1.1 32 5/1/2020
2.1.0 34 4/28/2020
2.0.4 39 4/26/2020
2.0.2 36 4/21/2020
2.0.1 41 4/17/2020
2.0.0-alpha 39 4/15/2020
1.5.1 72 3/29/2020
1.5.0 90 3/28/2020
1.4.1 85 3/23/2020
1.3.2 67 3/19/2020
1.3.0 79 3/16/2020
1.2.0 118 3/15/2020
1.1.3 170 3/14/2020
1.1.2 147 2/27/2020
1.1.1 57 2/26/2020
1.1.0 133 2/26/2020
1.0.6 156 2/25/2020
1.0.4 54 2/25/2020
1.0.3 90 2/18/2020
1.0.2 101 11/8/2019
1.0.1 69 11/6/2019
1.0.0 84 9/25/2019
0.11.50 78 9/25/2019
0.11.47 83 9/25/2019
0.11.46 82 9/23/2019
0.11.42 88 9/18/2019
0.11.41 79 9/18/2019
0.11.40 80 9/18/2019
0.11.39 85 9/18/2019
0.11.38 87 9/18/2019
0.11.37 85 9/18/2019
0.11.36 84 9/17/2019
0.11.35 84 9/17/2019
0.11.34 86 9/17/2019
0.11.33 88 9/17/2019
0.9.32 85 9/17/2019
0.9.31 90 9/11/2019
0.9.30 97 9/9/2019
0.9.29 90 9/6/2019
0.9.28 110 8/3/2019
0.9.27 110 8/3/2019
0.9.26 102 8/1/2019
0.9.25 110 7/21/2019
0.9.24 102 7/19/2019
0.9.22 130 6/14/2019
0.9.21 110 6/13/2019
0.9.20 131 6/9/2019
0.9.19 127 6/7/2019
0.9.18 141 6/5/2019
0.9.15 123 5/29/2019
0.9.14 134 5/29/2019
0.9.13 128 5/28/2019
0.9.12 129 5/27/2019
0.9.10 134 5/21/2019
0.9.8 144 5/7/2019
0.9.7 149 5/5/2019
0.9.6 149 5/5/2019
0.9.5 141 5/5/2019
Show less