--- embedaddon/pcre/doc/html/pcre16.html 2012/10/09 09:19:17 1.1.1.2 +++ embedaddon/pcre/doc/html/pcre16.html 2014/06/15 19:46:05 1.1.1.4 @@ -42,126 +42,126 @@ man page, in case the conversion went wrong.
PCRE 16-BIT API BASIC FUNCTIONS

pcre16 *pcre16_compile(PCRE_SPTR16 pattern, int options, -const char **errptr, int *erroffset, -const unsigned char *tableptr); -

-

+ const char **errptr, int *erroffset, + const unsigned char *tableptr); +
+
pcre16 *pcre16_compile2(PCRE_SPTR16 pattern, int options, -int *errorcodeptr, -const char **errptr, int *erroffset, -const unsigned char *tableptr); -

-

+ int *errorcodeptr, + const char **errptr, int *erroffset, + const unsigned char *tableptr); +
+
pcre16_extra *pcre16_study(const pcre16 *code, int options, -const char **errptr); -

-

+ const char **errptr); +
+
void pcre16_free_study(pcre16_extra *extra); -

-

+
+
int pcre16_exec(const pcre16 *code, const pcre16_extra *extra, -PCRE_SPTR16 subject, int length, int startoffset, -int options, int *ovector, int ovecsize); -

-

+ PCRE_SPTR16 subject, int length, int startoffset, + int options, int *ovector, int ovecsize); +
+
int pcre16_dfa_exec(const pcre16 *code, const pcre16_extra *extra, -PCRE_SPTR16 subject, int length, int startoffset, -int options, int *ovector, int ovecsize, -int *workspace, int wscount); + PCRE_SPTR16 subject, int length, int startoffset, + int options, int *ovector, int ovecsize, + int *workspace, int wscount);


PCRE 16-BIT API STRING EXTRACTION FUNCTIONS

int pcre16_copy_named_substring(const pcre16 *code, -PCRE_SPTR16 subject, int *ovector, -int stringcount, PCRE_SPTR16 stringname, -PCRE_UCHAR16 *buffer, int buffersize); -

-

+ PCRE_SPTR16 subject, int *ovector, + int stringcount, PCRE_SPTR16 stringname, + PCRE_UCHAR16 *buffer, int buffersize); +
+
int pcre16_copy_substring(PCRE_SPTR16 subject, int *ovector, -int stringcount, int stringnumber, PCRE_UCHAR16 *buffer, -int buffersize); -

-

+ int stringcount, int stringnumber, PCRE_UCHAR16 *buffer, + int buffersize); +
+
int pcre16_get_named_substring(const pcre16 *code, -PCRE_SPTR16 subject, int *ovector, -int stringcount, PCRE_SPTR16 stringname, -PCRE_SPTR16 *stringptr); -

-

+ PCRE_SPTR16 subject, int *ovector, + int stringcount, PCRE_SPTR16 stringname, + PCRE_SPTR16 *stringptr); +
+
int pcre16_get_stringnumber(const pcre16 *code, -PCRE_SPTR16 name); -

-

+" PCRE_SPTR16 name); +
+
int pcre16_get_stringtable_entries(const pcre16 *code, -PCRE_SPTR16 name, PCRE_UCHAR16 **first, PCRE_UCHAR16 **last); -

-

+ PCRE_SPTR16 name, PCRE_UCHAR16 **first, PCRE_UCHAR16 **last); +
+
int pcre16_get_substring(PCRE_SPTR16 subject, int *ovector, -int stringcount, int stringnumber, -PCRE_SPTR16 *stringptr); -

-

+ int stringcount, int stringnumber, + PCRE_SPTR16 *stringptr); +
+
int pcre16_get_substring_list(PCRE_SPTR16 subject, -int *ovector, int stringcount, PCRE_SPTR16 **listptr); -

-

+ int *ovector, int stringcount, PCRE_SPTR16 **listptr); +
+
void pcre16_free_substring(PCRE_SPTR16 stringptr); -

-

+
+
void pcre16_free_substring_list(PCRE_SPTR16 *stringptr);


PCRE 16-BIT API AUXILIARY FUNCTIONS

pcre16_jit_stack *pcre16_jit_stack_alloc(int startsize, int maxsize); -

-

+
+
void pcre16_jit_stack_free(pcre16_jit_stack *stack); -

-

+
+
void pcre16_assign_jit_stack(pcre16_extra *extra, -pcre16_jit_callback callback, void *data); -

-

+ pcre16_jit_callback callback, void *data); +
+
const unsigned char *pcre16_maketables(void); -

-

+
+
int pcre16_fullinfo(const pcre16 *code, const pcre16_extra *extra, -int what, void *where); -

-

+ int what, void *where); +
+
int pcre16_refcount(pcre16 *code, int adjust); -

