summaryrefslogtreecommitdiff
path: root/libs/regex/doc/html/boost_regex/background_information/standards.html
blob: cfa1fd046c0a275e934d6312a4b5df000b62b0d7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII">
<title>Standards Conformance</title>
<link rel="stylesheet" href="../../../../../../doc/src/boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.78.1">
<link rel="home" href="../../index.html" title="Boost.Regex 5.0.0">
<link rel="up" href="../background_information.html" title="Background Information">
<link rel="prev" href="performance.html" title="Performance">
<link rel="next" href="redist.html" title="Redistributables">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table cellpadding="2" width="100%"><tr>
<td valign="top"><img alt="Boost C++ Libraries" width="277" height="86" src="../../../../../../boost.png"></td>
<td align="center"><a href="../../../../../../index.html">Home</a></td>
<td align="center"><a href="../../../../../../libs/libraries.htm">Libraries</a></td>
<td align="center"><a href="http://www.boost.org/users/people.html">People</a></td>
<td align="center"><a href="http://www.boost.org/users/faq.html">FAQ</a></td>
<td align="center"><a href="../../../../../../more/index.htm">More</a></td>
</tr></table>
<hr>
<div class="spirit-nav">
<a accesskey="p" href="performance.html"><img src="../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../background_information.html"><img src="../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../index.html"><img src="../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="redist.html"><img src="../../../../../../doc/src/images/next.png" alt="Next"></a>
</div>
<div class="section">
<div class="titlepage"><div><div><h3 class="title">
<a name="boost_regex.background_information.standards"></a><a class="link" href="standards.html" title="Standards Conformance">Standards
      Conformance</a>
</h3></div></div></div>
<h5>
<a name="boost_regex.background_information.standards.h0"></a>
        <span class="phrase"><a name="boost_regex.background_information.standards.c__"></a></span><a class="link" href="standards.html#boost_regex.background_information.standards.c__">C++</a>
      </h5>
<p>
        Boost.Regex is intended to conform to the <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2005/n1836.pdf" target="_top">Technical
        Report on C++ Library Extensions</a>.
      </p>
<h5>
<a name="boost_regex.background_information.standards.h1"></a>
        <span class="phrase"><a name="boost_regex.background_information.standards.ecmascript___javascript"></a></span><a class="link" href="standards.html#boost_regex.background_information.standards.ecmascript___javascript">ECMAScript
        / JavaScript</a>
      </h5>
<p>
        All of the ECMAScript regular expression syntax features are supported, except
        that:
      </p>
<p>
        The escape sequence \u matches any upper case character (the same as [[:upper:]])
        rather than a Unicode escape sequence; use \x{DDDD} for Unicode escape sequences.
      </p>
<h5>
<a name="boost_regex.background_information.standards.h2"></a>
        <span class="phrase"><a name="boost_regex.background_information.standards.perl"></a></span><a class="link" href="standards.html#boost_regex.background_information.standards.perl">Perl</a>
      </h5>
<p>
        Almost all Perl features are supported, except for:
      </p>
<p>
        (?{code}) Not implementable in a compiled strongly typed language.
      </p>
<p>
        (??{code}) Not implementable in a compiled strongly typed language.
      </p>
<p>
        (*VERB) The <a href="http://perldoc.perl.org/perlre.html#Special-Backtracking-Control-Verbs" target="_top">backtracking
        control verbs</a> are not recognised or implemented at this time.
      </p>
<p>
        In addition the following features behave slightly differently from Perl:
      </p>
<p>
        ^ $ \Z These recognise any line termination sequence, and not just \n: see
        the Unicode requirements below.
      </p>
<h5>
<a name="boost_regex.background_information.standards.h3"></a>
        <span class="phrase"><a name="boost_regex.background_information.standards.posix"></a></span><a class="link" href="standards.html#boost_regex.background_information.standards.posix">POSIX</a>
      </h5>
<p>
        All the POSIX basic and extended regular expression features are supported,
        except that:
      </p>
<p>
        No character collating names are recognized except those specified in the
        POSIX standard for the C locale, unless they are explicitly registered with
        the traits class.
      </p>
<p>
        Character equivalence classes ( [[=a=]] etc) are probably buggy except on
        Win32. Implementing this feature requires knowledge of the format of the
        string sort keys produced by the system; if you need this, and the default
        implementation doesn't work on your platform, then you will need to supply
        a custom traits class.
      </p>
