Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(926)

Side by Side Diff: icu46/source/i18n/regexst.h

Issue 5516007: Check in the pristine copy of ICU 4.6... (Closed) Base URL: svn://chrome-svn/chrome/trunk/deps/third_party/
Patch Set: Created 10 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « icu46/source/i18n/regeximp.h ('k') | icu46/source/i18n/regexst.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Property Changes:
Added: svn:eol-style
+ LF
OLDNEW
(Empty)
1 //
2 // regexst.h
3 //
4 // Copyright (C) 2003-2010, International Business Machines Corporation and oth ers.
5 // All Rights Reserved.
6 //
7 // This file contains declarations for the class RegexStaticSets
8 //
9 // This class is internal to the regular expression implementation.
10 // For the public Regular Expression API, see the file "unicode/regex.h"
11 //
12 // RegexStaticSets groups together the common UnicodeSets that are needed
13 // for compiling or executing RegularExpressions. This grouping simplifies
14 // the thread safe lazy creation and sharing of these sets across
15 // all instances of regular expressions.
16 //
17
18 #ifndef REGEXST_H
19 #define REGEXST_H
20
21 #include "unicode/utypes.h"
22 #include "unicode/utext.h"
23 #if !UCONFIG_NO_REGULAR_EXPRESSIONS
24
25 #include "regeximp.h"
26
27 U_NAMESPACE_BEGIN
28
29 class UnicodeSet;
30
31
32 class RegexStaticSets : public UMemory {
33 public:
34 static RegexStaticSets *gStaticSets; // Ptr to all lazily initialized const ant
35 // shared sets.
36
37 RegexStaticSets(UErrorCode *status);
38 ~RegexStaticSets();
39 static void initGlobals(UErrorCode *status);
40 static UBool cleanup();
41
42 UnicodeSet *fPropSets[URX_LAST_SET]; // The sets for common regex ite ms, e.g. \s
43 Regex8BitSet fPropSets8[URX_LAST_SET]; // Fast bitmap sets for latin-1 range for above.
44
45 UnicodeSet fRuleSets[10]; // Sets used while parsing regexp patterns.
46 UnicodeSet fUnescapeCharSet; // Set of chars handled by unesca pe when
47 // encountered with a \ in a pa ttern.
48 UnicodeSet *fRuleDigitsAlias;
49 UText *fEmptyText; // An empty string, to be used wh en a matcher
50 // is created with no input.
51
52 };
53
54
55 U_NAMESPACE_END
56 #endif // !UCONFIG_NO_REGULAR_EXPRESSIONS
57 #endif // REGEXST_H
58
OLDNEW
« no previous file with comments | « icu46/source/i18n/regeximp.h ('k') | icu46/source/i18n/regexst.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698