Developer Reference

  • 2020
  • 07/15/2020
  • Public Content
Contents

RegExpSetFormat

DEPRECATED. Sets source encoding format for given compiled pattern.

Syntax

IppStatus ippsRegExpSetFormat(IppRegExpFormat
fmt
, IppRegExpState*
pRegExpState
);
Include Files
ippch.h
Domain Dependencies
Headers:
ippcore.h
,
ippvm.h
,
ipps.h
Libraries:
ippcore.lib
,
ippvm.lib
,
ipps.lib
Parameters
fmt
New source encoding mode.
pRegExpState
Pointer to the structure containing internal form of a regular expression.
Description
The function sets the new source encoding format for given compiled pattern. Default source encoding format after
ippsRegExpInit
is UTF-8 with ASCII auto detection.
The enumeration
IppRegExpFormat
for representing a source encoding mode is defined as
typedef enum {
ippFmtASCII=0,
ippFmtUTF8,
}IppRegExpFormat
;
The function
ippsRegExpFind
returns
ippStsRegExpErr
when pattern and source string are coded with different encoding, or pattern contains unsupported features by chosen encoding format.
Return Values
ippStsNoErr
Indicates no error.
ippStsNullPtrErr
Indicates an error when the
pRegExpState
pointer is
NULL
.
ippStsRangeErr
Indicates an error when mode is not a valid element of the enumerated type
IppRegExpFormat
.

Product and Performance Information

1

Intel's compilers may or may not optimize to the same degree for non-Intel microprocessors for optimizations that are not unique to Intel microprocessors. These optimizations include SSE2, SSE3, and SSSE3 instruction sets and other optimizations. Intel does not guarantee the availability, functionality, or effectiveness of any optimization on microprocessors not manufactured by Intel. Microprocessor-dependent optimizations in this product are intended for use with Intel microprocessors. Certain optimizations not specific to Intel microarchitecture are reserved for Intel microprocessors. Please refer to the applicable product User and Reference Guides for more information regarding the specific instruction sets covered by this notice.

Notice revision #20110804