NStack.Core 0.15.0

NStack.Core brings a set of updated APIs to .NET.  

It starts with a new string type that is focused on Unicode code-points as opposed to the historical chars and  UTF-16 encoding and introduces a utf8 string that supports slicing

Install-Package NStack.Core -Version 0.15.0
dotnet add package NStack.Core --version 0.15.0
<PackageReference Include="NStack.Core" Version="0.15.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add NStack.Core --version 0.15.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

Release Notes

0.15: Fixes to MaxRune;   ColumnWidth differentiates between non-printable and nul characters; Rune has a constructor from two surrogate pairs; contributions by @BDisp;  0.14: Upgrade the NetStandard dependencies;

0.13: Fixes ustring.Map() and Lower(); Extends Rune.IsValid to match Go; add Rune.ExpectedSizeFromFirstByte()  plus a bug fix;
stack 0.12: Rebuilt
Rebuild with an older Roslyn, to prevent regressions on Xamarin.

Merged some changes from upstream.

Added ustring.ColumnWidth to return number of columns that a ustring takes in a console.

* Renamed some methods to match the equivalent methods in Char.
* Introduced Substring (int start)
* Introduced difference between this [int start, int end] and this [int start, object end] the latter used to mean "until the end", replacing '0' as the previous value for "until the end".
* Introduced new method in Rune to measure the width in columns for console applications.

  • .NETStandard 2.0

    • No dependencies.

NuGet packages (2)

Showing the top 2 NuGet packages that depend on NStack.Core:

Package Downloads
Console user interface toolkit for .NET applications.
Library to build plugins for dotnet-guit.

GitHub repositories (3)

Showing the top 3 popular GitHub repositories that depend on NStack.Core:

Repository Stars
Console-based user interface toolkit for .NET applications.
Modules that mix PowerShell and GUIs/CUIs! - built on Avalonia and gui.cs
XTerm emulator as a .NET library

Version History

Version Downloads Last updated
0.15.0 633 10/30/2020
0.14.0 22,415 3/30/2020
0.13.0 466 2/29/2020
0.12.0 3,292 6/4/2018
0.11.0 29,309 4/24/2018
0.10.0 484 4/22/2018
0.9.0 392 4/22/2018
0.8.0 1,796 2/7/2018
0.7.0 597 1/24/2018
0.6.0 415 1/23/2018
0.5.0 412 1/23/2018
0.4.0 498 1/4/2018
0.3.0 410 6/3/2017
0.2.0 386 6/3/2017
0.1.0 375 6/2/2017