168 |
Starting with release 8.32, it is possible to compile a PCRE library that |
Starting with release 8.32, it is possible to compile a PCRE library that |
169 |
supports 32-bit character strings, including UTF-32 strings, as well as or |
supports 32-bit character strings, including UTF-32 strings, as well as or |
170 |
instead of the original 8-bit library. This work was done by Christian Persch, |
instead of the original 8-bit library. This work was done by Christian Persch, |
171 |
based on the work done by Zoltan Herczeg for the 16-bit library. All three |
based on the work done by Zoltan Herczeg for the 16-bit library. All three |
172 |
libraries contain identical sets of functions, used in exactly the same way. |
libraries contain identical sets of functions, used in exactly the same way. |
173 |
Only the names of the functions and the data types of their arguments and |
Only the names of the functions and the data types of their arguments and |
174 |
results are different. To avoid over-complication and reduce the documentation |
results are different. To avoid over-complication and reduce the documentation |
187 |
<br><a name="SEC7" href="#TOC1">THE HEADER FILE</a><br> |
<br><a name="SEC7" href="#TOC1">THE HEADER FILE</a><br> |
188 |
<P> |
<P> |
189 |
There is only one header file, <b>pcre.h</b>. It contains prototypes for all the |
There is only one header file, <b>pcre.h</b>. It contains prototypes for all the |
190 |
functions in both libraries, as well as definitions of flags, structures, error |
functions in all libraries, as well as definitions of flags, structures, error |
191 |
codes, etc. |
codes, etc. |
192 |
</P> |
</P> |
193 |
<br><a name="SEC8" href="#TOC1">THE LIBRARY NAME</a><br> |
<br><a name="SEC8" href="#TOC1">THE LIBRARY NAME</a><br> |
202 |
of bytes with the C type "char *". In the 32-bit library, strings are passed as |
of bytes with the C type "char *". In the 32-bit library, strings are passed as |
203 |
vectors of unsigned 32-bit quantities. The macro PCRE_UCHAR32 specifies an |
vectors of unsigned 32-bit quantities. The macro PCRE_UCHAR32 specifies an |
204 |
appropriate data type, and PCRE_SPTR32 is defined as "const PCRE_UCHAR32 *". In |
appropriate data type, and PCRE_SPTR32 is defined as "const PCRE_UCHAR32 *". In |
205 |
very many environments, "unsigned int" is a 32-bit data type. When PCRE is built, |
very many environments, "unsigned int" is a 32-bit data type. When PCRE is |
206 |
it defines PCRE_UCHAR32 as "unsigned int", but checks that it really is a 32-bit |
built, it defines PCRE_UCHAR32 as "unsigned int", but checks that it really is |
207 |
data type. If it is not, the build fails with an error message telling the |
a 32-bit data type. If it is not, the build fails with an error message telling |
208 |
maintainer to modify the definition appropriately. |
the maintainer to modify the definition appropriately. |
209 |
</P> |
</P> |
210 |
<br><a name="SEC10" href="#TOC1">STRUCTURE TYPES</a><br> |
<br><a name="SEC10" href="#TOC1">STRUCTURE TYPES</a><br> |
211 |
<P> |
<P> |
373 |
</P> |
</P> |
374 |
<br><a name="SEC22" href="#TOC1">REVISION</a><br> |
<br><a name="SEC22" href="#TOC1">REVISION</a><br> |
375 |
<P> |
<P> |
376 |
Last updated: 24 June 2012 |
Last updated: 08 November 2012 |
377 |
<br> |
<br> |
378 |
Copyright © 1997-2012 University of Cambridge. |
Copyright © 1997-2012 University of Cambridge. |
379 |
<br> |
<br> |