yntcsb 发表于 2013-2-4 22:52:33

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) ¶# 测试一个文本数组,看看它是否包含非ascii元素。如果是ascii字符将返回true,否则返回false。 char[] into(char[] src, char[] dst, uint page = 0) ¶# 转换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) ¶# 转换 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) ¶# 内部转换程序,我们为短字符串和中等长度字符串避免堆活动。为了简化C API转换,添加一个0到dst数组。<div style="background: #eeffee;">Copyright (c) 2007 Kris Bell. All rights reserved :: Generated by dil on Fri Jul 17 18:19:28 2009. Rendered by kandil.
页: [1]
查看完整版本: tango.sys.win32.CodePage 翻译