diff options
author | Neil Moore <neil@s-z.org> | 2012-09-06 10:51:00 -0400 |
---|---|---|
committer | Neil Moore <neil@s-z.org> | 2012-09-14 09:33:28 -0400 |
commit | 468f6c3f88cfb84fc3af9171f71c32c7a105b06f (patch) | |
tree | 3b87205d2a98cbdb0a954dc903d1aeae449c45f9 /crawl-ref/source/pattern.h | |
parent | 65aa13110207544d7e21662b468c142ecf8276fd (diff) | |
download | crawl-ref-468f6c3f88cfb84fc3af9171f71c32c7a105b06f.tar.gz crawl-ref-468f6c3f88cfb84fc3af9171f71c32c7a105b06f.zip |
Saner rc list options, including reset.
We now support "listopt =" to clear the list, and support "-=" with many
more options. We also warn when "listopt = foo" is interpreted to mean
"append", because that is likely to change in 0.12.
These changes are intended to go into 0.11, but we'll need to update the
options guide first.
Diffstat (limited to 'crawl-ref/source/pattern.h')
-rw-r--r-- | crawl-ref/source/pattern.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/crawl-ref/source/pattern.h b/crawl-ref/source/pattern.h index 36cf49b0d0..91bebf9e0e 100644 --- a/crawl-ref/source/pattern.h +++ b/crawl-ref/source/pattern.h @@ -94,6 +94,14 @@ public: return *this; } + const bool operator== (const basic_text_pattern &tp) const + { + if (this == &tp) + return true; + + return (pattern == tp.pattern && ignore_case == tp.ignore_case); + } + bool compile() const { return !empty()? |