<h5>
<a name="boost_regex.background_information.standards.h4"></a>
        <span class="phrase"><a name="boost_regex.background_information.standards.unicode"></a></span><a class="link" href="standards.html#boost_regex.background_information.standards.unicode">Unicode</a>
      </h5>
<p>
        The following comments refer to <a href="http://unicode.org/reports/tr18/" target="_top">Unicode
        Technical Standard #18: Unicode Regular Expressions version 11</a>.
      </p>
<div class="informaltable"><table class="table">
<colgroup>
<col>
<col>
<col>
</colgroup>
<thead><tr>
<th>
                <p>
                  Item
                </p>
              </th>
<th>
                <p>
                  Feature
                </p>
              </th>
<th>
                <p>
                  Support
                </p>
              </th>
</tr></thead>
<tbody>
<tr>
<td>
                <p>
                  1.1
                </p>
              </td>
<td>
                <p>
                  Hex Notation
                </p>
              </td>
<td>
                <p>
                  Yes: use \x{DDDD} to refer to code point UDDDD.
                </p>
              </td>
</tr>
<tr>
<td>
                <p>
                  1.2
                </p>
              </td>
<td>
                <p>
                  Character Properties
                </p>
              </td>
<td>
                <p>
                  All the names listed under the General Category Property are supported.
                  Script names and Other Names are not currently supported.
                </p>
              </td>
</tr>
<tr>
<td>
                <p>
                  1.3
                </p>
              </td>
<td>
                <p>
                  Subtraction and Intersection
                </p>
              </td>
<td>
                <p>
                  Indirectly support by forward-lookahead:
                </p>
                <p>
                  <code class="computeroutput"><span class="special">(?=[[:</span><span class="identifier">X</span><span class="special">:]])[[:</span><span class="identifier">Y</span><span class="special">:]]</span></code>
                </p>
                <p>
                  Gives the intersection of character properties X and Y.
                </p>
                <p>
                  <code class="computeroutput"><span class="special">(?![[:</span><span class="identifier">X</span><span class="special">:]])[[:</span><span class="identifier">Y</span><span class="special">:]]</span></code>
                </p>
                <p>
                  Gives everything in Y that is not in X (subtraction).
                </p>
              </td>
</tr>
<tr>
<td>
                <p>
                  1.4
                </p>
              </td>
<td>
                <p>
                  Simple Word Boundaries
                </p>
              </td>
<td>
                <p>
                  Conforming: non-spacing marks are included in the set of word characters.
                </p>
              </td>
</tr>
<tr>
<td>
                <p>
                  1.5
                </p>
              </td>
<td>
                <p>
                  Caseless Matching
                </p>
              </td>
<td>
                <p>
                  Supported, note that at this level, case transformations are 1:1,
                  many to many case folding operations are not supported (for example
                  "&#223;" to "SS").
                </p>
              </td>
</tr>
<tr>
<td>
                <p>
                  1.6
                </p>
              </td>
<td>
                <p>
                  Line Boundaries
                </p>
              </td>
<td>
                <p>
                  Supported, except that "." matches only one character
                  of "\r\n". Other than that word boundaries match correctly;
                  including not matching in the middle of a "\r\n" sequence.
                </p>
              </td>
</tr>
<tr>
<td>
                <p>
                  1.7
                </p>
              </td>
<td>
                <p>
                  Code Points
                </p>
              </td>
<td>
                <p>
                  Supported: provided you use the u32* algorithms, then UTF-8, UTF-16
                  and UTF-32 are all treated as sequences of 32-bit code points.
                </p>
              </td>
</tr>
<tr>
<td>
                <p>
                  2.1
                </p>
              </td>
<td>
                <p>
                  Canonical Equivalence
                </p>
              </td>
<td>
                <p>
                  Not supported: it is up to the user of the library to convert all
                  text into the same canonical form as the regular expression.
                </p>
              </td>
</tr>
<tr>
<td>
                <p>
                  2.2
                </p>
              </td>
<td>
                <p>
                  Default Grapheme Clusters
                </p>
              </td>
<td>
                <p>
                  Not supported.
                </p>
              </td>
</tr>
<tr>
<td>
                <p>
                  2.3Default Word Boundaries
                </p>
              </td>
<td>
                <p>
                  Not supported.
                </p>
              </td>
