示例#1
0
        public override void Clone(FuzzyObject source)
        {
            base.Clone(source);
            FuzzyRegexp S = source as FuzzyRegexp;

            if (S != null)
            {
                Pattern = S.Pattern.Clone() as FuzzyString;
                Options = S.Options;
            }
        }
示例#2
0
        public override void Clone(FuzzyObject source)
        {
            base.Clone(source);
            FuzzyString S = source as FuzzyString;

            if (S != null)
            {
                this.raw      = S.raw;
                this.encoding = S.encoding;
            }
        }
示例#3
0
        public static FuzzySymbol GetSymbol(FuzzyString str)
        {
            string s = str.Text;

            if (symbols.ContainsKey(s))
            {
                return(symbols[s]);
            }
            FuzzySymbol sym = new FuzzySymbol(s);

            sym.rubyString = str;
            return(sym);
        }
示例#4
0
 public FuzzyRegexp(FuzzyString Pattern, FuzzyRegexpOptions Options)
 {
     this.Pattern   = Pattern;
     this.Options   = Options;
     this.ClassName = FuzzySymbol.GetSymbol("Regexp");
 }
示例#5
0
 public FuzzyStringDebugView(FuzzyString str)
 {
     this.str = str;
 }
示例#6
0
 public object this[FuzzyString key]
 {
     get { return(this[FuzzySymbol.GetSymbol(key)]); }
     set { this[FuzzySymbol.GetSymbol(key)] = value; }
 }