StringHelper.ToDBC Method

HD.Common

StringHelperToDBC Method Helper帮助文档
全角转半角的函数(DBC case)

Namespace: HD.Common
Assembly: HD.Common (in HD.Common.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax

public static string ToDBC(
	string input
)
Public Shared Function ToDBC ( 
	input As String
) As String
public:
static String^ ToDBC(
	String^ input
)
static member ToDBC : 
        input : string -> string 

Parameters

input
Type: SystemString
任意字符串

Return Value

Type: String
半角字符串
Remarks

全角空格为12288,半角空格为32 其他字符半角(33-126)与全角(65281-65374)的对应关系是:均相差65248
See Also

Reference