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.

522 lines
22 KiB

  1. <html>
  2. <head>
  3. <title>pcre2unicode specification</title>
  4. </head>
  5. <body bgcolor="#FFFFFF" text="#00005A" link="#0066FF" alink="#3399FF" vlink="#2222BB">
  6. <h1>pcre2unicode man page</h1>
  7. <p>
  8. Return to the <a href="index.html">PCRE2 index page</a>.
  9. </p>
  10. <p>
  11. This page is part of the PCRE2 HTML documentation. It was generated
  12. automatically from the original man page. If there is any nonsense in it,
  13. please consult the man page, in case the conversion went wrong.
  14. <br>
  15. <br><b>
  16. UNICODE AND UTF SUPPORT
  17. </b><br>
  18. <P>
  19. PCRE2 is normally built with Unicode support, though if you do not need it, you
  20. can build it without, in which case the library will be smaller. With Unicode
  21. support, PCRE2 has knowledge of Unicode character properties and can process
  22. strings of text in UTF-8, UTF-16, and UTF-32 format (depending on the code unit
  23. width), but this is not the default. Unless specifically requested, PCRE2
  24. treats each code unit in a string as one character.
  25. </P>
  26. <P>
  27. There are two ways of telling PCRE2 to switch to UTF mode, where characters may
  28. consist of more than one code unit and the range of values is constrained. The
  29. program can call
  30. <a href="pcre2_compile.html"><b>pcre2_compile()</b></a>
  31. with the PCRE2_UTF option, or the pattern may start with the sequence (*UTF).
  32. However, the latter facility can be locked out by the PCRE2_NEVER_UTF option.
  33. That is, the programmer can prevent the supplier of the pattern from switching
  34. to UTF mode.
  35. </P>
  36. <P>
  37. Note that the PCRE2_MATCH_INVALID_UTF option (see
  38. <a href="#matchinvalid">below)</a>
  39. forces PCRE2_UTF to be set.
  40. </P>
  41. <P>
  42. In UTF mode, both the pattern and any subject strings that are matched against
  43. it are treated as UTF strings instead of strings of individual one-code-unit
  44. characters. There are also some other changes to the way characters are
  45. handled, as documented below.
  46. </P>
  47. <br><b>
  48. UNICODE PROPERTY SUPPORT
  49. </b><br>
  50. <P>
  51. When PCRE2 is built with Unicode support, the escape sequences \p{..},
  52. \P{..}, and \X can be used. This is not dependent on the PCRE2_UTF setting.
  53. The Unicode properties that can be tested are a subset of those that Perl
  54. supports. Currently they are limited to the general category properties such as
  55. Lu for an upper case letter or Nd for a decimal number, the derived properties
  56. Any and LC (synonym L&), the Unicode script names such as Arabic or Han,
  57. Bidi_Class, Bidi_Control, and a few binary properties.
  58. </P>
  59. <P>
  60. The full lists are given in the
  61. <a href="pcre2pattern.html"><b>pcre2pattern</b></a>
  62. and
  63. <a href="pcre2syntax.html"><b>pcre2syntax</b></a>
  64. documentation. In general, only the short names for properties are supported.
  65. For example, \p{L} matches a letter. Its longer synonym, \p{Letter}, is not
  66. supported. Furthermore, in Perl, many properties may optionally be prefixed by
  67. "Is", for compatibility with Perl 5.6. PCRE2 does not support this.
  68. </P>
  69. <br><b>
  70. WIDE CHARACTERS AND UTF MODES
  71. </b><br>
  72. <P>
  73. Code points less than 256 can be specified in patterns by either braced or
  74. unbraced hexadecimal escape sequences (for example, \x{b3} or \xb3). Larger
  75. values have to use braced sequences. Unbraced octal code points up to \777 are
  76. also recognized; larger ones can be coded using \o{...}.
  77. </P>
  78. <P>
  79. The escape sequence \N{U+&#60;hex digits&#62;} is recognized as another way of
  80. specifying a Unicode character by code point in a UTF mode. It is not allowed
  81. in non-UTF mode.
  82. </P>
  83. <P>
  84. In UTF mode, repeat quantifiers apply to complete UTF characters, not to
  85. individual code units.
  86. </P>
  87. <P>
  88. In UTF mode, the dot metacharacter matches one UTF character instead of a
  89. single code unit.
  90. </P>
  91. <P>
  92. In UTF mode, capture group names are not restricted to ASCII, and may contain
  93. any Unicode letters and decimal digits, as well as underscore.
  94. </P>
  95. <P>
  96. The escape sequence \C can be used to match a single code unit in UTF mode,
  97. but its use can lead to some strange effects because it breaks up multi-unit
  98. characters (see the description of \C in the
  99. <a href="pcre2pattern.html"><b>pcre2pattern</b></a>
  100. documentation). For this reason, there is a build-time option that disables
  101. support for \C completely. There is also a less draconian compile-time option
  102. for locking out the use of \C when a pattern is compiled.
  103. </P>
  104. <P>
  105. The use of \C is not supported by the alternative matching function
  106. <b>pcre2_dfa_match()</b> when in UTF-8 or UTF-16 mode, that is, when a character
  107. may consist of more than one code unit. The use of \C in these modes provokes
  108. a match-time error. Also, the JIT optimization does not support \C in these
  109. modes. If JIT optimization is requested for a UTF-8 or UTF-16 pattern that
  110. contains \C, it will not succeed, and so when <b>pcre2_match()</b> is called,
  111. the matching will be carried out by the interpretive function.
  112. </P>
  113. <P>
  114. The character escapes \b, \B, \d, \D, \s, \S, \w, and \W correctly test
  115. characters of any code value, but, by default, the characters that PCRE2
  116. recognizes as digits, spaces, or word characters remain the same set as in
  117. non-UTF mode, all with code points less than 256. This remains true even when
  118. PCRE2 is built to include Unicode support, because to do otherwise would slow
  119. down matching in many common cases. Note that this also applies to \b
  120. and \B, because they are defined in terms of \w and \W. If you want
  121. to test for a wider sense of, say, "digit", you can use explicit Unicode
  122. property tests such as \p{Nd}. Alternatively, if you set the PCRE2_UCP option,
  123. the way that the character escapes work is changed so that Unicode properties
  124. are used to determine which characters match, though there are some options
  125. that suppress this for individual escapes. For details see the section on
  126. <a href="pcre2pattern.html#genericchartypes">generic character types</a>
  127. in the
  128. <a href="pcre2pattern.html"><b>pcre2pattern</b></a>
  129. documentation.
  130. </P>
  131. <P>
  132. Like the escapes, characters that match the POSIX named character classes are
  133. all low-valued characters unless the PCRE2_UCP option is set, but there is an
  134. option to override this.
  135. </P>
  136. <P>
  137. In contrast to the character escapes and character classes, the special
  138. horizontal and vertical white space escapes (\h, \H, \v, and \V) do match
  139. all the appropriate Unicode characters, whether or not PCRE2_UCP is set.
  140. </P>
  141. <br><b>
  142. UNICODE CASE-EQUIVALENCE
  143. </b><br>
  144. <P>
  145. If either PCRE2_UTF or PCRE2_UCP is set, upper/lower case processing makes use
  146. of Unicode properties except for characters whose code points are less than 128
  147. and that have at most two case-equivalent values. For these, a direct table
  148. lookup is used for speed. A few Unicode characters such as Greek sigma have
  149. more than two code points that are case-equivalent, and these are treated
  150. specially. Setting PCRE2_UCP without PCRE2_UTF allows Unicode-style case
  151. processing for non-UTF character encodings such as UCS-2.
  152. </P>
  153. <P>
  154. There are two ASCII characters (S and K) that, in addition to their ASCII lower
  155. case equivalents, have a non-ASCII one as well (long S and Kelvin sign).
  156. Recognition of these non-ASCII characters as case-equivalent to their ASCII
  157. counterparts can be disabled by setting the PCRE2_EXTRA_CASELESS_RESTRICT
  158. option. When this is set, all characters in a case equivalence must either be
  159. ASCII or non-ASCII; there can be no mixing.
  160. <a name="scriptruns"></a></P>
  161. <br><b>
  162. SCRIPT RUNS
  163. </b><br>
  164. <P>
  165. The pattern constructs (*script_run:...) and (*atomic_script_run:...), with
  166. synonyms (*sr:...) and (*asr:...), verify that the string matched within the
  167. parentheses is a script run. In concept, a script run is a sequence of
  168. characters that are all from the same Unicode script. However, because some
  169. scripts are commonly used together, and because some diacritical and other
  170. marks are used with multiple scripts, it is not that simple.
  171. </P>
  172. <P>
  173. Every Unicode character has a Script property, mostly with a value
  174. corresponding to the name of a script, such as Latin, Greek, or Cyrillic. There
  175. are also three special values:
  176. </P>
  177. <P>
  178. "Unknown" is used for code points that have not been assigned, and also for the
  179. surrogate code points. In the PCRE2 32-bit library, characters whose code
  180. points are greater than the Unicode maximum (U+10FFFF), which are accessible
  181. only in non-UTF mode, are assigned the Unknown script.
  182. </P>
  183. <P>
  184. "Common" is used for characters that are used with many scripts. These include
  185. punctuation, emoji, mathematical, musical, and currency symbols, and the ASCII
  186. digits 0 to 9.
  187. </P>
  188. <P>
  189. "Inherited" is used for characters such as diacritical marks that modify a
  190. previous character. These are considered to take on the script of the character
  191. that they modify.
  192. </P>
  193. <P>
  194. Some Inherited characters are used with many scripts, but many of them are only
  195. normally used with a small number of scripts. For example, U+102E0 (Coptic
  196. Epact thousands mark) is used only with Arabic and Coptic. In order to make it
  197. possible to check this, a Unicode property called Script Extension exists. Its
  198. value is a list of scripts that apply to the character. For the majority of
  199. characters, the list contains just one script, the same one as the Script
  200. property. However, for characters such as U+102E0 more than one Script is
  201. listed. There are also some Common characters that have a single, non-Common
  202. script in their Script Extension list.
  203. </P>
  204. <P>
  205. The next section describes the basic rules for deciding whether a given string
  206. of characters is a script run. Note, however, that there are some special cases
  207. involving the Chinese Han script, and an additional constraint for decimal
  208. digits. These are covered in subsequent sections.
  209. </P>
  210. <br><b>
  211. Basic script run rules
  212. </b><br>
  213. <P>
  214. A string that is less than two characters long is a script run. This is the
  215. only case in which an Unknown character can be part of a script run. Longer
  216. strings are checked using only the Script Extensions property, not the basic
  217. Script property.
  218. </P>
  219. <P>
  220. If a character's Script Extension property is the single value "Inherited", it
  221. is always accepted as part of a script run. This is also true for the property
  222. "Common", subject to the checking of decimal digits described below. All the
  223. remaining characters in a script run must have at least one script in common in
  224. their Script Extension lists. In set-theoretic terminology, the intersection of
  225. all the sets of scripts must not be empty.
  226. </P>
  227. <P>
  228. A simple example is an Internet name such as "google.com". The letters are all
  229. in the Latin script, and the dot is Common, so this string is a script run.
  230. However, the Cyrillic letter "o" looks exactly the same as the Latin "o"; a
  231. string that looks the same, but with Cyrillic "o"s is not a script run.
  232. </P>
  233. <P>
  234. More interesting examples involve characters with more than one script in their
  235. Script Extension. Consider the following characters:
  236. <pre>
  237. U+060C Arabic comma
  238. U+06D4 Arabic full stop
  239. </pre>
  240. The first has the Script Extension list Arabic, Hanifi Rohingya, Syriac, and
  241. Thaana; the second has just Arabic and Hanifi Rohingya. Both of them could
  242. appear in script runs of either Arabic or Hanifi Rohingya. The first could also
  243. appear in Syriac or Thaana script runs, but the second could not.
  244. </P>
  245. <br><b>
  246. The Chinese Han script
  247. </b><br>
  248. <P>
  249. The Chinese Han script is commonly used in conjunction with other scripts for
  250. writing certain languages. Japanese uses the Hiragana and Katakana scripts
  251. together with Han; Korean uses Hangul and Han; Taiwanese Mandarin uses Bopomofo
  252. and Han. These three combinations are treated as special cases when checking
  253. script runs and are, in effect, "virtual scripts". Thus, a script run may
  254. contain a mixture of Hiragana, Katakana, and Han, or a mixture of Hangul and
  255. Han, or a mixture of Bopomofo and Han, but not, for example, a mixture of
  256. Hangul and Bopomofo and Han. PCRE2 (like Perl) follows Unicode's Technical
  257. Standard 39 ("Unicode Security Mechanisms", http://unicode.org/reports/tr39/)
  258. in allowing such mixtures.
  259. </P>
  260. <br><b>
  261. Decimal digits
  262. </b><br>
  263. <P>
  264. Unicode contains many sets of 10 decimal digits in different scripts, and some
  265. scripts (including the Common script) contain more than one set. Some of these
  266. decimal digits them are visually indistinguishable from the common ASCII
  267. digits. In addition to the script checking described above, if a script run
  268. contains any decimal digits, they must all come from the same set of 10
  269. adjacent characters.
  270. </P>
  271. <br><b>
  272. VALIDITY OF UTF STRINGS
  273. </b><br>
  274. <P>
  275. When the PCRE2_UTF option is set, the strings passed as patterns and subjects
  276. are (by default) checked for validity on entry to the relevant functions. If an
  277. invalid UTF string is passed, a negative error code is returned. The code unit
  278. offset to the offending character can be extracted from the match data block by
  279. calling <b>pcre2_get_startchar()</b>, which is used for this purpose after a UTF
  280. error.
  281. </P>
  282. <P>
  283. In some situations, you may already know that your strings are valid, and
  284. therefore want to skip these checks in order to improve performance, for
  285. example in the case of a long subject string that is being scanned repeatedly.
  286. If you set the PCRE2_NO_UTF_CHECK option at compile time or at match time,
  287. PCRE2 assumes that the pattern or subject it is given (respectively) contains
  288. only valid UTF code unit sequences.
  289. </P>
  290. <P>
  291. If you pass an invalid UTF string when PCRE2_NO_UTF_CHECK is set, the result
  292. is undefined and your program may crash or loop indefinitely or give incorrect
  293. results. There is, however, one mode of matching that can handle invalid UTF
  294. subject strings. This is enabled by passing PCRE2_MATCH_INVALID_UTF to
  295. <b>pcre2_compile()</b> and is discussed below in the next section. The rest of
  296. this section covers the case when PCRE2_MATCH_INVALID_UTF is not set.
  297. </P>
  298. <P>
  299. Passing PCRE2_NO_UTF_CHECK to <b>pcre2_compile()</b> just disables the UTF check
  300. for the pattern; it does not also apply to subject strings. If you want to
  301. disable the check for a subject string you must pass this same option to
  302. <b>pcre2_match()</b> or <b>pcre2_dfa_match()</b>.
  303. </P>
  304. <P>
  305. UTF-16 and UTF-32 strings can indicate their endianness by special code knows
  306. as a byte-order mark (BOM). The PCRE2 functions do not handle this, expecting
  307. strings to be in host byte order.
  308. </P>
  309. <P>
  310. Unless PCRE2_NO_UTF_CHECK is set, a UTF string is checked before any other
  311. processing takes place. In the case of <b>pcre2_match()</b> and
  312. <b>pcre2_dfa_match()</b> calls with a non-zero starting offset, the check is
  313. applied only to that part of the subject that could be inspected during
  314. matching, and there is a check that the starting offset points to the first
  315. code unit of a character or to the end of the subject. If there are no
  316. lookbehind assertions in the pattern, the check starts at the starting offset.
  317. Otherwise, it starts at the length of the longest lookbehind before the
  318. starting offset, or at the start of the subject if there are not that many
  319. characters before the starting offset. Note that the sequences \b and \B are
  320. one-character lookbehinds.
  321. </P>
  322. <P>
  323. In addition to checking the format of the string, there is a check to ensure
  324. that all code points lie in the range U+0 to U+10FFFF, excluding the surrogate
  325. area. The so-called "non-character" code points are not excluded because
  326. Unicode corrigendum #9 makes it clear that they should not be.
  327. </P>
  328. <P>
  329. Characters in the "Surrogate Area" of Unicode are reserved for use by UTF-16,
  330. where they are used in pairs to encode code points with values greater than
  331. 0xFFFF. The code points that are encoded by UTF-16 pairs are available
  332. independently in the UTF-8 and UTF-32 encodings. (In other words, the whole
  333. surrogate thing is a fudge for UTF-16 which unfortunately messes up UTF-8 and
  334. UTF-32.)
  335. </P>
  336. <P>
  337. Setting PCRE2_NO_UTF_CHECK at compile time does not disable the error that is
  338. given if an escape sequence for an invalid Unicode code point is encountered in
  339. the pattern. If you want to allow escape sequences such as \x{d800} (a
  340. surrogate code point) you can set the PCRE2_EXTRA_ALLOW_SURROGATE_ESCAPES extra
  341. option. However, this is possible only in UTF-8 and UTF-32 modes, because these
  342. values are not representable in UTF-16.
  343. <a name="utf8strings"></a></P>
  344. <br><b>
  345. Errors in UTF-8 strings
  346. </b><br>
  347. <P>
  348. The following negative error codes are given for invalid UTF-8 strings:
  349. <pre>
  350. PCRE2_ERROR_UTF8_ERR1
  351. PCRE2_ERROR_UTF8_ERR2
  352. PCRE2_ERROR_UTF8_ERR3
  353. PCRE2_ERROR_UTF8_ERR4
  354. PCRE2_ERROR_UTF8_ERR5
  355. </pre>
  356. The string ends with a truncated UTF-8 character; the code specifies how many
  357. bytes are missing (1 to 5). Although RFC 3629 restricts UTF-8 characters to be
  358. no longer than 4 bytes, the encoding scheme (originally defined by RFC 2279)
  359. allows for up to 6 bytes, and this is checked first; hence the possibility of
  360. 4 or 5 missing bytes.
  361. <pre>
  362. PCRE2_ERROR_UTF8_ERR6
  363. PCRE2_ERROR_UTF8_ERR7
  364. PCRE2_ERROR_UTF8_ERR8
  365. PCRE2_ERROR_UTF8_ERR9
  366. PCRE2_ERROR_UTF8_ERR10
  367. </pre>
  368. The two most significant bits of the 2nd, 3rd, 4th, 5th, or 6th byte of the
  369. character do not have the binary value 0b10 (that is, either the most
  370. significant bit is 0, or the next bit is 1).
  371. <pre>
  372. PCRE2_ERROR_UTF8_ERR11
  373. PCRE2_ERROR_UTF8_ERR12
  374. </pre>
  375. A character that is valid by the RFC 2279 rules is either 5 or 6 bytes long;
  376. these code points are excluded by RFC 3629.
  377. <pre>
  378. PCRE2_ERROR_UTF8_ERR13
  379. </pre>
  380. A 4-byte character has a value greater than 0x10ffff; these code points are
  381. excluded by RFC 3629.
  382. <pre>
  383. PCRE2_ERROR_UTF8_ERR14
  384. </pre>
  385. A 3-byte character has a value in the range 0xd800 to 0xdfff; this range of
  386. code points are reserved by RFC 3629 for use with UTF-16, and so are excluded
  387. from UTF-8.
  388. <pre>
  389. PCRE2_ERROR_UTF8_ERR15
  390. PCRE2_ERROR_UTF8_ERR16
  391. PCRE2_ERROR_UTF8_ERR17
  392. PCRE2_ERROR_UTF8_ERR18
  393. PCRE2_ERROR_UTF8_ERR19
  394. </pre>
  395. A 2-, 3-, 4-, 5-, or 6-byte character is "overlong", that is, it codes for a
  396. value that can be represented by fewer bytes, which is invalid. For example,
  397. the two bytes 0xc0, 0xae give the value 0x2e, whose correct coding uses just
  398. one byte.
  399. <pre>
  400. PCRE2_ERROR_UTF8_ERR20
  401. </pre>
  402. The two most significant bits of the first byte of a character have the binary
  403. value 0b10 (that is, the most significant bit is 1 and the second is 0). Such a
  404. byte can only validly occur as the second or subsequent byte of a multi-byte
  405. character.
  406. <pre>
  407. PCRE2_ERROR_UTF8_ERR21
  408. </pre>
  409. The first byte of a character has the value 0xfe or 0xff. These values can
  410. never occur in a valid UTF-8 string.
  411. <a name="utf16strings"></a></P>
  412. <br><b>
  413. Errors in UTF-16 strings
  414. </b><br>
  415. <P>
  416. The following negative error codes are given for invalid UTF-16 strings:
  417. <pre>
  418. PCRE2_ERROR_UTF16_ERR1 Missing low surrogate at end of string
  419. PCRE2_ERROR_UTF16_ERR2 Invalid low surrogate follows high surrogate
  420. PCRE2_ERROR_UTF16_ERR3 Isolated low surrogate
  421. <a name="utf32strings"></a></PRE>
  422. </P>
  423. <br><b>
  424. Errors in UTF-32 strings
  425. </b><br>
  426. <P>
  427. The following negative error codes are given for invalid UTF-32 strings:
  428. <pre>
  429. PCRE2_ERROR_UTF32_ERR1 Surrogate character (0xd800 to 0xdfff)
  430. PCRE2_ERROR_UTF32_ERR2 Code point is greater than 0x10ffff
  431. <a name="matchinvalid"></a></PRE>
  432. </P>
  433. <br><b>
  434. MATCHING IN INVALID UTF STRINGS
  435. </b><br>
  436. <P>
  437. You can run pattern matches on subject strings that may contain invalid UTF
  438. sequences if you call <b>pcre2_compile()</b> with the PCRE2_MATCH_INVALID_UTF
  439. option. This is supported by <b>pcre2_match()</b>, including JIT matching, but
  440. not by <b>pcre2_dfa_match()</b>. When PCRE2_MATCH_INVALID_UTF is set, it forces
  441. PCRE2_UTF to be set as well. Note, however, that the pattern itself must be a
  442. valid UTF string.
  443. </P>
  444. <P>
  445. If you do not set PCRE2_MATCH_INVALID_UTF when calling <b>pcre2_compile</b>, and
  446. you are not certain that your subject strings are valid UTF sequences, you
  447. should not make use of the JIT "fast path" function <b>pcre2_jit_match()</b>
  448. because it bypasses sanity checks, including the one for UTF validity. An
  449. invalid string may cause undefined behaviour, including looping, crashing, or
  450. giving the wrong answer.
  451. </P>
  452. <P>
  453. Setting PCRE2_MATCH_INVALID_UTF does not affect what <b>pcre2_compile()</b>
  454. generates, but if <b>pcre2_jit_compile()</b> is subsequently called, it does
  455. generate different code. If JIT is not used, the option affects the behaviour
  456. of the interpretive code in <b>pcre2_match()</b>. When PCRE2_MATCH_INVALID_UTF
  457. is set at compile time, PCRE2_NO_UTF_CHECK is ignored at match time.
  458. </P>
  459. <P>
  460. In this mode, an invalid code unit sequence in the subject never matches any
  461. pattern item. It does not match dot, it does not match \p{Any}, it does not
  462. even match negative items such as [^X]. A lookbehind assertion fails if it
  463. encounters an invalid sequence while moving the current point backwards. In
  464. other words, an invalid UTF code unit sequence acts as a barrier which no match
  465. can cross.
  466. </P>
  467. <P>
  468. You can also think of this as the subject being split up into fragments of
  469. valid UTF, delimited internally by invalid code unit sequences. The pattern is
  470. matched fragment by fragment. The result of a successful match, however, is
  471. given as code unit offsets in the entire subject string in the usual way. There
  472. are a few points to consider:
  473. </P>
  474. <P>
  475. The internal boundaries are not interpreted as the beginnings or ends of lines
  476. and so do not match circumflex or dollar characters in the pattern.
  477. </P>
  478. <P>
  479. If <b>pcre2_match()</b> is called with an offset that points to an invalid
  480. UTF-sequence, that sequence is skipped, and the match starts at the next valid
  481. UTF character, or the end of the subject.
  482. </P>
  483. <P>
  484. At internal fragment boundaries, \b and \B behave in the same way as at the
  485. beginning and end of the subject. For example, a sequence such as \bWORD\b
  486. would match an instance of WORD that is surrounded by invalid UTF code units.
  487. </P>
  488. <P>
  489. Using PCRE2_MATCH_INVALID_UTF, an application can run matches on arbitrary
  490. data, knowing that any matched strings that are returned are valid UTF. This
  491. can be useful when searching for UTF text in executable or other binary files.
  492. </P>
  493. <P>
  494. Note, however, that the 16-bit and 32-bit PCRE2 libraries process strings as
  495. sequences of uint16_t or uint32_t code points. They cannot find valid UTF
  496. sequences within an arbitrary string of bytes unless such sequences are
  497. suitably aligned.
  498. </P>
  499. <br><b>
  500. AUTHOR
  501. </b><br>
  502. <P>
  503. Philip Hazel
  504. <br>
  505. Retired from University Computing Service
  506. <br>
  507. Cambridge, England.
  508. <br>
  509. </P>
  510. <br><b>
  511. REVISION
  512. </b><br>
  513. <P>
  514. Last updated: 12 October 2023
  515. <br>
  516. Copyright &copy; 1997-2023 University of Cambridge.
  517. <br>
  518. <p>
  519. Return to the <a href="index.html">PCRE2 index page</a>.
  520. </p>