This repository has been archived by the owner on Nov 15, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 132
/
RegexKitLite.html
6990 lines (5686 loc) · 746 KB
/
RegexKitLite.html
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
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8">
<meta http-equiv="Content-Language" content="EN-US">
<meta name = "format-detection" content = "telephone=no">
<style type="text/css">
body { font: 12px "lucida grande", geneva, helvetica, arial, sans-serif; color: #000; background-color: #FFF; }
h1 { margin-top: 1.0em; margin-bottom: 0.8334em; font-size: 2.5000em; }
h2 { margin-top: 2.5em; margin-bottom: 2.0000ex; font-size: 2.0000em; border-bottom: 1px solid #5088C5; color: #3C4C6C; clear: both; }
h3 { margin-top: 2.0em; margin-bottom: 0.5000em; font-size: 1.5834em; }
h4 { margin-top: 2.0em; margin-bottom: 0.5000em; font-size: 1.2500em; }
h5 { margin-top: 1.5em; margin-bottom: 0.5000em; font-size: 1.0834em; padding: 0px; }
A:link, a:link .code { text-decoration: none; color: #36C; }
A:link:hover, a:link:hover .code { text-decoration: underline; color: #36C; }
A:active, a:active .code { text-decoration: underline; color: #36C; }
A[name]:active { text-decoration: none; color: #000; }
A:visited, a:visited .code { text-decoration: none; color: #036; }
A:visited:hover, a:visited:hover .code { text-decoration: underline; color: #036; }
.spacer { height: 0px; width: 100%; margin-top: 0.5em; margin-bottom: 0.5em; border-top: 1px solid #fafafa; border-bottom: 1px solid #fdfdfd; }
.indent { margin-left: 4ex; }
.bar { height: 0px; width: 100%; margin-top: 0.5em; margin-bottom: 0.5em; border-bottom: 1px solid #a1a5a9; }
.hide { display: none; }
.RED { border: 2px solid #f00; padding: 1ex; -webkit-border-radius: 5px; -webkit-box-shadow: 3px 3px 4px #900; -moz-border-radius: 5px; -moz-box-shadow: 3px 3px 4px #900; border-radius: 5px; box-shadow: 3px 3px 4px #900; white-space: pre-wrap; }
.XXX { border: 2px solid red; padding: 2px; margin: 0.75em 0px; }
.XXX { border-color: rgba(255,0,0,0.8); -webkit-border-radius: 6px; /*text-shadow: 2px 2px 2px rgba(68,0,0,0.4);*/ -moz-border-radius: 6px; border-radius: 6px; }
.DoNot { font-weight: bold; font-style: italic; text-decoration: underline; }
.nobr { white-space: nowrap; white-space: pre-wrap !important; }
.hardNobr { white-space: nowrap; }
.noBold { font-weight: normal !important; }
.noUnderline { text-decoration: none !important; }
img.noBorder { border: 0px solid #000; }
.noSelect { -moz-user-select: none; -webkit-user-select: none; cursor: default; }
.canSelect { -moz-user-select: text; -webkit-user-select: text; cursor: auto; }
.marginTopSpacer { margin-top: 1em !important; }
.marginBottomSpacer { margin-bottom: 1em !important; }
.marginLeftSpacer { margin-left: 1ex !important; }
.marginRightSpacer { margin-right: 1ex !important; }
.marginSpacer { margin: 1em 1ex !important; }
.floatRight { float: right; }
.floatRightPadder { text-align: right; clear: both; height: 0px; }
.floatLeft { float: left; }
.floatLeftPadder { text-align: left; clear: both; height: 0px; }
.clearLeft { clear: left; }
.clearRight { clear: right; }
.clearBoth { clear: both; }
.rightHack { text-align: right; text-align: -webkit-right; text-align: -moz-right; }
.centerHack { text-align: center; text-align: -webkit-center; text-align: -moz-center; }
.leftHack { text-align: left; text-align: -webkit-left; text-align: -moz-left; }
.submenuArrow { font-size: 0.75em; }
.table { display: table; }
.table > .row { display: table-row; }
.table > .row > .cell { display: table-cell; }
.table > .row > .cell.metacharacters { width: 50%; }
.table > .row > .cell.operators { width: 50%; }
.table.perfNumbers > .row > .cell { padding-right: 1.5em; }
ul.highlights { margin-left: 4.0ex; padding-left: 1ex; }
ul.highlights li { margin-top: 0.5em; }
ul.square { list-style-type: square; }
ul.square > li > *:first-child { margin-top: 0px; }
ul.square > li > .box.sourcecode:last-child { margin-bottom: 1em; }
ul.compare { margin: 0px; padding: 0px; }
ul.compare > li { margin: 0px 0px 0px 2ex; }
ul.overview { margin-left: 9.5ex; list-style-type: none; }
ul.overview li { margin-top: 0em; }
ul.seealso { margin: 0px; padding: 0px; list-style-type: none; }
ul.seealso > li { margin: 0px 0px 0px 6.25ex; }
/* table styles */
table + table { margin-top: 1em; }
table + .box { margin-top: 1em; }
/* The standard table style */
table.standard { border-spacing: 0px; -moz-border-radius: 0.5ex; -webkit-border-radius: 0.5ex; border-radius: 0.5ex; }
table.standard caption { margin-bottom: 0.5em; text-align: left; }
table.standard caption > .identifier { font-weight: bold; margin-right: 1.5ex; }
table.standard th { padding: 0.3334em 1ex; text-align: left; border-bottom: 1px solid #919699; border-right: 1px solid #919699; background: #E2E2E2; }
table.standard td { vertical-align: top; padding: 1ex; border-bottom: 1px solid #919699; border-right: 1px solid #919699; }
table.standard tr:first-child > *:first-child, table.regexSyntax tr:first-child > *:first-child { -moz-border-radius-topleft: 0.5ex; -webkit-border-top-left-radius: 0.5ex; border-top-left-radius: 0.5ex; }
table.standard tr:first-child > *:last-child, table.regexSyntax tr:first-child > *:last-child { -moz-border-radius-topright: 0.5ex; -webkit-border-top-right-radius: 0.5ex; border-top-right-radius: 0.5ex; }
table.standard tr:last-child > *:first-child, table.regexSyntax tr:last-child > *:first-child { -moz-border-radius-bottomleft: 0.5ex; -webkit-border-bottom-left-radius: 0.5ex; border-bottom-left-radius: 0.5ex; }
table.standard tr:last-child > *:last-child, table.regexSyntax tr:last-child > *:last-child { -moz-border-radius-bottomright: 0.5ex; -webkit-border-bottom-right-radius: 0.5ex; border-bottom-right-radius: 0.5ex; }
table.regexSyntax { border-spacing: 0px; /* border-top: 1px solid #919699; border-left: 1px solid #919699; */ margin-left: 1.5ex; margin-right: 1.5ex; -moz-border-radius: 0.5ex; -webkit-border-radius: 0.5ex; border-radius: 0.5ex; }
table.regexSyntax caption { margin-bottom: 0.5em; text-align: left; }
table.regexSyntax caption > .identifier { font-weight: bold; margin-right: 1.5ex; }
table.regexSyntax th { padding: 0.3334em 1ex; text-align: left; border-bottom: 1px solid #919699; border-right: 1px solid #919699; background: #E2E2E2; -webkit-background-origin: border; }
table.regexSyntax td { padding-left: 0.75ex; padding-right: 0.75ex; padding-top: 0.1875em; padding-bottom: 0.1875em; border-bottom: 1px solid #919699; border-right: 1px solid #919699; -webkit-background-origin: border; }
table.regexSyntax i + .regex { margin-left: 0.3125ex; }
.redOutline { outline: 1px solid rgba(255,0,0,0.25); }
.greenOutline { outline: 1px solid rgba(0,255,0,0.25); }
.blueOutline { outline: 1px solid rgba(0,0,255,0.25); }
.transitionColor { -webkit-transition: color 0.33s cubic-bezier(0.43, 0, 1.0, 0.75), text-shadow 0.33s cubic-bezier(0.43, 0, 1.0, 0.75); }
.transitionRed { color: #f00 !important; }
.transitionGreen { color: #0f0 !important; text-shadow: 1px 1px 3px rgba(0,255,0,0.4); }
.transitionBlue { color: #00f !important; }
.pulseOutlineRed { -moz-box-shadow: 0px 0px 1.85ex rgba(255,0,0,1.0) !important; -webkit-box-shadow: 0px 0px 1.85ex rgba(255,0,0,1.0) !important; }
.pulseOutline { -webkit-transition: -webkit-box-shadow 0.5s ease-out; }
.copyToClipboardHUDAnimate { -webkit-transition: top 0.25s ease-in-out, width 0.45s ease-in-out, left 0.45s ease-in-out; }
.copyToClipboardHUD { -moz-user-select: none; -webkit-user-select: none; cursor: default; }
.copyToClipboardHUD > .top { padding-top: 0px; padding-bottom: 0px; margin-left: 35px; margin-right: 35px; background: rgba(8,8,8,0.75); -webkit-border-bottom-left-radius: 10px; -webkit-border-bottom-right-radius: 10px; border-bottom-left-radius: 10px; border-bottom-right-radius: 10px; -moz-border-radius-bottomleft: 10px; -moz-border-radius-bottomright: 10px; border: 2px solid rgb(207,207,207); border-top: 0px solid transparent; -moz-box-shadow: 0px 0px 10px rgba(0,0,0,0.9); color: #fff; text-shadow: 0px 0px 1px rgba(0,0,0,0.75); -webkit-box-shadow: 0px 0px 10px rgba(0,0,0,0.9); box-shadow: 0px 0px 10px rgba(0,0,0,0.9); z-index: 100; text-align: center; -webkit-background-origin: border !important; -moz-background-origin: border; }
.copyToClipboardHUD > .top > .padding { padding-top: 0.25em; padding-bottom: 0.5em; }
.copyToClipboardHUD > .top > .padding > .copiedAs { white-space: nowrap; margin-left: 3ex; margin-right: 3ex; font-weight: bold; }
.copyToClipboardHUD .copyToClipboardHUDRegex { margin-top: 0.75em; margin-left: 4ex; margin-right: 4ex; color: #fff; text-shadow: 0px 0px 2px rgba(0,0,0,0.75); overflow: hidden; text-overflow: ellipsis; -webkit-background-origin: border; -moz-background-origin: border; }
.copyToClipboardHUD.example > .top { margin-right: 13px; margin-left: 13px; }
.copyToClipboardDisplayExample { margin: 1em 0px; }
.copyToClipboardDisplayExample .cell { vertical-align: top; }
div.clipboardExamples#topContainer { margin-bottom: 0.5em; }
div#clip { overflow: hidden; }
.faq { margin-left: 6ex; margin-right: 6ex; }
.faq > .qa { margin-bottom: 1.5em; }
.faq > .qa > .q { font-weight: bold; }
.faq > .qa > .a { margin: 0.25em 1.75ex; }
.faq > .qa > .q > p:first-child, .faq > .qa > .a > p:first-child { margin-top: 0px; }
.bottomBevel { border-bottom: 1px solid #e0e0e0; border-bottom: 1px solid rgba(0,0,0,0.1); -webkit-background-origin: border; -moz-background-origin: border; }
.topBevel { border-top: 1px solid #fdfdfd; border-top: 1px solid rgba(255,255,255,0.75); -webkit-background-origin: border; -moz-background-origin: border; }
.leftBevel { border-left: 1px solid #fdfdfd; border-left: 1px solid rgba(255,255,255,0.75); -webkit-background-origin: border; -moz-background-origin: border; }
.rightBevel { border-right: 1px solid #e0e0e0; border-right: 1px solid rgba(0,0,0,0.1); -webkit-background-origin: border; -moz-background-origin: border; }
.box { margin: 0.5em 3ex; padding: 0.5em 1.75ex; text-align: left; vertical-align: top; border: 1px solid #a1a5a9; background-color: #f7f7f7; }
.box + .box { margin-top: 1em; }
.box p { margin: 0px 0px; }
.box p + p { margin-top: 1em; }
.box.important { border-color: #111; background-color: #e8e8e8; }
.box.warning { border-color: #000; background-color: #fff; }
.box.caution { border-color: #000; background-color: #fcfcfc; border-width: 2px; }
.box.tip, .box.small { border-color: #c3c3c3; background-color: #e9e9e9; padding: 0.25em 1.0ex; }
.box.tip { display: table; -webkit-border-radius: 1.0em; -moz-border-radius: 1.0em; border-radius: 1.0em; }
.box.small { float: left; clear: both; margin: 0.5ex; -webkit-border-radius: 0.85em; -moz-border-radius: 0.85em; border-radius: 0.85em; }
.box.note, .box.important, .box.warning, .box.caution { -webkit-border-radius: 0.5em; -moz-border-radius: 0.5em; border-radius: 0.5em; color: #000; }
.box .message p:first-child { margin-top: 0px; }
.box .message p:last-child { margin-bottom: 0px; }
.box .label { padding-right: 1.5ex; font-weight: bold; vertical-align: middle; }
.box.tip .label { padding-right: 1.0ex; }
.box.small .label { padding-right: 0.5ex; }
.box.sourcecode, .box.shell, .box.quote { margin-left: 0px; margin-right: 0px; padding: 1.0em 2ex; -webkit-border-radius: 0.5ex; -moz-border-radius: 0.5ex; border-radius: 0.5ex; }
.box.sourcecode, .box.shell, .shellFont { font: 0.9167em monaco, "Lucida Console", courier, monospace; }
.box.sourcecode, .box.shell { white-space: pre; white-space: pre-wrap !important; }
.box.sourcecode { border: 1px solid #c7cfd5; background-color: #f1f5f9; }
/*.box.sourcecode .comment { font-weight: bold; font-size: 0.9167em; }*/
.box.shell { border: 1px solid #bddbc5; background-color: #eafff5; }
.box.quote { border: 1px solid #c7cfd5; background-color: #f0f0f0; }
.box.shell .userInput { font-weight: bold; font-size: 0.9167em; }
.box.shell .userInput .return { font-weight: normal; font-size: 1.1000em; margin-left: 0.5ex; }
.box.hasRows { display: table; padding: 0px; background-color: white; border-left: 1px solid #919699; border-top: 1px solid #919699; }
.box.hasRows > .row { display: table-row; }
.box.hasRows > .row > .cell { display: table-cell; padding: 1ex; border-bottom: 1px solid #919699; border-right: 0.834em solid #919699; }
.box.hasRows > .row > .cell.lastCell { border-right: none; }
.box.hasRows > .row.lastRow > .cell { border-bottom: none; }
/* zebra rows are tagged even/odd. Scripts/common.js:fixupBoxRows() will automatically populate and/or correct any even/odd tags */
.box.hasRows.zebraRows > .row.odd { background-color: #F0F5F9; }
.box.hasRows > .row.headerRow { background-color: #E2E2E2; }
.box.hasRows > .row.headerRow .cell { padding-top: 0.3334em; padding-bottom: 0.3334em; }
.box.frameworkSpecs .row.regexKitVersion .releaseNotes, .box.classSpecs .row.regexKitVersion .releaseNotes { margin-left: 2ex; }
.box.classSpecs > .row > .cell.left { font-weight: bold; border-right: none; }
.box.classSpecs > .row > ul.cell.right { list-style-type: none; }
.box.classSpecs { -webkit-border-radius: 0.5ex; -moz-border-radius: 0.5ex; border-radius: 0.5ex; }
.box.hasRows > .row:first-child { -moz-border-radius-topleft: 0.5ex; -webkit-border-top-left-radius: 0.5ex; border-top-left-radius: 0.5ex; -moz-border-radius-topright: 0.5ex; -webkit-border-top-right-radius: 0.5ex; border-top-right-radius: 0.5ex; }
.box.hasRows > .row:last-child { -moz-border-radius-bottomleft: 0.5ex; -webkit-border-bottom-left-radius: 0.5ex; border-bottom-left-radius: 0.5ex; -moz-border-radius-bottomright: 0.5ex; -webkit-border-bottom-right-radius: 0.5ex; border-bottom-right-radius: 0.5ex; }
.box.hasRows > .row:first-child > *:first-child { -moz-border-radius-topleft: 0.5ex; -webkit-border-top-left-radius: 0.5ex; border-top-left-radius: 0.5ex; }
.box.hasRows > .row:first-child > *:last-child { -moz-border-radius-topright: 0.5ex; -webkit-border-top-right-radius: 0.5ex; border-top-right-radius: 0.5ex; }
.box.hasRows > .row:last-child > *:first-child { -moz-border-radius-bottomleft: 0.5ex; -webkit-border-bottom-left-radius: 0.5ex; border-bottom-left-radius: 0.5ex; }
.box.hasRows > .row:last-child > *:last-child { -moz-border-radius-bottomright: 0.5ex; -webkit-border-bottom-right-radius: 0.5ex; border-bottom-right-radius: 0.5ex; }
.box .highlight { padding-left: 0.175ex; padding-right:0.175ex; padding-bottom: 0.1em; margin-right:0.175ex; margin-left:0.175ex; border: 1px solid #888; -webkit-border-radius: 0.5em; -moz-border-radius: 0.5em; border-radius: 0.5em; }
.box .metainfo { display: table; font: 12px "lucida grande", geneva, helvetica, arial, sans-serif; white-space: normal; padding: 0.125em 0.75ex; border: 1px solid #ccc; border-color: rgba(0,0,0,0.15); background-color: rgba(0,0,0,0.05); -webkit-border-radius: 0.5em; -moz-border-radius: 0.5em; border-radius: 0.5em; float: right; -webkit-user-select: none; -moz-user-select: none; cursor: default; -webkit-background-origin: border; -moz-background-origin: border; }
.box .metainfo .info { padding-left: 1.0ex; }
.box .metainfo > .entry { display: table-row; }
.box .metainfo > .entry > .item { display: table-cell; }
.box .metainfo > .entry > .meta { font-style: italic; }
.box .metainfo .filename > .info, .box .metainfo .taggedAs > .info { font: 0.9167em monaco, "Lucida Console", courier, monospace; white-space: nowrap; }
.box .metainfo .continues.above > .info { padding-left: 0px; font: italic 0.9167em monaco, "Lucida Console", courier, monospace; white-space: nowrap; }
.box .metainfo .description > .info { padding-left: 0px; font: italic 0.9167em monaco, "Lucida Console", courier, monospace; white-space: nowrap; }
.box.titled { margin: 0px; padding: 0px; border: 0px solid transparent; background-color: transparent; -webkit-border-radius: 0.625em; -moz-border-radius: 0.625em; border-radius: 0.625em; }
.box.titled > .title { padding: 0.25em 2ex; line-height: 1.5em; font-size: 13px; font-weight: bold; -webkit-border-top-left-radius: 0.625em; -webkit-border-top-right-radius: 0.625em; border-top-left-radius: 0.625em; border-top-right-radius: 0.625em; -moz-border-radius-topleft: 0.625em; -moz-border-radius-topright: 0.625em; -webkit-user-select: none; -moz-user-select: none; cursor: default; -webkit-background-origin: border; -moz-background-origin: border; background-origin: border; }
.box.titled > .contents { padding: 0.5em 2ex; line-height: 1.5em; font-size: 11px; -webkit-border-bottom-left-radius: 0.625em; -webkit-border-bottom-right-radius: 0.625em; border-bottom-left-radius: 0.625em; border-bottom-right-radius: 0.625em; -moz-border-radius-bottomleft: 0.625em; -moz-border-radius-bottomright: 0.625em; border: 1px solid #e5e5e5; border-top: 0px !important; background: #f5f5f5; color: #555; -webkit-background-origin: border; -moz-background-origin: border; background-origin: border; }
.box.titled > .title.blueGrey { background: #7a88a1; background: -webkit-gradient(linear, left top, left bottom, from(rgba(162,170,186,1.0)), to(rgba(114,131,157,1.0))); background: -moz-linear-gradient(top, rgba(162,170,186,1.0), rgba(114,131,157,1.0)); color: #fff; text-shadow: 0px 1px 2px #333;
border-top: 1px solid rgba(255,255,255,0.125); border-left: 1px solid rgba(0,0,0,0.025); border-right: 1px solid rgba(0,0,0,0.025); border-bottom: 1px solid rgba(0,0,0,0.025); -webkit-background-origin: border !important;
}
.box.titled > .title.dkRed { background: #7c2f26; background: -webkit-gradient(linear, left top, left bottom, from(rgba(140,96,91,1.0)), color-stop(0.0125, rgba(145,100,94,1)), color-stop(0.66,rgba(117,43,35,1.0)), to(rgba(115,42,34,1.0))); color: #fff; text-shadow: 0px 1px 2px #222; }
.box.titled > .title.metal { background: #d8d8d8; background: -webkit-gradient(linear, left top, left bottom, from(rgba(223,223,223,1.0)), to(rgba(206,206,206,1.0)) ); color: #666; text-shadow: 1px 1px 0px #e9e9e9; text-shadow: 1px 1px 0px rgba(255,255,255,0.4); border-top: 1px solid rgba(255,255,255,0.65); border-left: 1px solid rgba(0,0,0,0.04); border-right: 1px solid rgba(0,0,0,0.04); border-bottom: 1px solid #afafaf; }
.box.titled > .contents.metal { background: #ccc; background: -webkit-gradient(linear, left top, left bottom, from(rgba(204,204,204,1.0)), to(rgba(190,190,190,1.0))); color: #fff; text-shadow: 0px 1px 2px #333; border-top: 1px solid #e0e0e0 !important; border-left: 1px solid rgba(0,0,0,0.04); border-right: 1px solid rgba(0,0,0,0.04); border-bottom: 1px solid #aaa; }
.box.titled > .title.alum { background: #eee; color: #333; border: 1px solid #d3d3d3; border-bottom: 1px solid #bcbcbc !important; }
.box.titled > .contents.alum { background: #fafafa; color: #555; border-top-width: 0px; border-left: 1px solid #e1e1e1; border-right: 1px solid #e1e1e1; border-bottom: 1px solid #c4c4c4; }
.box.titled > .contents.alum2 { color: #222; background: #f8f8f8; border-top: 1px solid #fcfcfc !important; border-left: 1px solid #e1e1e1; border-right: 1px solid #e1e1e1; border-bottom: 1px solid #c4c4c4; }
.box.titled > .contents.whiteToLight { background: -webkit-gradient(linear, left top, left bottom, from(rgba(255,255,255,1.0)), to(rgba(241,241,241,1.0))); border: 1px solid #cecece; }
.box.titled > .contents.whiteToLight2 { background: -webkit-gradient(linear, left top, left bottom, from(rgba(250,250,250,1.0)), to(rgba(241,241,241,1.0))); border: 1px solid #cecece; }
.box.titled.copyToClipboard.preferences { float: right; margin: 1em 3ex; -moz-user-select: none; -webkit-user-select: none; max-width: 33%; min-width: 350px; cursor: default; }
.box.titled.copyToClipboard.preferences .contents .inset .code { color: #222; }
.box.titled.copyToClipboard.preferences .contents .inset .prefsUI { margin: 3px; }
.box.titled.copyToClipboard.preferences .contents .inset .prefsUI .copyRegexPrefsRow > .UIlabel { text-align: right; }
.box.titled.copyToClipboard.preferences .contents .inset .prefsUI .copyRegexPrefsRow > .UIcontrol, .box.titled.copyToClipboard.preferences .contents .inset .prefsUI .copyRegexPrefsRow > .UIcontrolLabel { text-align: left; }
.box.titled.copyToClipboard.preferences .contents .inset .prefsUI input { margin: 0px; }
.box.titled.regexEscapeTool.UIpane { width: 45%; max-width: 75%; min-width: 350px; float: right; margin: 2em 3ex; }
.box.titled.regexEscapeTool.UIpane .contents .contain { position: relative; padding-right: 4px; }
.box.titled.regexEscapeTool.UIpane textarea.regex { width: 100%; resize: none; -webkit-border-radius: 3px; border-color: #c4c4c4; border-top-color: #aaa; padding: 1px; font-size: 1em; }
.box.titled.regexEscapeTool.UIpane .inset { font-size: 12px; }
.box.titled.regexEscapeTool.UIpane .inset #interactiveEscapedOutput { min-height: 5em; max-height: 12em; margin: 0.125em 1.0ex; white-space: pre-wrap; overflow: auto; text-shadow: 1px 1px 1px rgba(0,0,0,0.2); color: #333; }
.safariOnly { display: none; }
.enhancedCopyOnly { display: none; }
.disabledPref, .disabledPref > *, .disabledPref > * > *, .disabledPref > * > * > * { color: #808080 !important; }
.copyToClipboard.preferences .hidden { opacity: 0; }
.copyToClipboard.preferences .marginAndOpacityTransition { -webkit-transition: margin-bottom 0.25s ease-out, opacity 0.15s ease-out; -webkit-transition-delay: 1s; }
.copyToClipboard.preferences .marginAndOpacityTransition.hidden { -webkit-transition: margin-bottom 0.25s ease-in-out, opacity 0.15s ease-out; -webkit-transition-delay: 1s;}
.UIcontrolLabel { cursor: default; }
.clipboardExamples .UIlabel { margin: 0.5em 0px 0.25em 0.25ex }
.copyToClipboard.preferences .contents .UItopTitleSpacer { margin-top: 6px; }
.box.titled .contents .UIcontentSpacer { margin: 6px 0px 4px 0px; }
.prefWarnings .prefWarningsSpacer { margin: 0.25em 1ex; }
.prefWarnings .prefWarningsTable + .prefWarningsTable { margin-top: 0.5em; }
.prefWarnings .prefWarningsTable > .row > .cell.label { text-align: right; padding-right: 1.5ex; }
.escapedUnicodeInNSStringLiterals { display: inline; }
hr.beveled { margin: 0px; border: 0px solid transparent; border-top: 1px solid rgba(0,0,0,0.1); border-bottom: 1px solid rgba(255,255,255,0.75); -webkit-background-origin: border; -moz-background-origin: border; }
.copyToClipboard.preferences hr.beveled { margin: 0.125em 0px; }
.insetOuter { -moz-border-radius: 6px; -webkit-border-radius: 6px; border-radius: 6px; border-top: 1px solid rgba(0,0,0,0.25); -webkit-background-origin: border; -moz-background-origin: border; background-origin: border; }
.insetMiddle { -moz-border-radius: 5px; -webkit-border-radius: 5px; border-radius: 5px; border-top: 1px solid rgba(0,0,0,0.15); border-left: 1px solid rgba(0,0,0,0.14); border-right: 1px solid rgba(0,0,0,0.12); border-bottom: 1px solid rgba(0,0,0,0.10); -webkit-background-origin: border; -moz-background-origin: border; background-origin: border; }
.inset { -moz-border-radius: 4px; -webkit-border-radius: 4px; border-radius: 4px; border-top: 1px solid rgba(0,0,0,0.05); border-left: 1px solid rgba(0,0,0,0.04); border-right: 1px solid rgba(0,0,0,0.03); border-bottom: 1px solid rgba(0,0,0,0.02); background: #f8f8f8; background: rgba(0,0,0,0.03); -webkit-background-origin: border; -moz-background-origin: border; background-origin: border; }
.figure .caption { margin-bottom: 0.5em; margin-top: 0.5em; }
.figure .caption .number { font-weight: bold; margin-right: 1.25ex; white-space: nowrap; }
.signature { margin-top: 1em; margin-bottom: 0.75em; font: 0.9166em monaco, "Lucida Console", courier, monospace; }
.signature .code { font-size: 1em !important; }
.block { margin: 2.5em 0px 0px 0px; padding: 2.5em 0px 0px 0px; }
.block .header + p { margin-top: 0px; }
.block.dtrace.small > .signature { margin-left: 2ex; }
.section { margin-top: 1em; margin-bottom: 1em; padding: 0px; }
.section > .header { font-weight: bold; font-size: 1.0834em; margin-bottom: 0.1667em; }
.section p { margin-top: 0.5em; margin-bottom: 0.5em; }
.section.discussion p { margin-top: 1em; margin-bottom: 1em; }
.section.summary { margin-top: 0.75em; margin-bottom: 0.75em; }
.section.name { font-size: 1.5833em; font-weight: bold; margin-top: 0px; margin-bottom: 0px; }
.section.parameters { margin-top: 1.5em; }
.section.block.parameters { margin-top: 0.5em; }
.section.seealso ul { list-style-type: none; margin: 0px; padding: 0px; }
.section.seealso li { margin: 0px; }
.section.seealso ul.offset > li, ul.seealso > li { margin: 0px 0px 0px 6.25ex; }
.section.parameters ul { list-style-type: none; margin: 0px 0px 0px 2ex; padding: 0px; }
.section.parameters li { margin: 0px; }
.section.parameters li .name { font-style: italic; }
.section.parameters li .text { margin-top: 0.0834em; margin-left: 4ex; margin-bottom: 0.5em; }
.block.typedef { margin-top: 5em; margin-bottom: 0px; padding-top: 0px; }
.block.typedef > .section.name { margin-bottom: 0.5em; }
.block.typedef > .section.summary { margin-top: 1em; }
.block.typedef > .section.type { margin-bottom: 0.75em; font: 0.9166em monaco, "Lucida Console", courier, monospace; }
.block.constants { margin-top: 1.5em; padding-top: 0px; }
.block.constants > .section.summary { margin-top: 1em; margin-bottom: 1.25em; }
.block.constants > .section.declaration .code { font-size: 1em; color: #000; }
.block > .section.declaration { font: 0.9167em monaco, "Lucida Console", courier, monospace; color: #000; margin-top: 0px; margin-bottom: 0px; }
.block > .section.declaration > .enum > .identifier { padding-left: 4ex; }
.block > .section.declaration > .enum > .equals { padding-left: 2ex; padding-right: 2ex; }
.block > .section.constants { margin-top: 1.5em; }
.block > .section.constants > .section.summary { margin-top: 1em; margin-bottom: 1.25em; }
.block > .section.constants > .section.header { margin-bottom: 0.25em; }
.block > .section.constants > .section.declaration .name.code { color: #000; }
.block > .section.constants > .constant { margin-top: 0.5em; margin-bottom: 0.5em; }
.block > .section.constants > .constant > .identifier { font: 0.9167em monaco, "Lucida Console", courier, monospace; /*color: #666;*/ }
.block > .section.constants > .constant > .text { margin-left: 2ex; }
.block > .section.constants > .constant > .text > p { margin-top: 0px; margin-bottom: 0px; }
.block > .section.constants > .constant > .text > p + p { margin-top: 1em; }
h1.reference { margin-top: 2.5em; }
h3 .code { color: black; }
h4 .code { color: black; }
.overview { margin-bottom: 1em; }
.overview .masthead { font-size: 2.0000em; font-weight: bold; margin-top: 2.5em; margin-bottom: 2.0ex; border-bottom: 1px solid black; }
.overview .header { font-size: 1.5833em; font-weight: bold; margin-top: 1.5em; margin-bottom: 0.5em; }
.overview .section { font-size: 1.2500em; font-weight: bold; margin-top: 2.0em; margin-bottom: 0.5em; }
.overview .seealso > ul { margin: 0px; padding: 0px; list-style-type: none; }
.overview .seealso > ul > li { margin-left: 6.25ex; }
.tasks { margin-bottom: 1em; }
.tasks > .header { font-size: /*1.5833em;*/ 1.4166em; font-weight: bold; margin-top: 1.5em; margin-bottom: 0.5em; }
.tasks .header .code { font: bold 1em "lucida grande", geneva, helvetica, arial, sans-serif; }
.tasks > ul { margin: 0px; padding: 0px; list-style-type: none; }
.tasks > ul > li { margin-left: 6.25ex; }
.protocols { margin-bottom: 1em; }
.protocols > .header { margin-bottom: 0.75ex; }
.protocols > ul { margin: 0px; padding: 0px; list-style-type: none; }
.protocols > ul > li { margin-left: 6.25ex; }
.chrono { margin-left: 1.5ex; margin-bottom: 2em; padding-right: 4ex; }
.chrono ul { margin-left: 4.0ex; padding-left: 1ex; list-style-type: square; }
.chrono ul li { margin-top: 0.5em; }
.chrono ul.square > li > *:first-child { margin-top: 0px; }
.chrono ul.square > li > *:last-child { margin-bottom: 0px; }
.chrono ul.square > li > * { margin-top: 0.5em; margin-bottom: 0.5em; }
.chrono ul.square > li > .box.sourcecode { margin-bottom: 0.85em; }
.chrono > .entry { margin-left: 2ex; margin-bottom: 1.75em; padding-right: 2ex; }
.chrono > .entry > .banner { margin-left: -1.25ex; font-size: 1.0834em; }
.chrono > .entry > .banner > .bannerItemSpacer { margin-right: 1.25ex; margin-left: 1.25ex; }
.chrono > .entry > .bannerSpacer { margin-left: -2.0ex; border-bottom: 1px solid #d8d8d8; margin-top: 0.25em; margin-bottom: 0.25em; width: 95% }
.chrono > .entry > .content { margin-top: 0.5em; }
.chrono > .entry > .content > p:first-child { margin-top: 0px; margin-bottom: 0px; }
.chrono > .entry > .content .standout { margin-top: 1.75em; /*margin-bottom: 0.5000em;*/ font-size: 1.0875em; font-weight: bold; }
.quotation { margin: 1em 6.25ex 1em 6.25ex; }
.quotation .quote { font-style: italic; padding-right: 2.5ex; }
.quotation .attribution { text-align: right; font-variant: small-caps; }
.quotation .attribution:before { content:"\2014"; }
.sourceLicense { margin: 2em 4ex; max-width: 5.75in; text-align: justify; }
.sourceLicense ul { list-style-type: disk; }
.sourceLicense li { margin-bottom: 0.75em; }
.sourceLicense .disclaimer { font-family: courier, monospace; }
.pop-up_menu-selection, .pop-up_menu-name, .menu-selection, .checkbox-name, .tab-name, .button-name, .icon-button-name { font: 0.9167em monaco, "Lucida Console", courier, monospace !important; white-space: nowrap !important; }
.deprecated { color: #f00; }
.quotedText { font: 0.9167em monaco, "Lucida Console", courier, monospace; }
.code { font: 0.9167em monaco, "Lucida Console", courier, monospace; /*color: #666;*/ }
.parameterChoice { font-style: italic; font-size: 0.9167em; white-space: nowrap; margin-right: 0.2em; }
.consoleText { font: 0.8334em monaco, "Lucida Console", courier, monospace; white-space: nowrap; }
.regex { font: 0.8334em monaco, "Lucida Console", courier, monospace; white-space: nowrap; }
.regex b { font: bold 1.1000em monaco, "Lucida Console", courier, monospace; white-space: nowrap; }
.regex-textual { font: 0.9167em monaco, "Lucida Console", courier, monospace; white-space: nowrap; }
.regex-def { font: italic 0.9167em monaco, "Lucida Console", courier, monospace; white-space: nowrap; }
.regexMatch { font: 0.8334em monaco, "Lucida Console", courier, monospace; white-space: nowrap; }
.argument { font-style: italic; white-space: nowrap; }
.section-link { font-style: italic; white-space: nowrap; white-space: pre-wrap !important; }
.cpp_flag { font-weight: bold; white-space: nowrap; }
.code .cpp_flag { font-weight: normal; font-style: italic; white-space: nowrap; }
.cpp_definition { font-weight: bold; color: #f00; }
.header_file { font: 0.9167em monaco, "Lucida Console", courier, monospace; white-space: nowrap; /*color: #666;*/ }
.frameworkabstract { font-size: 1.0000em; }
.file { font: 0.9167em monaco, "Lucida Console", courier, monospace; white-space: nowrap; /*color: #666;*/ }
.build-phase { font: 0.9167em monaco, "Lucida Console", courier, monospace; white-space: nowrap; }
.dialog-option { font: 0.9167em monaco, "Lucida Console", courier, monospace; white-space: nowrap; }
.xcode-group { font: 0.9167em monaco, "Lucida Console", courier, monospace; white-space: nowrap; }
.xcode-setting { font-weight: bold; white-space: nowrap; }
.xcode-target { font: 0.9167em monaco, "Lucida Console", courier, monospace; white-space: nowrap; }
.window-name { font: 0.9167em monaco, "Lucida Console", courier, monospace; white-space: nowrap; }
.context-menu { font: 0.9167em monaco, "Lucida Console", courier, monospace; white-space: nowrap; }
.xcode-button { font: 0.9167em monaco, "Lucida Console", courier, monospace; white-space: nowrap; }
.user-supplied { font-style: italic; white-space: nowrap; }
.new-term { font-weight: bold; white-space: nowrap; }
.exponent { font-size: 0.7500em; vertical-align: super; }
.unicodeCharName { font: 0.9167em monaco, "Lucida Console", courier, monospace; white-space: nowrap; /*color: #666;*/ }
.unicodeProperty { font: 0.9167em monaco, "Lucida Console", courier, monospace; white-space: nowrap; /*color: #666;*/ }
.standardFont { font: 1em "lucida grande", geneva, helvetica, arial, sans-serif; }
.rkl { white-space: nowrap; }
@media screen {
.printOnly { display: none; }
.softNobr { white-space: nowrap; }
.syntax > .specification .optional { -moz-box-shadow: 2px 3px 5px #888; -webkit-box-shadow: 2px 3px 5px #888; box-shadow: 2px 3px 5px #888; }
.XXX { -moz-box-shadow: 8px 8px 10px #666; -webkit-box-shadow: 3px 3px 8px #666; box-shadow: 3px 3px 8px #666; }
.box { -moz-box-shadow: 3px 3px 4px #999; -webkit-box-shadow: 3px 3px 4px #999; box-shadow: 3px 3px 4px #999; }
.box.caution { -moz-box-shadow: 0px 0px 5px #000; -webkit-box-shadow: 0px 0px 5px #000; box-shadow: 0px 0px 5px #000; }
.box .metainfo { -moz-box-shadow: 2px 2px 3px #999; -webkit-box-shadow: 2px 2px 3px #999; box-shadow: 2px 2px 3px #999;
background: rgba(0,0,0,0.05); background: -webkit-gradient(linear, left top, left bottom, from(rgba(0,0,0,0.0)), to(rgba(0,0,0,0.1))); background: -moz-linear-gradient(top, rgba(0,0,0,0.0), rgba(0,0,0,0.1)); -webkit-background-origin: border; -moz-background-origin: border; background-origin: border;
}
.box .metainfo.bottom { margin-top: -1.6666em; }
.box.titled.UIpane { -moz-box-shadow: 0px 5px 10px #aaa; -webkit-box-shadow: 0px 5px 10px #aaa; box-shadow: 0px 5px 10px #aaa; }
.box.titled.regexEscapeTool.UIpane textarea { -moz-box-shadow: 0px 0px 2px #c2c2c2; -webkit-box-shadow: 0px 0px 2px #c2c2c2; box-shadow: 0px 0px 2px #c2c2c2; }
table.standard { -moz-box-shadow: 3px 3px 4px #999; -webkit-box-shadow: 3px 3px 4px #999; box-shadow: 3px 3px 4px #999; }
table.standard caption { -moz-box-shadow: 0px 0px 0px #000; -webkit-box-shadow: 0px 0px 0px #000; box-shadow: 0px 0px 0px #000; }
table.regexSyntax { -moz-box-shadow: 3px 3px 4px #999; -webkit-box-shadow: 3px 3px 4px #999; box-shadow: 3px 3px 4px #999; }
table.regexSyntax caption { -moz-box-shadow: 0px 0px 0px #000; -webkit-box-shadow: 0px 0px 0px #000; box-shadow: 0px 0px 0px #000; }
table.standard th, table.regexSyntax th {
text-shadow: rgba(0,0,0,0.33) 0px -1px 0px;
background: #93A5BB;
background: -webkit-gradient(linear, left top, left bottom, from(rgba(190,199,214,1.0)), color-stop(0.5, rgba(155,172,191,1.0)), color-stop(0.5, rgba(147,166,187,1.0)), to(rgba(128,150,176,1.0)));
background: -moz-linear-gradient(top, rgba(190,199,214,1.0), rgba(155,172,191,1.0) 50%, rgba(147,166,187,1.0) 50%, rgba(128,150,176,1.0));
color: #fff;
border-top: 1px solid #b8b8b8; border-top: 1px solid rgba(255,255,255,0.2);
border-bottom: 1px solid #b8b8b8; border-bottom: 1px solid rgba(255,255,255,0.25);
border-left: 1px solid #e0e0e0; border-left: 1px solid rgba(255,255,255,0.15);
border-right: 1px solid #c0c0c0; border-right: 1px solid rgba(0,0,0,0.05);
-webkit-background-origin: border !important;
-moz-background-origin: border !important;
background-origin: border !important;
}
table.standard tr > td:first-child, table.regexSyntax tr > td:first-child { border-left: 1px solid #9BB3CD; }
table.standard td { border-bottom: 1px solid #9BB3CD; border-right: 1px solid #9BB3CD; }
table.regexSyntax td { border-bottom: 1px solid #9BB3CD; border-right: 1px solid #9BB3CD; }
table.regexSyntax .highlight { padding: 0.0em 0.625ex 0.1em 0.625ex; border: 1px solid #ddd; -webkit-border-radius: 0.5em; -moz-border-radius: 0.5em; border-radius: 0.5em; }
table.regexSyntax .highlight { border: 1px solid rgba(0,0,0,0.075); background: rgba(0,0,0,0.05); background: -webkit-gradient(linear, left top, left bottom, from(rgba(0,0,0,0.0)), to(rgba(0,0,0,0.1))); background: -moz-linear-gradient(top, rgba(0,0,0,0.0), rgba(0,0,0,0.1)); -moz-box-shadow: 0px 0px 2px rgba(0,0,0,0.375); -webkit-box-shadow: 0px 0px 1px rgba(0,0,0,0.375); box-shadow: 0px 0px 1px rgba(0,0,0,0.375); -webkit-background-origin: border; -moz-background-origin: border; background-origin: border; }
.box .highlight { border: 1px solid rgba(0,0,0,0.075); background: rgba(0,0,0,0.05); background: -webkit-gradient(linear, left top, left bottom, from(rgba(0,0,0,0.0)), to(rgba(0,0,0,0.1))); background: -moz-linear-gradient(top, rgba(0,0,0,0.0), rgba(0,0,0,0.1)); -moz-box-shadow: 0px 0px 2px rgba(0,0,0,0.375); -webkit-box-shadow: 0px 0px 1px rgba(0,0,0,0.375); box-shadow: 0px 0px 1px rgba(0,0,0,0.375); -webkit-background-origin: border; -moz-background-origin: border; background-origin: border; }
table.slate:not(.clipboardExamples) { -moz-box-shadow: 2px 2px 3px #999; -webkit-box-shadow: 2px 2px 3px #999; box-shadow: 2px 2px 3px #999; }
div#shadow { -moz-box-shadow: 0px 2px 3px #bbb; -webkit-box-shadow: 0px 1px 2px #ccc; box-shadow: 0px 1px 2px #ccc; }
.reference > h3.InstanceMethods { margin-top: 2.5em; margin-bottom: 2ex; font-size: 2em; border-bottom: 1px solid black; clear: both; }
.reference > h3 { margin: 2em 0px 0.5em 0px; font-size: 1.4166em; }
.reference > h4 { margin: 2em 0px 0.5em 0px; font-size: 1.25em; }
table.slate { border-spacing: 0px; margin: 0px 0px 0.5em 0px; background: #fcfcfc; }
table.slate caption { margin-bottom: 0.5em; text-align: left; }
table.slate caption > .identifier { font-weight: bold; margin-right: 1.5ex; }
table.slate th {
white-space: nowrap; font-size: 0.9167em; padding: 0.1em 0.75ex; text-align: left;
background: #ccc; background: -webkit-gradient(linear, left top, left bottom, from(#dbdbdb), to(#bbb)); background: -moz-linear-gradient(top, #dbdbdb, #bbb);
color: #202020; text-shadow: 1px 1px 1px #cfcfcf; text-shadow: 0px 1px 1px rgba(255,255,255,0.95);
border-bottom: 1px solid #b8b8b8;
border-top: 1px solid #f3f3f3;
border-left: 1px solid #e0e0e0; border-left: 1px solid rgba(255,255,255,0.35);
border-right: 1px solid #c0c0c0; border-right: 1px solid rgba(0,0,0,0.05);
-webkit-background-origin: border !important;
-moz-background-origin: border !important;
background-origin: border !important;
}
table.slate, table.slate tr, table.slate th, table.slate td, table.slate tbody {
-webkit-background-origin: border !important;
-moz-background-origin: border !important;
background-origin: border !important;
}
table.slate td {
padding: 0.1em 1.0ex; color: #202020; text-shadow: 0px 1px 0px #fbfbfb; text-shadow: 0px 1px 0px rgba(255,255,255,0.75);
background: #f5f5f5; background: -webkit-gradient(linear, left top, left bottom, from(#fafafa), to(#ebebeb)); background: -moz-linear-gradient(top, #fafafa, #ebebeb);
border-top: 1px solid #fbfbfb; border-top: 1px solid rgba(255,255,255,0.25);
border-bottom: 1px solid #e8e8e8; border-bottom: 1px solid rgba(0,0,0,0.015);
border-left: 1px solid #f6f6f6; border-left: 1px solid rgba(255,255,255,0.375);
border-right: 1px solid #ececec; border-right: 1px solid rgba(0,0,0,0.02);
-webkit-background-origin: border !important;
-moz-background-origin: border !important;
background-origin: border !important;
}
table.slate tr:nth-child(odd) > td { text-shadow: 0px 1px 0px #ecf2fc; background: #dde8fa; background: -webkit-gradient(linear, left top, left bottom, from(#eaf1fb), to(#d1e0f9)); background: -moz-linear-gradient(top, #eaf1fb, #d1e0f9); text-shadow: 0px 1px 0px rgba(255,255,255,0.5);}
table.slate tr:first-child > * { border-top: 1px solid #d0d0d0 !important; }
table.slate tr > *:first-child { border-left: 1px solid #d0d0d0 !important; border-left: 1px solid rgba(0,0,0,0.1) !important; }
table.slate tr > *:last-child { border-right: 1px solid #d0d0d0 !important; border-right: 1px solid rgba(0,0,0,0.1) !important; }
table.slate tr:last-child > * { border-bottom: 1px solid #d0d0d0 !important; border-bottom: 1px solid rgba(0,0,0,0.2) !important; }
table.slate, table.slate tbody, div#shadow, div#clip {
-moz-border-radius-topleft: 0.625ex; -webkit-border-top-left-radius: 0.625ex; border-top-left-radius: 0.625ex;
-moz-border-radius-topright: 0.625ex; -webkit-border-top-right-radius: 0.625ex; border-top-right-radius: 0.625ex;
-moz-border-radius-bottomleft: 0.5ex; -webkit-border-bottom-left-radius: 0.5ex; border-bottom-left-radius: 0.5ex;
-moz-border-radius-bottomright: 0.5ex; -webkit-border-bottom-right-radius: 0.5ex; border-bottom-right-radius: 0.5ex;
}
table.slate tr:first-child { -moz-border-radius-topleft: 0.625ex; -webkit-border-top-left-radius: 0.625ex; border-top-left-radius: 0.625ex;
-moz-border-radius-topright: 0.625ex; -webkit-border-top-right-radius: 0.625ex; border-top-right-radius: 0.625ex; }
table.slate tr:last-child { -moz-border-radius-bottomleft: 0.5ex; -webkit-border-bottom-left-radius: 0.5ex; border-bottom-left-radius: 0.5ex;
-moz-border-radius-bottomright: 0.5ex; -webkit-border-bottom-right-radius: 0.5ex; border-bottom-right-radius: 0.5ex;}
table.slate tr:first-child > *:first-child { -moz-border-radius-topleft: 0.625ex; -webkit-border-top-left-radius: 0.75ex; border-top-left-radius: 0.75ex; }
table.slate tr:first-child > *:last-child { -moz-border-radius-topright: 0.625ex; -webkit-border-top-right-radius: 0.75ex; border-top-right-radius: 0.75ex; }
table.slate tr:last-child > *:first-child { -moz-border-radius-bottomleft: 0.5ex; -webkit-border-bottom-left-radius: 0.5ex; border-bottom-left-radius: 0.5ex; }
table.slate tr:last-child > *:last-child { -moz-border-radius-bottomright: 0.5ex; -webkit-border-bottom-right-radius: 0.5ex; border-bottom-right-radius: 0.5ex; }
table.slate.clipboardExamples td .regex { -webkit-transition: opacity 0.33s cubic-bezier(0.2, 0.0, 0.5, 1.0); opacity: 1; }
table.slate.clipboardExamples.inactive td .regex { -webkit-transition: opacity 0.33s cubic-bezier(0.5, 0.0, 0.75, 0.9); opacity: 0 !important; }
table.slate.clipboardExamples { z-index: 10; position: relative; }
table.slate.clipboardExamples.active { z-index: 99 !important; }
table.slate.clipboardExamples#cbe_bg { z-index: 1; }
table.slate.clipboardExamples.active td .regex { -moz-user-select: text; -webkit-user-select: text; cursor: auto; }
table.slate.clipboardExamples#cbe_bg td > * { visibility: hidden; }
table.slate.clipboardExamples#cbe_a th, table.slate.clipboardExamples#cbe_b th { visibility: hidden; }
table.slate.clipboardExamples td .regex > del { display: none; }
table.slate.clipboardExamples td .regex > ins { -webkit-transition: color 1s cubic-bezier(0.43, 0, 1.0, 0.75), text-shadow 0.65s cubic-bezier(0.43, 0, 1.0, 0.75); color: #202020; text-decoration: none; }
table.slate.clipboardExamples.inactive td > .regex > ins { color: #f00; text-shadow: 1px 1px 3px rgba(255,0,0,0.66); }
table.slate.clipboardExamples.transparentBackground, table.slate.clipboardExamples.transparentBackground * { border-color: transparent !important; background: transparent !important; }
table.regexList .regexMatch { padding-right: 0.75ex; padding-left: 0.75ex; }
/* even = light, odd = dark */
table.regexList tr:nth-child(odd) .regexMatch { border-right: 1px solid rgba(0,0,0,0.05); border-left: 1px solid rgba(255,255,255,0.5); }
table.regexList tr:nth-child(even) .regexMatch { border-right: 1px solid rgba(0,0,0,0.04); border-left: 1px solid rgba(255,255,255,0.85); }
table.regexList .regexMatch:first-child { padding-left: 0px; border-left: 0px solid transparent !important; }
table.regexList .regexMatch:last-child { padding-right: 0px; border-right: 0px solid transparent !important; }
table.slate.clipboardExamples { font-size: 12px; }
table.slate > tbody > tr > td.code { font-size: 0.8334em; color: #202020; text-shadow: 0px 1px 0px rgba(255,255,255,0.75); }
.tunableBreak { display: none; }
.tbrOn { display: none; }
.tbrOff { display: inline; }
}
/* This causes the ICU regex syntax tables to double up, side-by-side when the view port size > 1200. Otherwise, one follows the other for readability on small screens. */
@media screen and (max-width: 1100px) {
div.table.regexSyntax, div.table.regexSyntax > .row, div.table.regexSyntax > .row > .cell { display: block; }
div.table.regexSyntax > .row > .cell { width: 100%; }
.metacharacters + .operators { margin-top: 1em; }
.tunableBreak { display: inline; }
.tbrOn { display: inline; }
.tbrOff { display: none; }
}
@media screen and (max-width: 900px) {
table.regexList .regex { white-space: pre-wrap; }
.softNobr { white-space: pre-wrap; }
}
@media print {
h2 { border-bottom: 1px solid #000; color: #000; }
table.regexList .regex { white-space: pre-wrap; }
table.standard th, table.regexList th { color: #000; border-bottom: 1px solid #9BB3CD; border-right: 1px solid #9BB3CD; border-bottom: 1px solid #919699; border-right: 1px solid #919699; background: #E2E2E2; }
table.standard, table.regexSyntax { border-top: 1px solid #919699; border-left: 1px solid #919699; }
.softNobr { white-space: pre-wrap; }
.tbrOn { display: inline; }
.tbrOff { display: none; }
table.slate { border-spacing: 0px; border-top: 1px solid #919699; border-left: 1px solid #919699; }
table.slate caption { margin-bottom: 0.5em; text-align: left; }
table.slate caption > .identifier { font-weight: bold; margin-right: 1.5ex; }
table.slate tr { -webkit-background-origin: border; -moz-background-origin: border; }
table.slate th { padding: 0.3334em 1ex; border-bottom: 1px solid #919699; border-right: 1px solid #919699; background: #E2E2E2; -webkit-background-origin: border; -moz-background-origin: border; }
table.slate td { padding-left: 0.75ex; padding-right: 0.75ex; padding-top: 0.1875em; padding-bottom: 0.1875em; border-bottom: 1px solid #919699; border-right: 1px solid #919699; -webkit-background-origin: border; -moz-background-origin: border; }
table.regexList { width: 100%; }
table.regexList .regexMatch { padding-right: 0.75ex; padding-left: 0.75ex; }
table.regexList .regexMatch:first-child { padding-left: 0px; border-left: 0px solid transparent }
table.regexList .regexMatch:last-child { padding-right: 0px; border-right: 0px solid transparent }
table.slate { -moz-border-radius: 0.5ex; -webkit-border-radius: 0.5ex; border-radius: 0.5ex; }
table.slate tr:first-child > *:first-child { -moz-border-radius-topleft: 0.5ex; -webkit-border-top-left-radius: 0.5ex; border-top-left-radius: 0.5ex; }
table.slate tr:first-child > *:last-child { -moz-border-radius-topright: 0.5ex; -webkit-border-top-right-radius: 0.5ex; border-top-right-radius: 0.5ex; }
table.slate tr:last-child > *:first-child { -moz-border-radius-bottomleft: 0.5ex; -webkit-border-bottom-left-radius: 0.5ex; border-bottom-left-radius: 0.5ex; }
table.slate tr:last-child > *:last-child { -moz-border-radius-bottomright: 0.5ex; -webkit-border-bottom-right-radius: 0.5ex; border-bottom-right-radius: 0.5ex; }
.screenOnly { display: none; }
body { font: 10pt "Palatino LT Std", palatino, "Palatino Linotype", "URW Palladio L", "URWPalladioL", "Minion", "Minion Pro", georgia, times, "lucida grande", helvetica, arial, sans-serif; margin: 0px; margin-left: 1.15in; /*width:100%;*/ /* margin-right: -0.4in;*/ /*margin-right: -1in;*/ /*width: 100%;*/ }
h1 { padding-bottom: 0px; padding-top: 0.5em; margin-top: 2in; margin-bottom: 0.5em; border-top: 1px solid black; font-family: "Palatino LT Std", palatino, "Palatino Linotype", "URW Palladio L", "URWPalladioL", "Minion", "Minion Pro", georgia, times, "lucida grande", geneva, helvetica, arial, sans-serif; font-weight: normal; font-size: 27pt; }
h2 { page-break-after: avoid; padding-bottom: 3.5em; padding-left: 0.6in; padding-top: 1em; margin-bottom: 2.5em; font-family: "Palatino LT Std", palatino, "Palatino Linotype", "URW Palladio L", "URWPalladioL", "Minion", "Minion Pro", georgia, times, "lucida grande", geneva, helvetica, arial, sans-serif; font-weight: normal; font-size: 24pt; }
h3, .tasks .header, .guide .seealso > .header { padding-bottom: 0.25em; border-bottom: 1px solid black; page-break-after: avoid; font-family: "Palatino LT Std", palatino, "Palatino Linotype", "URW Palladio L", "URWPalladioL", "Minion", "Minion Pro", georgia, times, "lucida grande", geneva, helvetica, arial, sans-serif; font-weight: normal; font-size: 18pt; }
h4 { padding-bottom: 0.25em; border-bottom: 1px solid black; page-break-after: avoid; font-family: "Palatino LT Std", palatino, "Palatino Linotype", "URW Palladio L", "URWPalladioL", "Minion", "Minion Pro", georgia, times, "lucida grande", geneva, helvetica, arial, sans-serif; font-weight: normal; }
h5 { border-bottom: 1px solid black; font-family: "Palatino LT Std", palatino, "Palatino Linotype", "URW Palladio L", "URWPalladioL", "Minion", "Minion Pro", georgia, times, "lucida grande", geneva, helvetica, arial, sans-serif; font-weight: normal; }
.titlePage h1 { font-size: 27pt; }
.security { padding-left: 0.6in; }
.security > .inner { margin-left: 0.5ex; }
h1, h2, h3, .security { margin-left: -0.6in; }
h1.reference { font-size: 24pt; margin-top: 2.5em; padding-bottom: 4em; padding-left: 0.6in; padding-top: 0px; margin-bottom: 0.5em; border-top: 0px; border-bottom: 1px solid black; }
.reference h2 {
page-break-before: avoid; page-break-after: avoid;
border-bottom: 1px solid black;
margin-top: 2.0em; margin-bottom: 0.5em;
margin-right: 0px; margin-left: -0.6in;
padding: 0px 0px 0.25em 0px;
font-size: 18pt;
font-family: "Palatino LT Std", palatino, "Palatino Linotype", "URW Palladio L", "URWPalladioL", "Minion", "Minion Pro", georgia, times, "lucida grande", geneva, helvetica, arial, sans-serif; font-weight: normal; }
A:link, A:link:hover, A:active, A:active:hover, A:visited, A:visited:hover{ text-decoration: none; color: #000; }
a.printURL:after { content: " (" attr(href) ")"; font-size: 85%; font-style: italic; }
a.NBSP_printURL:after { content: "\00A0(" attr(href) ")"; font-size: 85%; font-style: italic; }
a.printURL_small:after { content: " (" attr(href) ")"; font-size: 66%; font-style: italic; }
a.NBSP_printURL_small:after { content: "\00A0(" attr(href) ")"; font-size: 66%; font-style: italic; }
a.printURL_verySmall:after { content: " (" attr(href) ")"; font-size: 50%; font-style: italic; overflow: hidden; text-overflow: ellipsis; }
a.NBSP_printURL_verySmall:after { content: "\00A0(" attr(href) ")"; font-size: 50%; font-style: italic; overflow: hidden; text-overflow: ellipsis; }
.overview > .masthead { page-break-after: avoid; padding-bottom: 2.5em; margin-top: 0px; margin-bottom: 1.0em; font-family: "Palatino LT Std", palatino, "Palatino Linotype", "URW Palladio L", "URWPalladioL", "Minion", "Minion Pro", georgia, times, "lucida grande", geneva, helvetica, arial, sans-serif; font-weight: normal; }
.printPageBreakBefore { page-break-before: always; }
.printPageBreakAfter { page-break-after: always; }
.titlePage .frameworkabstract { margin-left: -0.6in; font-size: 11pt; }
.titlePage .dateAndRevision { font: bold 10pt Helvetica; margin-top: 5.25in; }
table.standard { -moz-box-shadow: 2px 2px 1px #777; -webkit-box-shadow: 2px 2px 1px #777; }
table.regexSyntax { -moz-box-shadow: 2px 2px 1px #777; -webkit-box-shadow: 2px 2px 1px #777; }
table.slate { -moz-box-shadow: 2px 2px 1px #777; -webkit-box-shadow: 2px 2px 1px #777; }
table.regexList { -moz-box-shadow: 2px 2px 1px #777; -webkit-box-shadow: 2px 2px 1px #777; }
table.standard caption { -moz-box-shadow: 0px 0px 0px #000; -webkit-box-shadow: 0px 0px 0px #000; }
table.regexSyntax caption { -moz-box-shadow: 0px 0px 0px #000; -webkit-box-shadow: 0px 0px 0px #000; }
table.slate caption { -moz-box-shadow: 0px 0px 0px #000; -webkit-box-shadow: 0px 0px 0px #000; }
table.regexList caption { -moz-box-shadow: 0px 0px 0px #000; -webkit-box-shadow: 0px 0px 0px #000; }
.table.standard { background-color: white; }
.box .metainfo { font: 6.5pt "Palatino LT Std", palatino, "Palatino Linotype", "URW Palladio L", "URWPalladioL", "Minion", "Minion Pro", georgia, times, "lucida grande", geneva, helvetica, arial, sans-serif; border-color: #999; background-color: white; }
.box .metainfo.printShadow { -moz-box-shadow: 1px 1px 2px #bbb; -webkit-box-shadow: 1px 1px 2px #bbb; }
.box .highlight { padding-top: 1pt; padding-bottom: 1pt; }
.code, .regex, .regex-textual, .regex-def, .header_file, .file, .build-phase, .xcode-group, .xcode-target, .window-name, .box.sourcecode, .box.shell, .shellFont, .guide .sourceLicense pre, .signature, .block > .section.constants > .constant > .identifier, .dialog-option, .context-menu, .block.typedef > .section.code, .block.typedef > .section.type, .quotedText, .unicodeCharName, .block > .section.declaration, .regexMatch, .unicodeProperty, .consoleText, .section.parameters li > .name { font-size: 0.8334em !important; font-family: "Letter Gothic Std", "Letter Gothic", "LetterGothic", "Courier New", monaco, courier, monospace; }
.regex-def, .cppTunables .cpp_flag, .cppTunables .code { font-size: 8pt !important; }
table.regexSyntax.unicodeProperties .consoleText { font-size: 8pt !important; }
.box .metainfo.noPrintBorder { margin-right: 0px; padding: 0px; border: 0px none transparent; background-color: white; -webkit-border-radius: 0px; -moz-border-radius: 0px; }
.box .metainfo > .continues.above > .info { font-family: "Palatino LT Std", palatino, "Palatino Linotype", "URW Palladio L", "URWPalladioL", "Minion", "Minion Pro", georgia, times, "lucida grande", geneva, helvetica, arial, sans-serif !important; }
.regex b { font: bold 1.1000em "Letter Gothic Std", "Letter Gothic", "LetterGothic", "Courier New", monaco, courier, monospace; }
.syntax > .specification { font-family: "Letter Gothic Std", "Letter Gothic", "LetterGothic", "Courier New", monaco, courier, monospace; }
.section.parameters ul { margin: 0px 0px 0px 0px; }
.argument { font-family: "Letter Gothic Std", "Letter Gothic", "LetterGothic", "Courier New", monaco, courier, monospace; font-style: italic; font-size:0.85em; }
.signature .argument { font-size: 1.02em; }
/*.signature .argument { font-size: 8pt; }*/
.signature .selector, .signature .function { font-weight: bold; }
.code .cpp_flag { font-weight: bold; font-size: 95%; }
div.table.regexSyntax, div.table.regexSyntax > .row, div.table.regexSyntax > .row > .cell { display: block; }
div.table.regexSyntax > .row > .cell { width: 100%; }
.metacharacters + .operators { margin-top: 1em; }
.syntax > .specification .parameter, .tasks .header .code, .method .name, .typedef .name { font-family: "Palatino LT Std", palatino, "Palatino Linotype", "URW Palladio L", "URWPalladioL", "Minion", "Minion Pro", georgia, times, "lucida grande", geneva, helvetica, arial, sans-serif; font-weight: normal; }
.constants > .constant > .identifier, .code, .header_file, .file, .unicodeCharName { color: #000; }
.box.tip { -webkit-border-radius: 0.85em; -moz-border-radius: 0.85em; }
.box.sourcecode, .box.shell { margin-left: 0px; margin-right: 0px; padding: 0px; border: 1px solid white; background-color: white; -webkit-border-radius: 0px; }
.box.sourcecode .comment { font-family: 'Lucida Sans Typewriter Std'; font-size: 8pt !important; }
table, .box, .figure, .seealso, li, p, div.box.sourcecode { page-break-inside: avoid; }
.regexSyntax .metacharacters table { page-break-before: avoid !important; page-break-inside: avoid !important; }
.tasks > .header { font-size: 1.2500em; }
.method > .name, .function > .name, .macro > .name, .typedef > .name { font-size: 1.2em; font-family: "Palatino LT Std", palatino, "Palatino Linotype", "URW Palladio L", "URWPalladioL", "Minion", "Minion Pro", georgia, times, "lucida grande", geneva, helvetica, arial, sans-serif; font-weight: bold; }
.method, .function, .macro, .block.typedef { margin: 1.5em 0px 0px 0px; padding: 1.5em 0px 0px 0px; }
.box.classSpecs { margin-left: 0px; font-size: 1.1em; }
.box.hasRows { border: 0px none transparent; }
.box.hasRows > .row > .cell { display: table-cell; padding: 1ex; border: 0px none transparent; }
.box.hasRows > .row.lastRow > .cell { border: 0px none transparent !important; }
.box.hasRows.zebraRows > .row.odd { background-color: white; }
.box.hasRows > .row.headerRow { background-color: white; }
.box.hasRows > .row.headerRow .cell { padding-top: 0.3334em; padding-bottom: 0.3334em; }
.syntax > .specification .optional { -moz-box-shadow: 2px 3px 5px #888; -webkit-box-shadow: 2px 3px 5px #888; }
.box.important, .box.note, .box.warning, .box.tip, .box.small, .box.quote { -moz-box-shadow: 2px 2px 1px #777; -webkit-box-shadow: 2px 2px 1px #777; }
.box.caution { -moz-box-shadow: 0px 0px 5px #000; -webkit-box-shadow: 0px 0px 5px #000; }
ul.overview { margin-left: 4.0ex; }
.printNegLeft { font-size: 0.5em; }
.constants > .constant > .text { margin-left: 0.4in; }
.sourceLicense { page-break-inside: avoid; }
.printImg { width: 100%; }
.guide .seealso > .header { margin-top: 2.0em; margin-bottom: 0.5em; font-size: 1.5834em; }
}
</style>
<script type="text/javascript">
var prefs = {
current: {
asNSString: true,
escapeCopiedRegexes: true,
escapeUnicodeCharacters: true,
smartEscape: true,
turnIntoString: true,
unicodeInNSStrings: false,
useC99: false
},
defaults: {
asNSString: true,
escapeCopiedRegexes: true,
escapeUnicodeCharacters: true,
smartEscape: true,
turnIntoString: true
}
};
var ui = {
e: {
cbe: { }
},
pref: {
map: {},
rows: [],
controls: [],
warnings: []
},
state: {
interactiveInput: {
updatePending: false
},
copyToClipboardHUD: {
ending: false,
displayed: false,
timeout: null
},
regexTable: {
readyForTransitions: false,
timeout: null,
last: "-",
lastOptions: prefs
}
}
};
var cache = {
firstByteMark: [0x00, 0x00, 0xC0, 0xE0, 0xF0, 0xF8, 0xFC],
calculateStringDiff: { },
currentPrefs: ui.state.regexTable.lastOptions,
diffString: { },
escapedString: { },
escapeCharacterEntities: { },
ui: {
prefs: {
prefWarningsHeight: 0
}
}
};
var utils = {
browserInfo: {
matches: {
webKit: navigator.userAgent.match(/AppleWebKit\/(\d+(?:\.\d+)?)\b/),
safari: navigator.userAgent.match(/AppleWebKit\/(\d+(?:\.\d+)?)\b.*?\sVersion\/((\d+(?:\.\d+)?)\b([^ ]*))\s.*?\bSafari\/([\d\.]+)\b/),
xcode: navigator.userAgent.match(/AppleWebKit\/(\d+(?:\.\d+)?)\b.*?\bXcode\/([\d\.]+)\b/),
opera: navigator.userAgent.match(/^Opera\/(\d+(?:\.\d+)?)/),
mozilla: navigator.userAgent.match(/^Mozilla\/(\d+(?:\.\d+)?)\b.*\srv:(\d+(?:\.\d+)?)/),
firefox: navigator.userAgent.match(/^Mozilla.*\s\w+\/(\d+)(?:\.(.*))?$/)
}
},
regex: {
lt: /\u003c/g,
gt: /\003e/g,
amp: /\0026/g,
newline: /\n/g,
quote: /\"/g,
specialChar: /(\\{1,1}?)([^\"\\])/g,
specialCharPlusNewlines: /(?!\\\\[un])([^\\]\\(?=[\"n]))([^\"n])/g,
escapedChar: /\\(?![0-7]{3}|[xX][a-fA-F0-9]+|u[a-fA-F0-9]{4}|U[a-fA-F0-9]{8})/g,
escapedCharPlusNewline: /\\(?![nvfr]|[0-7]{3}|[xX][a-fA-F0-9]+|u[a-fA-F0-9]{4}|U[a-fA-F0-9]{8})/g,
escapedHex: /\\?\\(?:[xX][a-fA-F0-9]+|u[a-fA-F0-9]{4}|U[a-fA-F0-9]{8})/g,
escapedOctal: /\\[0-7]{3}/g,
px: /(.*)px$/,
hidden: /\bhidden\b/,
doNotEscape: /\bdoNotEscape\b/,
marginAndOpacityTransition: /\bmarginAndOpacityTransition\b/
}
};
if((utils.browserInfo.webKit = (utils.browserInfo.matches.webKit !== null) ? true : false) === true) { utils.browserInfo.webKitVersion = utils.browserInfo.matches.webKit[1]; }
if((utils.browserInfo.safari = (utils.browserInfo.matches.safari !== null) ? true : false) === true) { utils.browserInfo.safariVersion = utils.browserInfo.matches.safari[3]; }
if((utils.browserInfo.opera = (utils.browserInfo.matches.opera !== null) ? true : false) === true) { utils.browserInfo.operaVersion = utils.browserInfo.matches.opera[1]; }
if((utils.browserInfo.mozilla = (utils.browserInfo.matches.mozilla !== null) ? true : false) === true) { utils.browserInfo.mozillaVersion = utils.browserInfo.matches.mozilla[1]; utils.browserInfo.geckoVersion = utils.browserInfo.matches.mozilla[2]; utils.browserInfo.firefoxVersion = utils.browserInfo.matches.firefox[1]; }
if((utils.browserInfo.xcode = (utils.browserInfo.matches.xcode !== null) ? true : false) === true) {
utils.browserInfo.xcodeVersion = utils.browserInfo.matches.xcode[2];
var wkver = utils.browserInfo.matches.xcode[1], safver = 1;
utils.browserInfo.safari = true;
if(wkver >= 419 && wkver < 525) { safver = 2; }
else if(wkver >= 525 && wkver < 528) { safver = 3; }
else if(wkver >= 528) { safver = 4; }
utils.browserInfo.safariVersion = safver;
}
function getWidthInfo(element) {
var style = document.defaultView.getComputedStyle(element, null);
var info = {
paddingLeft: style.paddingLeft, paddingRight: style.paddingRight, width: style.width,
borderLeftWidth: style.borderLeftWidth, borderRightWidth: style.borderRightWidth
};
for(var prop in info) {
if(info[prop] !== undefined) {
if(info[prop] === "auto") { info[prop] = 0; } else { var pxMatch = info[prop].match(utils.regex.px); if(pxMatch !== null) { info[prop] = Number(pxMatch[1]); } }
}
}
info.elementOuterWidth = (info.borderLeftWidth + info.borderRightWidth + info.paddingLeft + info.paddingRight);
info.elementFullWidth = (info.elementOuterWidth + info.width);
return(info);
}
function escapeToCharacterEntities(string) {
if(cache.escapeCharacterEntities[string] === undefined) { cache.escapeCharacterEntities[string] = string.replace(utils.regex.amp, "&").replace(utils.regex.lt, "<").replace(utils.regex.gt, ">"); }
return(cache.escapeCharacterEntities[string]);
}
function calculateStringDiff(A, B) {
if((cache.calculateStringDiff[A] !== undefined) && (cache.calculateStringDiff[A][B] !== undefined)) { return(cache.calculateStringDiff[A][B]); }
var i = 0, j = 0, L = [], D = {A: A, B: B, length: 0, same: [], del: [], ins: []};
for(var x = -1; x < A.length + 3; x++) { L[x] = []; for (var y = -1; y < B.length + 3; y++) { L[x][y] = 0; } }
for (i = A.length; i >= 0; i--) {
for (j = B.length; j >= 0; j--) {
if(A[i] === B[j]) { L[i][j] = 1 + L[i+1][j+1]; } else { L[i][j] = ((L[i+1][j] > L[i][j+1]) ? L[i+1][j] : L[i][j+1]); }
}
}
i = j = 0;
while((i <= A.length) && (j <= B.length)) {
if((i === A.length) && (j === B.length)) { break; }
if(A[i] === B[j]) { D.same[D.length] = A[i]; D.length++; i++; j++; }
else if(L[i+1][j] >= L[i][j+1]) { D.del[D.length] = A[i]; D.length++; i++; }
else { D.ins[D.length] = B[j]; D.length++; j++; }
}
if(cache.calculateStringDiff[A] === undefined) { cache.calculateStringDiff[A] = {}; }
if(cache.calculateStringDiff[A][B] === undefined) { cache.calculateStringDiff[A][B] = D; }
return(D);
}
function diffString(A, B) {
if((cache.diffString[A] !== undefined) && (cache.diffString[A][B] !== undefined)) { return(cache.diffString[A][B]); }
var D = calculateStringDiff(A, B), DS = "", lastFrom = 0;
for(var x = 0; x < D.length; x++) {
if(D.same[x] !== undefined) { DS += ((lastFrom === 0) ? "" : (lastFrom === 1) ? "\u003c/ins\u003e" : "\u003c/del\u003e") + escapeToCharacterEntities(D.same[x]); lastFrom = 0; }
else if(D.ins[x] !== undefined) { DS += ((lastFrom === 0) ? "\u003cins\u003e" : (lastFrom === 1) ? "" : "\u003c/del\u003e\u003cins\u003e") + escapeToCharacterEntities(D.ins[x]); lastFrom = 1; }
else if(D.del[x] !== undefined) { DS += ((lastFrom === 0) ? "\u003cdel\u003e" : (lastFrom === 1) ? "\u003c/ins\u003e\u003cdel\u003e" : "") + escapeToCharacterEntities(D.del[x]); lastFrom = 2; }
}
DS += ((lastFrom === 0) ? "" : (lastFrom === 1) ? "\u003c/ins\u003e" : "\u003c/del\u003e");
if(cache.diffString[A] === undefined) { cache.diffString[A] = {}; }
if(cache.diffString[A][B] === undefined) { cache.diffString[A][B] = DS; }
return(DS);
}
function isSimpleCString(cstr) {
var escapedArray, i;
for(i = 0; i < cstr.length; i++) { if(cstr.charCodeAt(i) > 127) { return(false); } }
if((escapedArray = cstr.match(utils.regex.escapedOctal)) !== null) { for(i = 0; i < escapedArray.length; i++) { if(parseInt(escapedArray[i].substr(1), 8) >= 0x80) { return(false); } } }
if((escapedArray = cstr.match(utils.regex.escapedHex)) !== null) { for(i = 0; i < escapedArray.length; i++) { if(escapedArray[i].search(/\\\\/) !== -1) { continue; } if(parseInt(escapedArray[i].substr(2), 16) >= 0x80) { return(false); } } }
return(true);
}
function stringToEscapedString(string, options) {
if(options.escapeCopiedRegexes !== true) { return(string); }
if((cache.escapedString[string] !== undefined) && (cache.escapedString[string][options.key] !== undefined)) { return(cache.escapedString[string][options.key]); }
var es = "", s = string;
if(options.smartEscape === false) { s = s.replace(/\\/g, "\\\\"); }
else {
s = s.replace(/(\\?)(\\(?:x[a-fA-F0-9]{2}|u([a-fA-F0-9]{4})))/g, function(m0, m1, m2, m3) { return(((m1 === "\\") ? m0 : eval("\"" + m2 + "\""))); });
s = s.replace(/(\\?)(\\(?:U([a-fA-F0-9]{8})))/g, function(m0, m1, m2, m3) {
if(m1 === "\\") { return(m0); }
var u32 = parseInt(m3, 16);
if(u32 > 0xffff) {
var ul = "\\u" + ("0000" + (0xd7c0 + (u32 >> 10)).toString(16)).substr(-4,4);
var uh = "\\u" + ("0000" + (0xdc00 + (u32 & 0x3ff)).toString(16)).substr(-4,4);
return(eval("\"" + ul + uh + "\""));
} else { return(eval("\"\\u" + (("0000" + u32.toString(16)).substr(-4,4)) + "\"")); }
});
s = s.replace(/(.?)(\\)(?!\\)(u[0-9a-fA-F]{4}|.?)/g, function(m0, m1, m2, m3) { return(((m3.search(/n|u[0-9a-fA-F]{4}/) !== -1) ? m0 : ((((m1 === "\\")) ? "\\\\" : m1) + "\\\\" + m3))) });
}
s = s.replace(utils.regex.quote, "\\\""); // "
for(var i = 0; i < s.length; i++) {
var u32 = s.charCodeAt(i), u16h = 0, u16l = 0;
// If u32 is the start of a UTF16 surrogate pair, get the high surrogate and convert to a UTF32 codepoint.
if(((u16h = u32) >= 0xd800) && (u16h <= 0xdbff)) { u32 = ((u16h - 0xd7c0) << 10) | ((u16l = s.charCodeAt(++i)) - 0xdc00); }
if((u32 >= 0x20) && (u32 < 0x7f)) { es += String.fromCharCode(u32); } // Use printable 7 bit ascii directly.
else {
switch(u32) { // Pretty escape some characters.
case 10: es += (options.smartEscape ? "\\n" : "\\\\n"); break;
//case 11: es += (options.smartEscape ? "\\v" : "\\\\v"); break;
//case 12: es += (options.smartEscape ? "\\f" : "\\\\f"); break;
//case 13: es += (options.smartEscape ? "\\r" : "\\\\r"); break;
default:
if(options.escapeUnicodeCharacters === false) {
es += String.fromCharCode(u16h);
if(u16l !== 0) { es += String.fromCharCode(u16l); }
} else {
if(options.smartEscape === false) {
if(u32 < 0x10000) { es += "\\\\u" + ("0000" + u32.toString(16)).substr(-4,4); }
else { es += "\\\\U" + ("00000000" + u32.toString(16)).substr(-8,8); }
} else {
// C99 6.4.3.2, only 0024 '$', 0040 '@', or 0060 '`' can be specified via \u when < \u00a0.
if((options.useC99 === true) && (u32 >= 0xa0)) {
if(u32 < 0x10000) { es += "\\u" + ("0000" + u32.toString(16)).substr(-4,4); }
else { es += "\\U" + ("00000000" + u32.toString(16)).substr(-8,8); }
} else {
var x, ch = u32, utf8 = [], bytes = (ch < 0x80) ? 1 : (ch < 0x800) ? 2 : (ch < 0x10000) ? 3 : 4;
for(x = bytes; x > 0; x--) { utf8.unshift((ch | ((x > 1) ? 0x80 : cache.firstByteMark[bytes])) & ((x > 1) ? 0xBF : 0xFF)); ch >>= 6; }
for(x = 0; x < utf8.length; x++) { es += "\\"+("000" + utf8[x].toString(8)).substr(-3,3); }
}
}
}
}
}
}