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尺寸应该足以寄宿几乎所有的转换。