diff --git a/language-snippets.ent b/language-snippets.ent index 03de8e75fe8e..ebd46210f9a6 100644 --- a/language-snippets.ent +++ b/language-snippets.ent @@ -3774,6 +3774,50 @@ local: { '> + + + + " " (ASCII 32 (0x20)), an ordinary space. + + + + + "\t" (ASCII 9 (0x09)), a tab. + + + + + "\n" (ASCII 10 (0x0A)), a new line (line feed). + + + + + "\r" (ASCII 13 (0x0D)), a carriage return. + + + + + "\0" (ASCII 0 (0x00)), the NUL-byte. + + + + + "\v" (ASCII 11 (0x0B)), a vertical tab. + + + +'> + + + Optionally, the stripped characters can also be specified using + the characters parameter. + Simply list all characters that need to be stripped. + With .. it is possible to specify an incrementing range of characters. + +'> + An optional argument defining the encoding used when converting characters. diff --git a/reference/mbstring/functions/mb-lcfirst.xml b/reference/mbstring/functions/mb-lcfirst.xml new file mode 100644 index 000000000000..c2704d028acd --- /dev/null +++ b/reference/mbstring/functions/mb-lcfirst.xml @@ -0,0 +1,81 @@ + + + + mb_lcfirst + Make a string's first character lowercase + + + + &reftitle.description; + + stringmb_lcfirst + stringstring + stringencoding&null; + + + Performs a multi-byte safe lcfirst operation, + and returns a string with the first character of + string lowercased if that character is + an ASCII character in the range "A" (0x41) to + "Z" (0x5a). + + + + + &reftitle.parameters; + + + string + + + The input string. + + + + + encoding + + + The string encoding. + + + + + + + + &reftitle.returnvalues; + + Returns the resulting string. + + + + + &reftitle.seealso; + + mb_ucfirst + lcfirst + + + + + diff --git a/reference/mbstring/functions/mb-ltrim.xml b/reference/mbstring/functions/mb-ltrim.xml new file mode 100644 index 000000000000..d47a334d7f1b --- /dev/null +++ b/reference/mbstring/functions/mb-ltrim.xml @@ -0,0 +1,92 @@ + + + + mb_ltrim + Strip whitespace (or other characters) from the beginning of a string + + + + &reftitle.description; + + stringmb_ltrim + stringstring + stringcharacters&null; + stringencoding&null; + + + Performs a multi-byte safe ltrim operation. + Strip whitespace (or other characters) from the beginning of a string. + + + Without the second parameter, + mb_ltrim will strip these characters: + + &strings.stripped.characters; + + + + &reftitle.parameters; + + + string + + + The input string. + + + + + characters + + &strings.parameter.characters.optional; + + + + encoding + + + The string encoding. + + + + + + + + &reftitle.returnvalues; + + This function returns a string with whitespace stripped from the + beginning of string. + + + + + &reftitle.seealso; + + mb_trim + mb_rtrim + ltrim + + + + + diff --git a/reference/mbstring/functions/mb-rtrim.xml b/reference/mbstring/functions/mb-rtrim.xml new file mode 100644 index 000000000000..b7074459c0a6 --- /dev/null +++ b/reference/mbstring/functions/mb-rtrim.xml @@ -0,0 +1,92 @@ + + + + mb_rtrim + Strip whitespace (or other characters) from the end of a string + + + + &reftitle.description; + + stringmb_rtrim + stringstring + stringcharacters&null; + stringencoding&null; + + + Performs a multi-byte safe rtrim operation, + and returns a string with whitespace (or other characters) stripped from the + end of string. + + + Without the second parameter, + rtrim will strip these characters: + + &strings.stripped.characters; + + + + &reftitle.parameters; + + + string + + + The input string. + + + + + characters + + &strings.parameter.characters.optional; + + + + encoding + + + The string encoding. + + + + + + + + &reftitle.returnvalues; + + Returns the modified string. + + + + + &reftitle.seealso; + + mb_trim + mb_ltrim + rtrim + + + + + diff --git a/reference/mbstring/functions/mb-trim.xml b/reference/mbstring/functions/mb-trim.xml new file mode 100644 index 000000000000..4ed73d2f819c --- /dev/null +++ b/reference/mbstring/functions/mb-trim.xml @@ -0,0 +1,89 @@ + + + + mb_trim + Strip whitespace (or other characters) from the beginning and end of a string + + + + &reftitle.description; + + stringmb_trim + stringstring + stringcharacters&null; + stringencoding&null; + + + Performs a multi-byte safe trim operation, + and returns a string with whitespace stripped from the + beginning and end of string. + Without the second parameter, + trim will strip these characters: + + &strings.stripped.characters; + + + + &reftitle.parameters; + + + string + + + The string that will be trimmed. + + + + + characters + + &strings.parameter.characters.optional; + + + + encoding + + + The string encoding. + + + + + + + + &reftitle.returnvalues; + + The trimmed string. + + + + + &reftitle.seealso; + + mb_ltrim + mb_rtrim + trim + + + + diff --git a/reference/mbstring/functions/mb-ucfirst.xml b/reference/mbstring/functions/mb-ucfirst.xml new file mode 100644 index 000000000000..57c589e45732 --- /dev/null +++ b/reference/mbstring/functions/mb-ucfirst.xml @@ -0,0 +1,82 @@ + + + + mb_ucfirst + Make a string's first character uppercase + + + + &reftitle.description; + + stringmb_ucfirst + stringstring + stringencoding&null; + + + Performs a multi-byte safe ucfirst operation, + and returns a string with the first character of + string capitalized, if that character is + an ASCII character in the range from "a" (0x61) to + "z" (0x7a). + + + + + &reftitle.parameters; + + + string + + + The input string. + + + + + encoding + + + The string encoding. + + + + + + + + &reftitle.returnvalues; + + Returns the resulting string. + + + + + &reftitle.seealso; + + mb_lcfirst + mb_convert_case + ucfirst + + + + + diff --git a/reference/mbstring/versions.xml b/reference/mbstring/versions.xml index a2d150b58e38..1b26ffafef28 100644 --- a/reference/mbstring/versions.xml +++ b/reference/mbstring/versions.xml @@ -35,13 +35,16 @@ + + + @@ -64,6 +67,8 @@ + + - - - - " " (ASCII 32 - (0x20)), an ordinary space. - - - - - "\t" (ASCII 9 - (0x09)), a tab. - - - - - "\n" (ASCII 10 - (0x0A)), a new line (line feed). - - + + + string - "\r" (ASCII 13 - (0x0D)), a carriage return. + The input string. + + + characters - - "\0" (ASCII 0 - (0x00)), the NUL-byte. - - - - - "\v" (ASCII 11 - (0x0B)), a vertical tab. - + &strings.parameter.characters.optional; - - + + + + + + &reftitle.returnvalues; + + This function returns a string with whitespace stripped from the + beginning of string. + @@ -149,12 +106,10 @@ string(15) "Example string &reftitle.seealso; - - - trim - rtrim - - + + trim + rtrim + diff --git a/reference/strings/functions/rtrim.xml b/reference/strings/functions/rtrim.xml index 97b34b5bd8c3..75d16b01ac40 100644 --- a/reference/strings/functions/rtrim.xml +++ b/reference/strings/functions/rtrim.xml @@ -13,87 +13,42 @@ stringstring stringcharacters" \n\r\t\v\x00" - + This function returns a string with whitespace (or other characters) stripped from the end of string. - - + + Without the second parameter, rtrim will strip these characters: - - - - - " " (ASCII 32 - (0x20)), an ordinary space. - - - - - "\t" (ASCII 9 - (0x09)), a tab. - - - - - "\n" (ASCII 10 - (0x0A)), a new line (line feed). - - - - - "\r" (ASCII 13 - (0x0D)), a carriage return. - - + + &strings.stripped.characters; + + + + &reftitle.parameters; + + + string - "\0" (ASCII 0 - (0x00)), the NULL-byte. + The input string. + + + characters - - "\v" (ASCII 11 - (0x0B)), a vertical tab. - + &strings.parameter.characters.optional; - - - - - - &reftitle.parameters; - - - - string - - - The input string. - - - - - characters - - - You can also specify the characters you want to strip, by means - of the characters parameter. - Simply list all characters that you want to be stripped. With - .. you can specify a range of characters. - - - - - + + &reftitle.returnvalues; - + Returns the modified string. - + @@ -149,12 +104,10 @@ string(15) " Example string" &reftitle.seealso; - - - trim - ltrim - - + + trim + ltrim + diff --git a/reference/strings/functions/trim.xml b/reference/strings/functions/trim.xml index e666c247f480..7813d77128b8 100644 --- a/reference/strings/functions/trim.xml +++ b/reference/strings/functions/trim.xml @@ -14,85 +14,40 @@ stringstring stringcharacters" \n\r\t\v\x00" - + This function returns a string with whitespace stripped from the beginning and end of string. Without the second parameter, trim will strip these characters: - - - - - " " (ASCII 32 - (0x20)), an ordinary space. - - - - - "\t" (ASCII 9 - (0x09)), a tab. - - - - - "\n" (ASCII 10 - (0x0A)), a new line (line feed). - - - - - "\r" (ASCII 13 - (0x0D)), a carriage return. - - - - - "\0" (ASCII 0 - (0x00)), the NUL-byte. - - - - - "\v" (ASCII 11 - (0x0B)), a vertical tab. - - - - + + &strings.stripped.characters; &reftitle.parameters; - - - - string - - - The string that will be trimmed. - - - - - characters - - - Optionally, the stripped characters can also be specified using - the characters parameter. - Simply list all characters that need to be stripped. With - .. it is possible to specify an incrementing range of characters. - - - - - + + + string + + + The string that will be trimmed. + + + + + characters + + &strings.parameter.characters.optional; + + + &reftitle.returnvalues; - + The trimmed string. - + @@ -210,13 +165,11 @@ array(3) { &reftitle.seealso; - - - ltrim - rtrim - str_replace - - + + ltrim + rtrim + str_replace +