-

+
+
int pcre16_config(int what, void *where); -

-

+
+
const char *pcre16_version(void); -

-

+
+
int pcre16_pattern_to_host_byte_order(pcre16 *code, -pcre16_extra *extra, const unsigned char *tables); + pcre16_extra *extra, const unsigned char *tables);


PCRE 16-BIT API INDIRECTED FUNCTIONS

void *(*pcre16_malloc)(size_t); -

-

+
+
void (*pcre16_free)(void *); -

-

+
+
void *(*pcre16_stack_malloc)(size_t); -

-

+
+
void (*pcre16_stack_free)(void *); -

-

+
+
int (*pcre16_callout)(pcre16_callout_block *);


PCRE 16-BIT API 16-BIT-ONLY FUNCTION

int pcre16_utf16_to_host_byte_order(PCRE_UCHAR16 *output, -PCRE_SPTR16 input, int length, int *byte_order, -int keep_boms); + PCRE_SPTR16 input, int length, int *byte_order, + int keep_boms);


THE PCRE 16-BIT LIBRARY

@@ -187,7 +187,7 @@ library. For example, if you want to study a pattern t
THE HEADER FILE

There is only one header file, pcre.h. It contains prototypes for all the -functions in both libraries, as well as definitions of flags, structures, error +functions in all libraries, as well as definitions of flags, structures, error codes, etc.


THE LIBRARY NAME
@@ -203,9 +203,9 @@ of bytes with the C type "char *". In the 16-bit libra vectors of unsigned 16-bit quantities. The macro PCRE_UCHAR16 specifies an appropriate data type, and PCRE_SPTR16 is defined as "const PCRE_UCHAR16 *". In very many environments, "short int" is a 16-bit data type. When PCRE is built, -it defines PCRE_UCHAR16 as "short int", but checks that it really is a 16-bit -data type. If it is not, the build fails with an error message telling the -maintainer to modify the definition appropriately. +it defines PCRE_UCHAR16 as "unsigned short int", but checks that it really is a +16-bit data type. If it is not, the build fails with an error message telling +the maintainer to modify the definition appropriately.


STRUCTURE TYPES

@@ -259,8 +259,9 @@ buffer, including the zero terminator if the string wa


SUBJECT STRING OFFSETS

-The offsets within subject strings that are returned by the matching functions -are in 16-bit units rather than bytes. +The lengths and starting offsets of subject strings must be specified in 16-bit +data units, and the offsets within subject strings that are returned by the +matching functions are in also 16-bit units rather than bytes.


NAMED SUBPATTERNS

@@ -283,8 +284,9 @@ page.

For the pcre16_config() function there is an option PCRE_CONFIG_UTF16 that returns 1 if UTF-16 support is configured, otherwise 0. If this option is -given to pcre_config(), or if the PCRE_CONFIG_UTF8 option is given to -pcre16_config(), the result is the PCRE_ERROR_BADOPTION error. +given to pcre_config() or pcre32_config(), or if the +PCRE_CONFIG_UTF8 or PCRE_CONFIG_UTF32 option is given to pcre16_config(), +the result is the PCRE_ERROR_BADOPTION error.


CHARACTER CODES

@@ -327,7 +329,7 @@ page. The UTF-16 errors are: PCRE_UTF16_ERR1 Missing low surrogate at end of string PCRE_UTF16_ERR2 Invalid low surrogate follows high surrogate PCRE_UTF16_ERR3 Isolated low surrogate - PCRE_UTF16_ERR4 Invalid character 0xfffe + PCRE_UTF16_ERR4 Non-character


ERROR TEXTS
@@ -348,13 +350,13 @@ files, but it can be used for testing the 16-bit libra command line option -16, patterns and subject strings are converted from 8-bit to 16-bit before being passed to PCRE, and the 16-bit library functions are used instead of the 8-bit ones. Returned 16-bit strings are converted to -8-bit for output. If the 8-bit library was not compiled, pcretest -defaults to 16-bit and the -16 option is ignored. +8-bit for output. If both the 8-bit and the 32-bit libraries were not compiled, +pcretest defaults to 16-bit and the -16 option is ignored.

When PCRE is being built, the RunTest script that is called by "make -check" uses the pcretest -C option to discover which of the 8-bit -and 16-bit libraries has been built, and runs the tests appropriately. +check" uses the pcretest -C option to discover which of the 8-bit, +16-bit and 32-bit libraries has been built, and runs the tests appropriately.


NOT SUPPORTED IN 16-BIT MODE

@@ -373,9 +375,9 @@ Cambridge CB2 3QH, England.


REVISION

-Last updated: 14 April 2012 +Last updated: 12 May 2013
-Copyright © 1997-2012 University of Cambridge. +Copyright © 1997-2013 University of Cambridge.

Return to the PCRE index page.