截取需要的字符串(非字节处理)
/// <summary>
/// 截取需要的字符串(非字节处理)
/// </summary>
/// <param name="inputStr">需要截取的字符串</param>
/// <param name="len">截取长度</param>
/// <param name="ss">被截取的字符串结尾追加符</param>
/// <returns></returns>
public string GetSubString(string inputStr, int len, string ss = "")
{
if (inputStr.Length < len)
return inputStr;
return inputStr.Substring(len) + ss;
}