mirror of
https://github.com/php/web-php.git
synced 2026-03-23 23:02:13 +01:00
This patch adds some missing newlines, trims some multiple redundant final newlines into a single one, and trims few redundant leading newlines. According to POSIX, a line is a sequence of zero or more non-'<newline>' characters plus a terminating '<newline>' character. [1] Files should normally have at least one final newline character. C89 [2] and later standards [3] mention a final newline: "A source file that is not empty shall end in a new-line character, which shall not be immediately preceded by a backslash character." Although it is not mandatory for all files to have a final newline fixed, a more consistent and homogeneous approach brings less of commit differences issues and a better development experience in certain text editors and IDEs. [1] http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap03.html#tag_03_206 [2] https://port70.net/~nsz/c/c89/c89-draft.html#2.1.1.2 [3] https://port70.net/~nsz/c/c99/n1256.html#5.1.1.2
516 lines
8.0 KiB
PHP
516 lines
8.0 KiB
PHP
<?php
|
|
$TOC = array (
|
|
0 =>
|
|
array (
|
|
0 => 'function.addcslashes.php',
|
|
1 => 'addcslashes',
|
|
),
|
|
1 =>
|
|
array (
|
|
0 => 'function.addslashes.php',
|
|
1 => 'addslashes',
|
|
),
|
|
2 =>
|
|
array (
|
|
0 => 'function.bin2hex.php',
|
|
1 => 'bin2hex',
|
|
),
|
|
3 =>
|
|
array (
|
|
0 => 'function.chop.php',
|
|
1 => 'chop',
|
|
),
|
|
4 =>
|
|
array (
|
|
0 => 'function.chr.php',
|
|
1 => 'chr',
|
|
),
|
|
5 =>
|
|
array (
|
|
0 => 'function.chunk-split.php',
|
|
1 => 'chunk_split',
|
|
),
|
|
6 =>
|
|
array (
|
|
0 => 'function.convert-cyr-string.php',
|
|
1 => 'convert_cyr_string',
|
|
),
|
|
7 =>
|
|
array (
|
|
0 => 'function.convert-uudecode.php',
|
|
1 => 'convert_uudecode',
|
|
),
|
|
8 =>
|
|
array (
|
|
0 => 'function.convert-uuencode.php',
|
|
1 => 'convert_uuencode',
|
|
),
|
|
9 =>
|
|
array (
|
|
0 => 'function.count-chars.php',
|
|
1 => 'count_chars',
|
|
),
|
|
10 =>
|
|
array (
|
|
0 => 'function.crc32.php',
|
|
1 => 'crc32',
|
|
),
|
|
11 =>
|
|
array (
|
|
0 => 'function.crypt.php',
|
|
1 => 'crypt',
|
|
),
|
|
12 =>
|
|
array (
|
|
0 => 'function.echo.php',
|
|
1 => 'echo',
|
|
),
|
|
13 =>
|
|
array (
|
|
0 => 'function.explode.php',
|
|
1 => 'explode',
|
|
),
|
|
14 =>
|
|
array (
|
|
0 => 'function.fprintf.php',
|
|
1 => 'fprintf',
|
|
),
|
|
15 =>
|
|
array (
|
|
0 => 'function.get-html-translation-table.php',
|
|
1 => 'get_html_translation_table',
|
|
),
|
|
16 =>
|
|
array (
|
|
0 => 'function.hebrev.php',
|
|
1 => 'hebrev',
|
|
),
|
|
17 =>
|
|
array (
|
|
0 => 'function.hebrevc.php',
|
|
1 => 'hebrevc',
|
|
),
|
|
18 =>
|
|
array (
|
|
0 => 'function.hex2bin.php',
|
|
1 => 'hex2bin',
|
|
),
|
|
19 =>
|
|
array (
|
|
0 => 'function.html-entity-decode.php',
|
|
1 => 'html_entity_decode',
|
|
),
|
|
20 =>
|
|
array (
|
|
0 => 'function.htmlentities.php',
|
|
1 => 'htmlentities',
|
|
),
|
|
21 =>
|
|
array (
|
|
0 => 'function.htmlspecialchars-decode.php',
|
|
1 => 'htmlspecialchars_decode',
|
|
),
|
|
22 =>
|
|
array (
|
|
0 => 'function.htmlspecialchars.php',
|
|
1 => 'htmlspecialchars',
|
|
),
|
|
23 =>
|
|
array (
|
|
0 => 'function.implode.php',
|
|
1 => 'implode',
|
|
),
|
|
24 =>
|
|
array (
|
|
0 => 'function.join.php',
|
|
1 => 'join',
|
|
),
|
|
25 =>
|
|
array (
|
|
0 => 'function.lcfirst.php',
|
|
1 => 'lcfirst',
|
|
),
|
|
26 =>
|
|
array (
|
|
0 => 'function.levenshtein.php',
|
|
1 => 'levenshtein',
|
|
),
|
|
27 =>
|
|
array (
|
|
0 => 'function.localeconv.php',
|
|
1 => 'localeconv',
|
|
),
|
|
28 =>
|
|
array (
|
|
0 => 'function.ltrim.php',
|
|
1 => 'ltrim',
|
|
),
|
|
29 =>
|
|
array (
|
|
0 => 'function.md5-file.php',
|
|
1 => 'md5_file',
|
|
),
|
|
30 =>
|
|
array (
|
|
0 => 'function.md5.php',
|
|
1 => 'md5',
|
|
),
|
|
31 =>
|
|
array (
|
|
0 => 'function.metaphone.php',
|
|
1 => 'metaphone',
|
|
),
|
|
32 =>
|
|
array (
|
|
0 => 'function.money-format.php',
|
|
1 => 'money_format',
|
|
),
|
|
33 =>
|
|
array (
|
|
0 => 'function.nl-langinfo.php',
|
|
1 => 'nl_langinfo',
|
|
),
|
|
34 =>
|
|
array (
|
|
0 => 'function.nl2br.php',
|
|
1 => 'nl2br',
|
|
),
|
|
35 =>
|
|
array (
|
|
0 => 'function.number-format.php',
|
|
1 => 'number_format',
|
|
),
|
|
36 =>
|
|
array (
|
|
0 => 'function.ord.php',
|
|
1 => 'ord',
|
|
),
|
|
37 =>
|
|
array (
|
|
0 => 'function.parse-str.php',
|
|
1 => 'parse_str',
|
|
),
|
|
38 =>
|
|
array (
|
|
0 => 'function.print.php',
|
|
1 => 'print',
|
|
),
|
|
39 =>
|
|
array (
|
|
0 => 'function.printf.php',
|
|
1 => 'printf',
|
|
),
|
|
40 =>
|
|
array (
|
|
0 => 'function.quoted-printable-decode.php',
|
|
1 => 'quoted_printable_decode',
|
|
),
|
|
41 =>
|
|
array (
|
|
0 => 'function.quoted-printable-encode.php',
|
|
1 => 'quoted_printable_encode',
|
|
),
|
|
42 =>
|
|
array (
|
|
0 => 'function.quotemeta.php',
|
|
1 => 'quotemeta',
|
|
),
|
|
43 =>
|
|
array (
|
|
0 => 'function.rtrim.php',
|
|
1 => 'rtrim',
|
|
),
|
|
44 =>
|
|
array (
|
|
0 => 'function.setlocale.php',
|
|
1 => 'setlocale',
|
|
),
|
|
45 =>
|
|
array (
|
|
0 => 'function.sha1-file.php',
|
|
1 => 'sha1_file',
|
|
),
|
|
46 =>
|
|
array (
|
|
0 => 'function.sha1.php',
|
|
1 => 'sha1',
|
|
),
|
|
47 =>
|
|
array (
|
|
0 => 'function.similar-text.php',
|
|
1 => 'similar_text',
|
|
),
|
|
48 =>
|
|
array (
|
|
0 => 'function.soundex.php',
|
|
1 => 'soundex',
|
|
),
|
|
49 =>
|
|
array (
|
|
0 => 'function.sprintf.php',
|
|
1 => 'sprintf',
|
|
),
|
|
50 =>
|
|
array (
|
|
0 => 'function.sscanf.php',
|
|
1 => 'sscanf',
|
|
),
|
|
51 =>
|
|
array (
|
|
0 => 'function.str-getcsv.php',
|
|
1 => 'str_getcsv',
|
|
),
|
|
52 =>
|
|
array (
|
|
0 => 'function.str-ireplace.php',
|
|
1 => 'str_ireplace',
|
|
),
|
|
53 =>
|
|
array (
|
|
0 => 'function.str-pad.php',
|
|
1 => 'str_pad',
|
|
),
|
|
54 =>
|
|
array (
|
|
0 => 'function.str-repeat.php',
|
|
1 => 'str_repeat',
|
|
),
|
|
55 =>
|
|
array (
|
|
0 => 'function.str-replace.php',
|
|
1 => 'str_replace',
|
|
),
|
|
56 =>
|
|
array (
|
|
0 => 'function.str-rot13.php',
|
|
1 => 'str_rot13',
|
|
),
|
|
57 =>
|
|
array (
|
|
0 => 'function.str-shuffle.php',
|
|
1 => 'str_shuffle',
|
|
),
|
|
58 =>
|
|
array (
|
|
0 => 'function.str-split.php',
|
|
1 => 'str_split',
|
|
),
|
|
59 =>
|
|
array (
|
|
0 => 'function.str-word-count.php',
|
|
1 => 'str_word_count',
|
|
),
|
|
60 =>
|
|
array (
|
|
0 => 'function.strcasecmp.php',
|
|
1 => 'strcasecmp',
|
|
),
|
|
61 =>
|
|
array (
|
|
0 => 'function.strchr.php',
|
|
1 => 'strchr',
|
|
),
|
|
62 =>
|
|
array (
|
|
0 => 'function.strcmp.php',
|
|
1 => 'strcmp',
|
|
),
|
|
63 =>
|
|
array (
|
|
0 => 'function.strcoll.php',
|
|
1 => 'strcoll',
|
|
),
|
|
64 =>
|
|
array (
|
|
0 => 'function.strcspn.php',
|
|
1 => 'strcspn',
|
|
),
|
|
65 =>
|
|
array (
|
|
0 => 'function.strip-tags.php',
|
|
1 => 'strip_tags',
|
|
),
|
|
66 =>
|
|
array (
|
|
0 => 'function.stripcslashes.php',
|
|
1 => 'stripcslashes',
|
|
),
|
|
67 =>
|
|
array (
|
|
0 => 'function.stripos.php',
|
|
1 => 'stripos',
|
|
),
|
|
68 =>
|
|
array (
|
|
0 => 'function.stripslashes.php',
|
|
1 => 'stripslashes',
|
|
),
|
|
69 =>
|
|
array (
|
|
0 => 'function.stristr.php',
|
|
1 => 'stristr',
|
|
),
|
|
70 =>
|
|
array (
|
|
0 => 'function.strlen.php',
|
|
1 => 'strlen',
|
|
),
|
|
71 =>
|
|
array (
|
|
0 => 'function.strnatcasecmp.php',
|
|
1 => 'strnatcasecmp',
|
|
),
|
|
72 =>
|
|
array (
|
|
0 => 'function.strnatcmp.php',
|
|
1 => 'strnatcmp',
|
|
),
|
|
73 =>
|
|
array (
|
|
0 => 'function.strncasecmp.php',
|
|
1 => 'strncasecmp',
|
|
),
|
|
74 =>
|
|
array (
|
|
0 => 'function.strncmp.php',
|
|
1 => 'strncmp',
|
|
),
|
|
75 =>
|
|
array (
|
|
0 => 'function.strpbrk.php',
|
|
1 => 'strpbrk',
|
|
),
|
|
76 =>
|
|
array (
|
|
0 => 'function.strpos.php',
|
|
1 => 'strpos',
|
|
),
|
|
77 =>
|
|
array (
|
|
0 => 'function.strrchr.php',
|
|
1 => 'strrchr',
|
|
),
|
|
78 =>
|
|
array (
|
|
0 => 'function.strrev.php',
|
|
1 => 'strrev',
|
|
),
|
|
79 =>
|
|
array (
|
|
0 => 'function.strripos.php',
|
|
1 => 'strripos',
|
|
),
|
|
80 =>
|
|
array (
|
|
0 => 'function.strrpos.php',
|
|
1 => 'strrpos',
|
|
),
|
|
81 =>
|
|
array (
|
|
0 => 'function.strspn.php',
|
|
1 => 'strspn',
|
|
),
|
|
82 =>
|
|
array (
|
|
0 => 'function.strstr.php',
|
|
1 => 'strstr',
|
|
),
|
|
83 =>
|
|
array (
|
|
0 => 'function.strtok.php',
|
|
1 => 'strtok',
|
|
),
|
|
84 =>
|
|
array (
|
|
0 => 'function.strtolower.php',
|
|
1 => 'strtolower',
|
|
),
|
|
85 =>
|
|
array (
|
|
0 => 'function.strtoupper.php',
|
|
1 => 'strtoupper',
|
|
),
|
|
86 =>
|
|
array (
|
|
0 => 'function.strtr.php',
|
|
1 => 'strtr',
|
|
),
|
|
87 =>
|
|
array (
|
|
0 => 'function.substr-compare.php',
|
|
1 => 'substr_compare',
|
|
),
|
|
88 =>
|
|
array (
|
|
0 => 'function.substr-count.php',
|
|
1 => 'substr_count',
|
|
),
|
|
89 =>
|
|
array (
|
|
0 => 'function.substr-replace.php',
|
|
1 => 'substr_replace',
|
|
),
|
|
90 =>
|
|
array (
|
|
0 => 'function.substr.php',
|
|
1 => 'substr',
|
|
),
|
|
91 =>
|
|
array (
|
|
0 => 'function.trim.php',
|
|
1 => 'trim',
|
|
),
|
|
92 =>
|
|
array (
|
|
0 => 'function.ucfirst.php',
|
|
1 => 'ucfirst',
|
|
),
|
|
93 =>
|
|
array (
|
|
0 => 'function.ucwords.php',
|
|
1 => 'ucwords',
|
|
),
|
|
94 =>
|
|
array (
|
|
0 => 'function.vfprintf.php',
|
|
1 => 'vfprintf',
|
|
),
|
|
95 =>
|
|
array (
|
|
0 => 'function.vprintf.php',
|
|
1 => 'vprintf',
|
|
),
|
|
96 =>
|
|
array (
|
|
0 => 'function.vsprintf.php',
|
|
1 => 'vsprintf',
|
|
),
|
|
97 =>
|
|
array (
|
|
0 => 'function.wordwrap.php',
|
|
1 => 'wordwrap',
|
|
),
|
|
);
|
|
$PARENTS = array (
|
|
0 =>
|
|
array (
|
|
0 => 'book.strings.php',
|
|
1 => 'Strings',
|
|
),
|
|
1 =>
|
|
array (
|
|
0 => 'refs.basic.text.php',
|
|
1 => 'Text Processing',
|
|
),
|
|
2 =>
|
|
array (
|
|
0 => 'funcref.php',
|
|
1 => 'Function Reference',
|
|
),
|
|
3 =>
|
|
array (
|
|
0 => 'index.php',
|
|
1 => 'PHP Manual',
|
|
),
|
|
);
|