Hex Editor
Hex Editor - Binary File Editing Software for Windows

IFileDocument.PatternStatisticsRegExp2 Method

HHD Software - Hex Editor Serial Port Monitor USB Protocol Analyzer Network Monitor
 
 
 
< PreviousTopNext >
Declaration
Automation:
void  PatternStatisticsRegExp2 ( [in]   String  RegExp, [in]   uint  CodePage, [in]   uint  SubExpression, [in]   enum RegExpFlags  reFlags, [out]   ulong  pDataBuffer, [in]   uint  Blocks, [in]   ulong  StartFrom, [in]   ulong  Size) ;
Native (C++):
HRESULT  PatternStatisticsRegExp2 ( [in]   BSTR  RegExp, [in]   unsigned long  CodePage, [in]   unsigned long  SubExpression, [in]   enum RegExpFlags  reFlags, [out]   unsigned __int64 *  pDataBuffer, [in]   unsigned long  Blocks, [in]   unsigned __int64  StartFrom, [in]   unsigned __int64  Size) ;
Parameters
RegExp A string that contains a regular expression. A regular expression must by in ECMAScript syntax. CodePage Code page for regular expression pattern encoding or CP_UNICODE (-5) for UTF-16. SubExpression The number of sub-match to search for. 0 means the entire expression. reFlags Flags that change the behavior of the function. May be one or more of the following values:
Flag Value Description
RegExpIgnoreCase 0x00000002 True to ignore case and false to match case.
pDataBufferPointer to the statistics bufferBlocksNumber of blocksStartFrom A start offset of the range. Must be a multiple of 2 if RegExpTypeUNICODE flag is specified. Size Range's size. Must be a multiply of 2 if RegExpTypeUNICODE flag is specified.
Return Value
S_OK or standard OLE error code.
Remarks
Calculates file statistics for a given regular expression. See the Pattern Statistics section for more information. On method return, the pDataBuffer buffer is filled with calculated statistics values. Complexity: linear-time, depending on the file's size and regular expression complexity.
< PreviousTopNext >
Copyright © 2012 HHD Software. All rights reserved.