JHString.Substring Method (String, Int32)

DCSoft.DBUtilityGeneric

JHStringSubstring Method (String, Int32)
返回指定长度的字符串,并按照半角字符占一个长度,全角字符占两个长度的原则截取

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 Substring(
	string value,
	int subLen
)

Parameters

value
Type: SystemString
待处理的字符串
subLen
Type: SystemInt32
截取的长度

Return Value

Type: String
返回截取的字符串
See Also