예제 #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);
 }