X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;ds=inline;f=src%2Fcom%2Fstevesoft%2Fpat%2FRthings.java;h=58afe8ef5ebe065a4a2b2219f9f75a80cf4a04cb;hb=7c5caa07d0f487073d859589149a91ea2b893105;hp=4c4db39304de4c192c862a71e32438229370526c;hpb=7bc226b58110fa26d9dbd3f0c78095d06909ffc3;p=jalview.git
diff --git a/src/com/stevesoft/pat/Rthings.java b/src/com/stevesoft/pat/Rthings.java
index 4c4db39..58afe8e 100755
--- a/src/com/stevesoft/pat/Rthings.java
+++ b/src/com/stevesoft/pat/Rthings.java
@@ -1,52 +1,68 @@
-//
-// This software is now distributed according to
-// the Lesser Gnu Public License. Please see
-// http://www.gnu.org/copyleft/lesser.txt for
-// the details.
-// -- Happy Computing!
-//
-package com.stevesoft.pat;
-
-/**
- Shareware: package pat
- Copyright 2001, Steven R. Brandt
- */
-/**
- This class only exists to store data needed during the
- compilation of a regular expression. */
-public class Rthings
-{
- /** The numeric identity of the next () to be encountered
- while compiling the pattern. */
- public int val = Regex.BackRefOffset;
- /** Needed in case (?i) is encountered, to pass back the
- message that ignoreCase should be set. */
- public boolean ignoreCase;
- /** Needed in case (?Q) is encountered, to pass back the
- message that dontMatchInQuotes should be set. */
- public boolean dontMatchInQuotes;
- public boolean optimizeMe = false;
- public boolean noBackRefs = false;
- public int parenLevel = 0;
- boolean gFlag = false, mFlag = false, sFlag = false;
- Pattern p;
- Or o;
- Rthings(Regex r)
- {
- ignoreCase = r.ignoreCase;
- dontMatchInQuotes = r.dontMatchInQuotes;
- }
-
- void set(Regex r)
- {
- r.gFlag = gFlag;
- r.mFlag = mFlag;
- r.sFlag = sFlag;
- r.ignoreCase = ignoreCase;
- r.dontMatchInQuotes = dontMatchInQuotes;
- if (optimizeMe)
- {
- r.optimize();
- }
- }
-};
+//
+// This software is now distributed according to
+// the Lesser Gnu Public License. Please see
+// http://www.gnu.org/copyleft/lesser.txt for
+// the details.
+// -- Happy Computing!
+//
+package com.stevesoft.pat;
+
+/**
+ Shareware: package pat
+ Copyright 2001, Steven R. Brandt
+ */
+/**
+ * This class only exists to store data needed during the compilation of a
+ * regular expression.
+ */
+public class Rthings
+{
+ /**
+ * The numeric identity of the next () to be encountered while compiling the
+ * pattern.
+ */
+ public int val = Regex.BackRefOffset;
+
+ /**
+ * Needed in case (?i) is encountered, to pass back the message that
+ * ignoreCase should be set.
+ */
+ public boolean ignoreCase;
+
+ /**
+ * Needed in case (?Q) is encountered, to pass back the message that
+ * dontMatchInQuotes should be set.
+ */
+ public boolean dontMatchInQuotes;
+
+ public boolean optimizeMe = false;
+
+ public boolean noBackRefs = false;
+
+ public int parenLevel = 0;
+
+ boolean gFlag = false, mFlag = false, sFlag = false;
+
+ Pattern p;
+
+ Or o;
+
+ Rthings(Regex r)
+ {
+ ignoreCase = r.ignoreCase;
+ dontMatchInQuotes = r.dontMatchInQuotes;
+ }
+
+ void set(Regex r)
+ {
+ r.gFlag = gFlag;
+ r.mFlag = mFlag;
+ r.sFlag = sFlag;
+ r.ignoreCase = ignoreCase;
+ r.dontMatchInQuotes = dontMatchInQuotes;
+ if (optimizeMe)
+ {
+ r.optimize();
+ }
+ }
+};