截取指定长度字符串
方法1:
方法2:
方法3:
private static byte
[] SourceStr_Bytes;
private static byte
[] CutStr_Bytes = new byte[42];
private static byte
[] CutStr_Bytes1;
private static int
Bytes_Count = 0;
private static string
CutedStr;
private static
Encoding
myEncoding = Encoding
.GetEncoding("GB2312"
);
http://hi.baidu.com/linrao/blog/item/82b9178a921cf11ac8fc7ada.html
声明:该文观点仅代表作者本人,牛骨文系教育信息发布平台,牛骨文仅提供信息存储空间服务。
- 上一篇: string字符串 获取指定位置范围的子字符串
- 下一篇: JAVA之String函数的20个方法详解