Exemple #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;
            }
        }
Exemple #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;
            }
        }
Exemple #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);
        }
Exemple #4
0
 public FuzzyRegexp(FuzzyString Pattern, FuzzyRegexpOptions Options)
 {
     this.Pattern   = Pattern;
     this.Options   = Options;
     this.ClassName = FuzzySymbol.GetSymbol("Regexp");
 }
Exemple #5
0
 public FuzzyStringDebugView(FuzzyString str)
 {
     this.str = str;
 }
Exemple #6
0
 public object this[FuzzyString key]
 {
     get { return(this[FuzzySymbol.GetSymbol(key)]); }
     set { this[FuzzySymbol.GetSymbol(key)] = value; }
 }