<td class="auto-generated">&#160;</td>
</tr>
<tr>
<td>
                <p>
                  2.4
                </p>
              </td>
<td>
                <p>
                  Default Loose Matches
                </p>
              </td>
<td>
                <p>
                  Not Supported.
                </p>
              </td>
</tr>
<tr>
<td>
                <p>
                  2.5
                </p>
              </td>
<td>
                <p>
                  Named Properties
                </p>
              </td>
<td>
                <p>
                  Supported: the expression "[[:name:]]" or \N{name} matches
                  the named character "name".
                </p>
              </td>
</tr>
<tr>
<td>
                <p>
                  2.6
                </p>
              </td>
<td>
                <p>
                  Wildcard properties
                </p>
              </td>
<td>
                <p>
                  Not Supported.
                </p>
              </td>
</tr>
<tr>
<td>
                <p>
                  3.1
                </p>
              </td>
<td>
                <p>
                  Tailored Punctuation.
                </p>
              </td>
<td>
                <p>
                  Not Supported.
                </p>
              </td>
</tr>
<tr>
<td>
                <p>
                  3.2
                </p>
              </td>
<td>
                <p>
                  Tailored Grapheme Clusters
                </p>
              </td>
<td>
                <p>
                  Not Supported.
                </p>
              </td>
</tr>
<tr>
<td>
                <p>
                  3.3
                </p>
              </td>
<td>
                <p>
                  Tailored Word Boundaries.
                </p>
              </td>
<td>
                <p>
                  Not Supported.
                </p>
              </td>
</tr>
<tr>
<td>
                <p>
                  3.4
                </p>
              </td>
<td>
                <p>
                  Tailored Loose Matches
                </p>
              </td>
<td>
                <p>
                  Partial support: [[=c=]] matches characters with the same primary
                  equivalence class as "c".
                </p>
              </td>
</tr>
<tr>
<td>
                <p>
                  3.5
                </p>
              </td>
<td>
                <p>
                  Tailored Ranges
                </p>
              </td>
<td>
                <p>
                  Supported: [a-b] matches any character that collates in the range
                  a to b, when the expression is constructed with the collate flag
                  set.
                </p>
              </td>
</tr>
<tr>
<td>
                <p>
                  3.6
                </p>
              </td>
<td>
                <p>
                  Context Matches
                </p>
              </td>
<td>
                <p>
                  Not Supported.
                </p>
              </td>
</tr>
<tr>
<td>
                <p>
                  3.7
                </p>
              </td>
<td>
                <p>
                  Incremental Matches
                </p>
              </td>
<td>
                <p>
                  Supported: pass the flag <code class="computeroutput"><span class="identifier">match_partial</span></code>
                  to the regex algorithms.
                </p>
              </td>
</tr>
<tr>
<td>
                <p>
                  3.8
                </p>
              </td>
<td>
                <p>
                  Unicode Set Sharing
                </p>
              </td>
<td>
                <p>
                  Not Supported.
                </p>
              </td>
</tr>
<tr>
<td>
                <p>
                  3.9
                </p>
              </td>
<td>
                <p>
                  Possible Match Sets
                </p>
              </td>
<td>
                <p>
                  Not supported, however this information is used internally to optimise
                  the matching of regular expressions, and return quickly if no match
                  is possible.
                </p>
              </td>
</tr>
<tr>
<td>
                <p>
                  3.10
                </p>
              </td>
<td>
                <p>
                  Folded Matching
                </p>
              </td>
<td>
                <p>
                  Partial Support: It is possible to achieve a similar effect by
                  using a custom regular expression traits class.
                </p>
              </td>
</tr>
<tr>
<td>
                <p>
                  3.11
                </p>
              </td>
<td>
                <p>
                  Custom Submatch Evaluation
                </p>
              </td>
<td>
                <p>
                  Not Supported.
                </p>
              </td>
</tr>
</tbody>
</table></div>
</div>
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
<td align="left"></td>
<td align="right"><div class="copyright-footer">Copyright &#169; 1998-2013 John Maddock<p>
        Distributed under the Boost Software License, Version 1.0. (See accompanying
        file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>)
      </p>
</div></td>
</tr></table>
<hr>
<div class="spirit-nav">
<a accesskey="p" href="performance.html"><img src="../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../background_information.html"><img src="../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../index.html"><img src="../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="redist.html"><img src="../../../../../../doc/src/images/next.png" alt="Next"></a>
</div>
</body>
</html>