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