示例#1
0
文件: EcString.cs 项目: Myvar/Eclang
        public EcString[] Match(EcString pattern)
        {
            var r = new RegExp(pattern.value);

            return(r.Match(this.value).Select(match => new EcString(match)).ToArray());
        }
示例#2
0
文件: EcString.cs 项目: Myvar/Eclang
 public EcString Replace(EcString old, EcString New)
 {
     return new EcString(value.Replace(old.value, New.value));
     ;
 }
示例#3
0
文件: EcString.cs 项目: Myvar/Eclang
        public EcString Replace(EcString old, EcString New)
        {
            return(new EcString(value.Replace(old.value, New.value)));

            ;
        }
示例#4
0
文件: EcString.cs 项目: Myvar/Eclang
 public EcString[] Match(EcString pattern)
 {
     var r = new RegExp(pattern.value);
     return r.Match(this.value).Select(match => new EcString(match)).ToArray();
 }