github的一些开源项目
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

318 lines
14 KiB

  1. <html>
  2. <!-- This is a manually maintained file that is the root of the HTML version of
  3. the PCRE2 documentation. When the HTML documents are built from the man
  4. page versions, the entire doc/html directory is emptied, this file is then
  5. copied into doc/html/index.html, and the remaining files therein are
  6. created by the 132html script.
  7. -->
  8. <head>
  9. <title>PCRE2 specification</title>
  10. </head>
  11. <body bgcolor="#FFFFFF" text="#00005A" link="#0066FF" alink="#3399FF" vlink="#2222BB">
  12. <h1>Perl-compatible Regular Expressions (revised API: PCRE2)</h1>
  13. <p>
  14. The HTML documentation for PCRE2 consists of a number of pages that are listed
  15. below in alphabetical order. If you are new to PCRE2, please read the first one
  16. first.
  17. </p>
  18. <table>
  19. <tr><td><a href="pcre2.html">pcre2</a></td>
  20. <td>&nbsp;&nbsp;Introductory page</td></tr>
  21. <tr><td><a href="pcre2-config.html">pcre2-config</a></td>
  22. <td>&nbsp;&nbsp;Information about the installation configuration</td></tr>
  23. <tr><td><a href="pcre2api.html">pcre2api</a></td>
  24. <td>&nbsp;&nbsp;PCRE2's native API</td></tr>
  25. <tr><td><a href="pcre2build.html">pcre2build</a></td>
  26. <td>&nbsp;&nbsp;Building PCRE2</td></tr>
  27. <tr><td><a href="pcre2callout.html">pcre2callout</a></td>
  28. <td>&nbsp;&nbsp;The <i>callout</i> facility</td></tr>
  29. <tr><td><a href="pcre2compat.html">pcre2compat</a></td>
  30. <td>&nbsp;&nbsp;Compability with Perl</td></tr>
  31. <tr><td><a href="pcre2convert.html">pcre2convert</a></td>
  32. <td>&nbsp;&nbsp;Experimental foreign pattern conversion functions</td></tr>
  33. <tr><td><a href="pcre2demo.html">pcre2demo</a></td>
  34. <td>&nbsp;&nbsp;A demonstration C program that uses the PCRE2 library</td></tr>
  35. <tr><td><a href="pcre2grep.html">pcre2grep</a></td>
  36. <td>&nbsp;&nbsp;The <b>pcre2grep</b> command</td></tr>
  37. <tr><td><a href="pcre2jit.html">pcre2jit</a></td>
  38. <td>&nbsp;&nbsp;Discussion of the just-in-time optimization support</td></tr>
  39. <tr><td><a href="pcre2limits.html">pcre2limits</a></td>
  40. <td>&nbsp;&nbsp;Details of size and other limits</td></tr>
  41. <tr><td><a href="pcre2matching.html">pcre2matching</a></td>
  42. <td>&nbsp;&nbsp;Discussion of the two matching algorithms</td></tr>
  43. <tr><td><a href="pcre2partial.html">pcre2partial</a></td>
  44. <td>&nbsp;&nbsp;Using PCRE2 for partial matching</td></tr>
  45. <tr><td><a href="pcre2pattern.html">pcre2pattern</a></td>
  46. <td>&nbsp;&nbsp;Specification of the regular expressions supported by PCRE2</td></tr>
  47. <tr><td><a href="pcre2perform.html">pcre2perform</a></td>
  48. <td>&nbsp;&nbsp;Some comments on performance</td></tr>
  49. <tr><td><a href="pcre2posix.html">pcre2posix</a></td>
  50. <td>&nbsp;&nbsp;The POSIX API to the PCRE2 8-bit library</td></tr>
  51. <tr><td><a href="pcre2sample.html">pcre2sample</a></td>
  52. <td>&nbsp;&nbsp;Discussion of the pcre2demo program</td></tr>
  53. <tr><td><a href="pcre2serialize.html">pcre2serialize</a></td>
  54. <td>&nbsp;&nbsp;Serializing functions for saving precompiled patterns</td></tr>
  55. <tr><td><a href="pcre2syntax.html">pcre2syntax</a></td>
  56. <td>&nbsp;&nbsp;Syntax quick-reference summary</td></tr>
  57. <tr><td><a href="pcre2test.html">pcre2test</a></td>
  58. <td>&nbsp;&nbsp;The <b>pcre2test</b> command for testing PCRE2</td></tr>
  59. <tr><td><a href="pcre2unicode.html">pcre2unicode</a></td>
  60. <td>&nbsp;&nbsp;Discussion of Unicode and UTF-8/UTF-16/UTF-32 support</td></tr>
  61. </table>
  62. <p>
  63. There are also individual pages that summarize the interface for each function
  64. in the library.
  65. </p>
  66. <table>
  67. <tr><td><a href="pcre2_callout_enumerate.html">pcre2_callout_enumerate</a></td>
  68. <td>&nbsp;&nbsp;Enumerate callouts in a compiled pattern</td></tr>
  69. <tr><td><a href="pcre2_code_copy.html">pcre2_code_copy</a></td>
  70. <td>&nbsp;&nbsp;Copy a compiled pattern</td></tr>
  71. <tr><td><a href="pcre2_code_copy_with_tables.html">pcre2_code_copy_with_tables</a></td>
  72. <td>&nbsp;&nbsp;Copy a compiled pattern and its character tables</td></tr>
  73. <tr><td><a href="pcre2_code_free.html">pcre2_code_free</a></td>
  74. <td>&nbsp;&nbsp;Free a compiled pattern</td></tr>
  75. <tr><td><a href="pcre2_compile.html">pcre2_compile</a></td>
  76. <td>&nbsp;&nbsp;Compile a regular expression pattern</td></tr>
  77. <tr><td><a href="pcre2_compile_context_copy.html">pcre2_compile_context_copy</a></td>
  78. <td>&nbsp;&nbsp;Copy a compile context</td></tr>
  79. <tr><td><a href="pcre2_compile_context_create.html">pcre2_compile_context_create</a></td>
  80. <td>&nbsp;&nbsp;Create a compile context</td></tr>
  81. <tr><td><a href="pcre2_compile_context_free.html">pcre2_compile_context_free</a></td>
  82. <td>&nbsp;&nbsp;Free a compile context</td></tr>
  83. <tr><td><a href="pcre2_config.html">pcre2_config</a></td>
  84. <td>&nbsp;&nbsp;Show build-time configuration options</td></tr>
  85. <tr><td><a href="pcre2_convert_context_copy.html">pcre2_convert_context_copy</a></td>
  86. <td>&nbsp;&nbsp;Copy a convert context</td></tr>
  87. <tr><td><a href="pcre2_convert_context_create.html">pcre2_convert_context_create</a></td>
  88. <td>&nbsp;&nbsp;Create a convert context</td></tr>
  89. <tr><td><a href="pcre2_convert_context_free.html">pcre2_convert_context_free</a></td>
  90. <td>&nbsp;&nbsp;Free a convert context</td></tr>
  91. <tr><td><a href="pcre2_converted_pattern_free.html">pcre2_converted_pattern_free</a></td>
  92. <td>&nbsp;&nbsp;Free converted foreign pattern</td></tr>
  93. <tr><td><a href="pcre2_dfa_match.html">pcre2_dfa_match</a></td>
  94. <td>&nbsp;&nbsp;Match a compiled pattern to a subject string
  95. (DFA algorithm; <i>not</i> Perl compatible)</td></tr>
  96. <tr><td><a href="pcre2_general_context_copy.html">pcre2_general_context_copy</a></td>
  97. <td>&nbsp;&nbsp;Copy a general context</td></tr>
  98. <tr><td><a href="pcre2_general_context_create.html">pcre2_general_context_create</a></td>
  99. <td>&nbsp;&nbsp;Create a general context</td></tr>
  100. <tr><td><a href="pcre2_general_context_free.html">pcre2_general_context_free</a></td>
  101. <td>&nbsp;&nbsp;Free a general context</td></tr>
  102. <tr><td><a href="pcre2_get_error_message.html">pcre2_get_error_message</a></td>
  103. <td>&nbsp;&nbsp;Get textual error message for error number</td></tr>
  104. <tr><td><a href="pcre2_get_mark.html">pcre2_get_mark</a></td>
  105. <td>&nbsp;&nbsp;Get a (*MARK) name</td></tr>
  106. <tr><td><a href="pcre2_get_match_data_size.html">pcre2_get_match_data_size</a></td>
  107. <td>&nbsp;&nbsp;Get the size of a match data block</td></tr>
  108. <tr><td><a href="pcre2_get_ovector_count.html">pcre2_get_ovector_count</a></td>
  109. <td>&nbsp;&nbsp;Get the ovector count</td></tr>
  110. <tr><td><a href="pcre2_get_ovector_pointer.html">pcre2_get_ovector_pointer</a></td>
  111. <td>&nbsp;&nbsp;Get a pointer to the ovector</td></tr>
  112. <tr><td><a href="pcre2_get_startchar.html">pcre2_get_startchar</a></td>
  113. <td>&nbsp;&nbsp;Get the starting character offset</td></tr>
  114. <tr><td><a href="pcre2_jit_compile.html">pcre2_jit_compile</a></td>
  115. <td>&nbsp;&nbsp;Process a compiled pattern with the JIT compiler</td></tr>
  116. <tr><td><a href="pcre2_jit_free_unused_memory.html">pcre2_jit_free_unused_memory</a></td>
  117. <td>&nbsp;&nbsp;Free unused JIT memory</td></tr>
  118. <tr><td><a href="pcre2_jit_match.html">pcre2_jit_match</a></td>
  119. <td>&nbsp;&nbsp;Fast path interface to JIT matching</td></tr>
  120. <tr><td><a href="pcre2_jit_stack_assign.html">pcre2_jit_stack_assign</a></td>
  121. <td>&nbsp;&nbsp;Assign stack for JIT matching</td></tr>
  122. <tr><td><a href="pcre2_jit_stack_create.html">pcre2_jit_stack_create</a></td>
  123. <td>&nbsp;&nbsp;Create a stack for JIT matching</td></tr>
  124. <tr><td><a href="pcre2_jit_stack_free.html">pcre2_jit_stack_free</a></td>
  125. <td>&nbsp;&nbsp;Free a JIT matching stack</td></tr>
  126. <tr><td><a href="pcre2_maketables.html">pcre2_maketables</a></td>
  127. <td>&nbsp;&nbsp;Build character tables in current locale</td></tr>
  128. <tr><td><a href="pcre2_maketables_free.html">pcre2_maketables_free</a></td>
  129. <td>&nbsp;&nbsp;Free character tables</td></tr>
  130. <tr><td><a href="pcre2_match.html">pcre2_match</a></td>
  131. <td>&nbsp;&nbsp;Match a compiled pattern to a subject string
  132. (Perl compatible)</td></tr>
  133. <tr><td><a href="pcre2_match_context_copy.html">pcre2_match_context_copy</a></td>
  134. <td>&nbsp;&nbsp;Copy a match context</td></tr>
  135. <tr><td><a href="pcre2_match_context_create.html">pcre2_match_context_create</a></td>
  136. <td>&nbsp;&nbsp;Create a match context</td></tr>
  137. <tr><td><a href="pcre2_match_context_free.html">pcre2_match_context_free</a></td>
  138. <td>&nbsp;&nbsp;Free a match context</td></tr>
  139. <tr><td><a href="pcre2_match_data_create.html">pcre2_match_data_create</a></td>
  140. <td>&nbsp;&nbsp;Create a match data block</td></tr>
  141. <tr><td><a href="pcre2_match_data_create_from_pattern.html">pcre2_match_data_create_from_pattern</a></td>
  142. <td>&nbsp;&nbsp;Create a match data block getting size from pattern</td></tr>
  143. <tr><td><a href="pcre2_match_data_free.html">pcre2_match_data_free</a></td>
  144. <td>&nbsp;&nbsp;Free a match data block</td></tr>
  145. <tr><td><a href="pcre2_pattern_convert.html">pcre2_pattern_convert</a></td>
  146. <td>&nbsp;&nbsp;Experimental foreign pattern converter</td></tr>
  147. <tr><td><a href="pcre2_pattern_info.html">pcre2_pattern_info</a></td>
  148. <td>&nbsp;&nbsp;Extract information about a pattern</td></tr>
  149. <tr><td><a href="pcre2_serialize_decode.html">pcre2_serialize_decode</a></td>
  150. <td>&nbsp;&nbsp;Decode serialized compiled patterns</td></tr>
  151. <tr><td><a href="pcre2_serialize_encode.html">pcre2_serialize_encode</a></td>
  152. <td>&nbsp;&nbsp;Serialize compiled patterns for save/restore</td></tr>
  153. <tr><td><a href="pcre2_serialize_free.html">pcre2_serialize_free</a></td>
  154. <td>&nbsp;&nbsp;Free serialized compiled patterns</td></tr>
  155. <tr><td><a href="pcre2_serialize_get_number_of_codes.html">pcre2_serialize_get_number_of_codes</a></td>
  156. <td>&nbsp;&nbsp;Get number of serialized compiled patterns</td></tr>
  157. <tr><td><a href="pcre2_set_bsr.html">pcre2_set_bsr</a></td>
  158. <td>&nbsp;&nbsp;Set \R convention</td></tr>
  159. <tr><td><a href="pcre2_set_callout.html">pcre2_set_callout</a></td>
  160. <td>&nbsp;&nbsp;Set up a callout function</td></tr>
  161. <tr><td><a href="pcre2_set_character_tables.html">pcre2_set_character_tables</a></td>
  162. <td>&nbsp;&nbsp;Set character tables</td></tr>
  163. <tr><td><a href="pcre2_set_compile_extra_options.html">pcre2_set_compile_extra_options</a></td>
  164. <td>&nbsp;&nbsp;Set compile time extra options</td></tr>
  165. <tr><td><a href="pcre2_set_compile_recursion_guard.html">pcre2_set_compile_recursion_guard</a></td>
  166. <td>&nbsp;&nbsp;Set up a compile recursion guard function</td></tr>
  167. <tr><td><a href="pcre2_set_depth_limit.html">pcre2_set_depth_limit</a></td>
  168. <td>&nbsp;&nbsp;Set the match backtracking depth limit</td></tr>
  169. <tr><td><a href="pcre2_set_glob_escape.html">pcre2_set_glob_escape</a></td>
  170. <td>&nbsp;&nbsp;Set glob escape character</td></tr>
  171. <tr><td><a href="pcre2_set_glob_separator.html">pcre2_set_glob_separator</a></td>
  172. <td>&nbsp;&nbsp;Set glob separator character</td></tr>
  173. <tr><td><a href="pcre2_set_heap_limit.html">pcre2_set_heap_limit</a></td>
  174. <td>&nbsp;&nbsp;Set the match backtracking heap limit</td></tr>
  175. <tr><td><a href="pcre2_set_match_limit.html">pcre2_set_match_limit</a></td>
  176. <td>&nbsp;&nbsp;Set the match limit</td></tr>
  177. <tr><td><a href="pcre2_set_max_pattern_compiled_length.html">pcre2_set_max_pattern_compiled_length</a></td>
  178. <td>&nbsp;&nbsp;Set the maximum length of a compiled pattern</td></tr>
  179. <tr><td><a href="pcre2_set_max_pattern_length.html">pcre2_set_max_pattern_length</a></td>
  180. <td>&nbsp;&nbsp;Set the maximum length of a pattern</td></tr>
  181. <tr><td><a href="pcre2_set_max_varlookbehind.html">pcre2_set_max_varlookbehind</a></td>
  182. <td>&nbsp;&nbsp;Set the maximum match length for a variable-length lookbehind</td></tr>
  183. <tr><td><a href="pcre2_set_newline.html">pcre2_set_newline</a></td>
  184. <td>&nbsp;&nbsp;Set the newline convention</td></tr>
  185. <tr><td><a href="pcre2_set_offset_limit.html">pcre2_set_offset_limit</a></td>
  186. <td>&nbsp;&nbsp;Set the offset limit</td></tr>
  187. <tr><td><a href="pcre2_set_parens_nest_limit.html">pcre2_set_parens_nest_limit</a></td>
  188. <td>&nbsp;&nbsp;Set the parentheses nesting limit</td></tr>
  189. <tr><td><a href="pcre2_set_recursion_limit.html">pcre2_set_recursion_limit</a></td>
  190. <td>&nbsp;&nbsp;Obsolete: use pcre2_set_depth_limit</td></tr>
  191. <tr><td><a href="pcre2_set_recursion_memory_management.html">pcre2_set_recursion_memory_management</a></td>
  192. <td>&nbsp;&nbsp;Obsolete function that (from 10.30 onwards) does nothing</td></tr>
  193. <tr><td><a href="pcre2_substitute.html">pcre2_substitute</a></td>
  194. <td>&nbsp;&nbsp;Match a compiled pattern to a subject string and do
  195. substitutions</td></tr>
  196. <tr><td><a href="pcre2_substring_copy_byname.html">pcre2_substring_copy_byname</a></td>
  197. <td>&nbsp;&nbsp;Extract named substring into given buffer</td></tr>
  198. <tr><td><a href="pcre2_substring_copy_bynumber.html">pcre2_substring_copy_bynumber</a></td>
  199. <td>&nbsp;&nbsp;Extract numbered substring into given buffer</td></tr>
  200. <tr><td><a href="pcre2_substring_free.html">pcre2_substring_free</a></td>
  201. <td>&nbsp;&nbsp;Free extracted substring</td></tr>
  202. <tr><td><a href="pcre2_substring_get_byname.html">pcre2_substring_get_byname</a></td>
  203. <td>&nbsp;&nbsp;Extract named substring into new memory</td></tr>
  204. <tr><td><a href="pcre2_substring_get_bynumber.html">pcre2_substring_get_bynumber</a></td>
  205. <td>&nbsp;&nbsp;Extract numbered substring into new memory</td></tr>
  206. <tr><td><a href="pcre2_substring_length_byname.html">pcre2_substring_length_byname</a></td>
  207. <td>&nbsp;&nbsp;Find length of named substring</td></tr>
  208. <tr><td><a href="pcre2_substring_length_bynumber.html">pcre2_substring_length_bynumber</a></td>
  209. <td>&nbsp;&nbsp;Find length of numbered substring</td></tr>
  210. <tr><td><a href="pcre2_substring_list_free.html">pcre2_substring_list_free</a></td>
  211. <td>&nbsp;&nbsp;Free list of extracted substrings</td></tr>
  212. <tr><td><a href="pcre2_substring_list_get.html">pcre2_substring_list_get</a></td>
  213. <td>&nbsp;&nbsp;Extract all substrings into new memory</td></tr>
  214. <tr><td><a href="pcre2_substring_nametable_scan.html">pcre2_substring_nametable_scan</a></td>
  215. <td>&nbsp;&nbsp;Find table entries for given string name</td></tr>
  216. <tr><td><a href="pcre2_substring_number_from_name.html">pcre2_substring_number_from_name</a></td>
  217. <td>&nbsp;&nbsp;Convert captured string name to number</td></tr>
  218. </table>
  219. </html>