19 using System.Diagnostics;
20 using System.Text.RegularExpressions;
22 namespace Lucene.Net.Analysis.Hunspell {
26 [DebuggerDisplay(
"{Condition}")]
28 private String _condition;
29 private Regex _conditionPattern;
34 public String Append {
get;
set; }
39 public Char[] AppendFlags {
get;
set; }
44 public String Condition {
45 get {
return _condition; }
51 public Char Flag {
get;
set; }
56 public Boolean IsCrossProduct {
get;
set; }
61 public String Strip {
get;
set; }
72 throw new ArgumentNullException(
"text");
74 return _conditionPattern.IsMatch(text);
83 if (condition == null)
throw new ArgumentNullException(
"condition");
84 if (pattern == null)
throw new ArgumentNullException(
"pattern");
86 _condition = condition;
87 _conditionPattern =
new Regex(pattern);