• 用C#写的字符串处理函数,字符串处理出BUG的朋友可以使用它。较上一个版本修正了一处bug,并增加了ReplaceAll方法。

    用法: 编译时添加引用/r:d:/path/MyStringDll1.2.dll 代码示例: using Falls27.Utils; MyString ms=new MyString(); //初始化 Console.WriteLine(ms.IndexOf("hello world","l",5)); //输出9 Console.WriteLine(ms.Substring("hello world",1,6)); //输出“ello w" Console.WriteLine(ms.ReplaceLast("hello world","l","*")); //输出”hello wor*d" Console.WriteLine(ms.ReplaceAll("hello world","l","*")); //输出”he**o wor*d" ArrayList list=ms.GetPosList("hello world","l"); foreach(int pos in list){ Console.WriteLine("" + pos); } //输出2,3,9

    0
    101
    6KB
    2022-06-26
    0
  • 用C#写的字符串处理函数,字符串处理出BUG的朋友可以使用它。

    用法: 编译时添加引用/r:d:/path/MyStringDll.dll 代码示例: using Falls27.Utils; MyString ms=new MyString(); //初始化 Console.WriteLine(ms.IndexOf("hello world","l",5)); //输出9 Console.WriteLine(ms.Substring("hello world",1,6)); //输出“ello w" Console.WriteLine(ms.ReplaceLast("hello world","l","*")); //输出”hello wor*d" ArrayList list=ms.GetPosList("hello world","l"); foreach(int pos in list){ Console.WriteLine("" + pos); } //输出: 2 3 9

    0
    73
    5KB
    2022-06-23
    0
  • 创作能手

    授予每个自然周发布4篇到6篇原创IT博文的用户
  • 持续创作

    授予每个自然月内发布4篇或4篇以上原创或翻译IT博文的用户。不积跬步无以至千里,不积小流无以成江海,程序人生的精彩需要坚持不懈地积累!
关注 私信
上传资源赚积分or赚钱