tango.sys.win32.CodePage 翻译

tango.sys.win32.CodePage(r4795)

License:

BSD style: see license.txt

Version:

Initial release: April 2007

Author:

Kris

struct CodePage #
Windows 'code pages'转换文字或转换文字到 Windows 'code pages'。这是不可移植的,甚至不能跨所有 Windows平台。
bool isAscii(char[] src) [static] #
测试一个文本数组,看看它是否包含非 ascii元素。如果是 ascii字符将返回 true,否则返回 false
char[] into(char[] src, char[] dst, uint page = 0) [static] #
转换 utf8文本到 codepage表示法
page 0 - the ansi code page 1 - the oem code page 2 - the mac code page 3 - ansi code page for the calling thread 65000 - UTF-7 translation 65001 - UTF-8 translation

或一个特定区域 codepage

返回:

输出缓冲器表示的已转换文字的切片。

:输入必须utf8编码。请注意,dst输出应该足够大以容纳输出; 2 * src.length尺寸应该足以寄宿几乎所有的转换。

char[] from(char[] src, char[] dst, uint page = 0) [static] #
转换 codepage 文字成用 utf8表示。
page 0 - the ansi code page 1 - the oem code page 2 - the mac code page 3 - ansi code page for the calling thread 65000 - UTF-7 translation 65001 - UTF-8 translation

或 一个特定区域代码页

返回:

输出缓冲器表示的已转换文字的切片。

:输入必须utf8编码。请注意,dst输出应该足够大以容纳输出; 2 * src.length尺寸应该足以寄宿几乎所有的转换。

char[] convert(char[] src, char[] dst, uint from, uint into) [private, static] #
内部转换程序 ,我们为短字符串和中等长度字符串避免堆活动。为了简化 C API转换,添加一个 0dst数组。
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值