extios.lib 1.0.1

dotnet add package extios.lib --version 1.0.1
                    
NuGet\Install-Package extios.lib -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="extios.lib" Version="1.0.1" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="extios.lib" Version="1.0.1" />
                    
Directory.Packages.props
<PackageReference Include="extios.lib" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add extios.lib --version 1.0.1
                    
#r "nuget: extios.lib, 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.
#:package extios.lib@1.0.1
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=extios.lib&version=1.0.1
                    
Install as a Cake Addin
#tool nuget:?package=extios.lib&version=1.0.1
                    
Install as a Cake Tool

extios

这个库是对标准输入输出操作的扩展,可以对ANSI、宽字符、UTF-8、UTF-16、UTF-32编码的字符串进行输入输出操作。适用于Windows和Linux。

#include <extios/extiostream.h>
#include <string>

int main(void)
{
    auto text = std::u32string(U"你好骚啊👌");
    extios::u32cout << text << std::endl;

    std::u16string text2;
    extios::u16cin >> text2;
    extios::u16cout << text2 << std::endl;

    return 0;
}

使用extios::u32cout对象可以输出UTF-32编码的字符串,使用extios::u16cin对象可以将控制台/终端输入的字符串保存为UTF-16编码的字符串。

类似的对象有以下这些:

  • extios::cout:专用于输出ANSI字符串
  • extios::wcout:专用于输出宽字符字符串
  • extios::u8cout:专用于输出UTF-8编码的字符串
  • extios::u16cout:专用于输出UTF-16编码的字符串
  • extios::u32cout:专用于输出UTF-32编码的字符串
  • extios::cin:专用于输入ANSI字符串
  • extios::wcin:专用于输入宽字符字符串
  • extios::u8cin:专用于输入UTF-8编码的字符串
  • extios::u16cin:专用于输入UTF-16编码的字符串
  • extios::u32cin:专用于输入UTF-32编码的字符串
  • extios::wcin:专用于输入宽字符字符串
Product Compatible and additional computed target framework versions.
native native is compatible. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

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 669 11/8/2019
1.0.0 541 11/8/2019

Fix bug.