| OLD | NEW |
| 1 // | 1 // |
| 2 // regexcmp.h | 2 // regexcmp.h |
| 3 // | 3 // |
| 4 // Copyright (C) 2002-2014, International Business Machines Corporation and oth
ers. | 4 // Copyright (C) 2002-2015, International Business Machines Corporation and oth
ers. |
| 5 // All Rights Reserved. | 5 // All Rights Reserved. |
| 6 // | 6 // |
| 7 // This file contains declarations for the class RegexCompile | 7 // This file contains declarations for the class RegexCompile |
| 8 // | 8 // |
| 9 // This class is internal to the regular expression implementation. | 9 // This class is internal to the regular expression implementation. |
| 10 // For the public Regular Expression API, see the file "unicode/regex.h" | 10 // For the public Regular Expression API, see the file "unicode/regex.h" |
| 11 // | 11 // |
| 12 | 12 |
| 13 | 13 |
| 14 #ifndef RBBISCAN_H | 14 #ifndef RBBISCAN_H |
| (...skipping 198 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 213 // scanned. | 213 // scanned. |
| 214 | 214 |
| 215 UStack fSetStack; // Stack of UnicodeSets, us
ed while evaluating | 215 UStack fSetStack; // Stack of UnicodeSets, us
ed while evaluating |
| 216 // (at compile time) set
expressions within | 216 // (at compile time) set
expressions within |
| 217 // the pattern. | 217 // the pattern. |
| 218 UStack fSetOpStack; // Stack of pending set ope
rators (&&, --, union) | 218 UStack fSetOpStack; // Stack of pending set ope
rators (&&, --, union) |
| 219 | 219 |
| 220 UChar32 fLastSetLiteral; // The last single code poi
nt added to a set. | 220 UChar32 fLastSetLiteral; // The last single code poi
nt added to a set. |
| 221 // needed when "-y" is sc
anned, and we need | 221 // needed when "-y" is sc
anned, and we need |
| 222 // to turn "x-y" into a r
ange. | 222 // to turn "x-y" into a r
ange. |
| 223 |
| 224 UnicodeString *fCaptureName; // Named Capture, the group
name is built up |
| 225 // in this string while b
eing scanned. |
| 223 }; | 226 }; |
| 224 | 227 |
| 225 // Constant values to be pushed onto fSetOpStack while scanning & evalueating [s
et expressions] | 228 // Constant values to be pushed onto fSetOpStack while scanning & evalueating [s
et expressions] |
| 226 // The high 16 bits are the operator precedence, and the low 16 are a code for
the operation itself. | 229 // The high 16 bits are the operator precedence, and the low 16 are a code for
the operation itself. |
| 227 | 230 |
| 228 enum SetOperations { | 231 enum SetOperations { |
| 229 setStart = 0 << 16 | 1, | 232 setStart = 0 << 16 | 1, |
| 230 setEnd = 1 << 16 | 2, | 233 setEnd = 1 << 16 | 2, |
| 231 setNegation = 2 << 16 | 3, | 234 setNegation = 2 << 16 | 3, |
| 232 setCaseClose = 2 << 16 | 9, | 235 setCaseClose = 2 << 16 | 9, |
| 233 setDifference2 = 3 << 16 | 4, // '--' set difference operator | 236 setDifference2 = 3 << 16 | 4, // '--' set difference operator |
| 234 setIntersection2 = 3 << 16 | 5, // '&&' set intersection operator | 237 setIntersection2 = 3 << 16 | 5, // '&&' set intersection operator |
| 235 setUnion = 4 << 16 | 6, // implicit union of adjacent items | 238 setUnion = 4 << 16 | 6, // implicit union of adjacent items |
| 236 setDifference1 = 4 << 16 | 7, // '-', single dash difference op, for co
mpatibility with old UnicodeSet. | 239 setDifference1 = 4 << 16 | 7, // '-', single dash difference op, for co
mpatibility with old UnicodeSet. |
| 237 setIntersection1 = 4 << 16 | 8 // '&', single amp intersection op, for c
ompatibility with old UnicodeSet. | 240 setIntersection1 = 4 << 16 | 8 // '&', single amp intersection op, for c
ompatibility with old UnicodeSet. |
| 238 }; | 241 }; |
| 239 | 242 |
| 240 U_NAMESPACE_END | 243 U_NAMESPACE_END |
| 241 #endif // !UCONFIG_NO_REGULAR_EXPRESSIONS | 244 #endif // !UCONFIG_NO_REGULAR_EXPRESSIONS |
| 242 #endif // RBBISCAN_H | 245 #endif // RBBISCAN_H |
| OLD | NEW |