Пример #1
0
 public bool Equals(GenericRegex/*!*/ other) {
     // TODO:
     return Options == other.Options && GetPattern().Equals(other.GetPattern());
 }
Пример #2
0
 public bool Equals(GenericRegex /*!*/ other)
 {
     // TODO:
     return(Options == other.Options && GetPattern().Equals(other.GetPattern()));
 }
Пример #3
0
 public RubyRegex(Regex /*!*/ regex)
 {
     ContractUtils.RequiresNotNull(regex, "regex");
     _regex = new StringRegex(regex);
 }
Пример #4
0
 public RubyRegex(RubyRegex /*!*/ regex)
 {
     ContractUtils.RequiresNotNull(regex, "regex");
     _regex = regex._regex;
 }
Пример #5
0
 public RubyRegex(byte[] /*!*/ pattern, RubyRegexOptions options)
 {
     ContractUtils.RequiresNotNull(pattern, "pattern");
     // TODO: _regex = new BinaryRegex(pattern, options);
     _regex = new StringRegex(BinaryEncoding.Obsolete.GetString(pattern, 0, pattern.Length), options);
 }
Пример #6
0
 public RubyRegex(string /*!*/ pattern, RubyRegexOptions options)
 {
     ContractUtils.RequiresNotNull(pattern, "pattern");
     _regex = new StringRegex(pattern, options);
 }
Пример #7
0
 public RubyRegex(MutableString /*!*/ pattern, RubyRegexOptions options)
 {
     ContractUtils.RequiresNotNull(pattern, "pattern");
     _regex = pattern.ToRegularExpression(options);
 }
Пример #8
0
 public RubyRegex()
 {
     _regex = StringRegex.Empty;
 }
Пример #9
0
 public void Set(MutableString /*!*/ pattern, RubyRegexOptions options)
 {
     _regex = pattern.ToRegularExpression(options);
 }