mirror of
https://github.com/unicode-org/icu.git
synced 2025-04-17 02:37:25 +00:00
ICU-8104 Move REGEXFINDPROGRESS_INTERRUPT macro out of regex.h into implementation
X-SVN-Rev: 28961
This commit is contained in:
parent
0c21fdf068
commit
cfe1b1d92f
2 changed files with 7 additions and 10 deletions
|
@ -32,6 +32,13 @@
|
|||
// #include <malloc.h> // Needed for heapcheck testing
|
||||
|
||||
|
||||
// Find progress callback
|
||||
// ----------------------
|
||||
// Macro to inline test & call to ReportFindProgress(). Eliminates unnecessary function call.
|
||||
//
|
||||
#define REGEXFINDPROGRESS_INTERRUPT(pos, status) \
|
||||
(fFindProgressCallbackFn != NULL) && (ReportFindProgress(pos, status) == FALSE)
|
||||
|
||||
|
||||
// Smart Backtracking
|
||||
// ------------------
|
||||
|
|
|
@ -1624,16 +1624,6 @@ public:
|
|||
UErrorCode &status);
|
||||
|
||||
|
||||
/**
|
||||
* inline version of ReportFindProgress() to eliminate function calls where a check for
|
||||
* the callback suffices.
|
||||
*
|
||||
* @draft ICU 4.6
|
||||
*/
|
||||
#define REGEXFINDPROGRESS_INTERRUPT(pos, status) \
|
||||
(fFindProgressCallbackFn != NULL) && (ReportFindProgress(pos, status) == FALSE)
|
||||
|
||||
|
||||
/**
|
||||
* setTrace Debug function, enable/disable tracing of the matching engine.
|
||||
* For internal ICU development use only. DO NO USE!!!!
|
||||
|
|
Loading…
Add table
Reference in a new issue