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.
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.
// Install extios.lib as a Cake Addin
#addin nuget:?package=extios.lib&version=1.0.1

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

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 582 11/8/2019
1.0.0 464 11/8/2019

Fix bug.