+// © 2016 and later: Unicode, Inc. and others.
+// License & terms of use: http://www.unicode.org/copyright.html
//
// regexst.h
//
-// Copyright (C) 2003, International Business Machines Corporation and others.
+// Copyright (C) 2003-2010, International Business Machines Corporation and others.
// All Rights Reserved.
//
// This file contains declarations for the class RegexStaticSets
#define REGEXST_H
#include "unicode/utypes.h"
+#include "unicode/utext.h"
#if !UCONFIG_NO_REGULAR_EXPRESSIONS
#include "regeximp.h"
RegexStaticSets(UErrorCode *status);
~RegexStaticSets();
static void initGlobals(UErrorCode *status);
+ static UBool cleanup();
UnicodeSet *fPropSets[URX_LAST_SET]; // The sets for common regex items, e.g. \s
Regex8BitSet fPropSets8[URX_LAST_SET]; // Fast bitmap sets for latin-1 range for above.
- UnicodeSet *fRuleSets[10]; // Sets used while parsing regexp patterns.
- UnicodeSet *fUnescapeCharSet; // Set of chars handled by unescape when
- // encountered with a \ in a pattern.
- UnicodeSet *fRuleDigits;
- UnicodeString *fEmptyString; // An empty string, to be used when a matcher
- // is created with no input.
+ UnicodeSet fRuleSets[10]; // Sets used while parsing regexp patterns.
+ UnicodeSet fUnescapeCharSet; // Set of chars handled by unescape when
+ // encountered with a \ in a pattern.
+ UnicodeSet *fRuleDigitsAlias;
+ UText *fEmptyText; // An empty string, to be used when a matcher
+ // is created with no input.
};
-
-
U_NAMESPACE_END
#endif // !UCONFIG_NO_REGULAR_EXPRESSIONS
#endif // REGEXST_H
+