Scanner4Sharp 1.0.1

dotnet add package Scanner4Sharp --version 1.0.1                
NuGet\Install-Package Scanner4Sharp -Version 1.0.1                
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Scanner4Sharp" Version="1.0.1" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Scanner4Sharp --version 1.0.1                
#r "nuget: Scanner4Sharp, 1.0.1"                
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install Scanner4Sharp as a Cake Addin
#addin nuget:?package=Scanner4Sharp&version=1.0.1

// Install Scanner4Sharp as a Cake Tool
#tool nuget:?package=Scanner4Sharp&version=1.0.1                

Scanner4Sharp

A simple scanner class for CSharp.

Install

(1) Clone this repository. Copy Scanner4Sharp/Scanner.cs and Scanner4Sharp/Scanner.Next.cs to your project.
(2) Clone this repository. Add project reference to your project.
(3) Install from nuget. Search Scanner4Sharp.

Usage

// File: Test/Program.cs

using Scanner4Sharp;

namespace Test
{
	internal class Program
	{
		static void Main(string[] args)
		{
			// create a scanner
			var scanner = new Scanner();
			// the data used as input
			var s = new string[]
			{
				"a b c",
				"-111 12.5 8888888888 TTT",
			};

			// append "a b c" to the scanner.
			scanner.AppendBuffer(s[0]);
			// read "a"
			Console.WriteLine(scanner.NextString());

			// clear buffer: " b c"
			scanner.ClearBuffer();
			// append "-111 12.5 8888888888 TTT"
			scanner.AppendBuffer(s[1]);
			// read -111
			Console.WriteLine(scanner.NextInt());
			// read 12.5
			Console.WriteLine(scanner.NextDouble());
			// read 8888888888
			Console.WriteLine(scanner.NextLong());

			// check if the next value exists
			Console.WriteLine(scanner.HasNext);
			// clear buffer: " TTT"
			scanner.ClearBuffer();
			// check if the next value exists
			Console.WriteLine(scanner.HasNext);
		}
	}
}
Product Compatible and additional computed target framework versions.
.NET net5.0 is compatible.  net5.0-windows was computed.  net6.0 is compatible.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 is compatible.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed. 
.NET Core netcoreapp2.0 is compatible.  netcoreapp2.1 is compatible.  netcoreapp2.2 is compatible.  netcoreapp3.0 is compatible.  netcoreapp3.1 is compatible. 
.NET Standard netstandard2.0 is compatible.  netstandard2.1 is compatible. 
.NET Framework net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 is compatible.  net472 is compatible.  net48 is compatible.  net481 was computed. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen40 was computed.  tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • .NETCoreApp 2.0

    • No dependencies.
  • .NETCoreApp 2.1

    • No dependencies.
  • .NETCoreApp 2.2

    • No dependencies.
  • .NETCoreApp 3.0

    • No dependencies.
  • .NETCoreApp 3.1

    • No dependencies.
  • .NETFramework 4.7.1

    • No dependencies.
  • .NETFramework 4.7.2

    • No dependencies.
  • .NETFramework 4.8

    • No dependencies.
  • .NETStandard 2.0

    • No dependencies.
  • .NETStandard 2.1

    • No dependencies.
  • net5.0

    • No dependencies.
  • net6.0

    • No dependencies.
  • net7.0

    • No dependencies.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.0.1 194 4/7/2023
1.0.0 187 4/5/2023