JHStrConv.ToSBC2 Method (String, String, Boolean, Boolean, Boolean)

DCSoft.DBUtilityGeneric

JHStrConvToSBC2 Method (String, String, Boolean, Boolean, Boolean)
将字符串转换为全角字符

Namespace: DCSoft.Utility.Text
Assembly: DCSoft.Utility (in DCSoft.Utility.dll) Version: 0.0.0.0 (1.0.0.0)
Syntax
C#
public static string ToSBC2(
	string value,
	string filters,
	bool hasKeepNum,
	bool hasKeepAZ,
	bool hasKeepLastDot
)

Parameters

value
Type: SystemString
要处理的字符串
filters
Type: SystemString
需要过滤不进行转换的字符,null 参数不启用
hasKeepNum
Type: SystemBoolean
是否保留数字
hasKeepAZ
Type: SystemBoolean
是否保留常用字母(A~Z a~z)
hasKeepLastDot
Type: SystemBoolean
是否保留最后一个圆点

Return Value

Type: String
返回处理后的字符串
Remarks
全角空格为 12288,半角空格为 32 其他字符半角(33-126)与全角(65281-65374)的对应关系是:均相差 65248
See Also