diff --git a/reference/intl/functions/grapheme-extract.xml b/reference/intl/functions/grapheme-extract.xml new file mode 100644 index 0000000000..2ea877063b --- /dev/null +++ b/reference/intl/functions/grapheme-extract.xml @@ -0,0 +1,109 @@ + + + + + grapheme_extract + Function to extract a sequence of default grapheme clusters from a text buffer, which must be encoded in UTF-8. + + + &reftitle.description; + Procedural style + + stringgrapheme_extract + stringhaystack + intsize + intstart + + + Function to extract a sequence of default grapheme clusters from a text buffer, which must be encoded in UTF-8. + + + + + &reftitle.parameters; + + + + haystack + + + string to search + + + + + size + + + maximum number of grapheme clusters to return + + + + + start + + + starting position in $haystack in bytes + + + + + + + + + + &reftitle.returnvalues; + + A string starting at offset $start containing no more than $size grapheme clusters and ending on a default grapheme cluster boundary. + + + + + &reftitle.examples; + + <function>grapheme_extract</function> example + + +]]> + + + &example.outputs; + + + + + + + &reftitle.seealso; + +TODO + + + + + diff --git a/reference/intl/functions/grapheme-extractb.xml b/reference/intl/functions/grapheme-extractb.xml new file mode 100644 index 0000000000..7a90edcf54 --- /dev/null +++ b/reference/intl/functions/grapheme-extractb.xml @@ -0,0 +1,109 @@ + + + + + grapheme_extractb + Function to extract a sequence of default grapheme clusters from a text buffer, which must be encoded in UTF-8. + + + &reftitle.description; + Procedural style + + stringgrapheme_extractb + stringhaystack + intbsize + intstart + + + Function to extract a sequence of default grapheme clusters from a text buffer, which must be encoded in UTF-8. + + + + + &reftitle.parameters; + + + + haystack + + + string to search + + + + + bsize + + + maximum number of bytes to return + + + + + start + + + starting position in $haystack in bytes + + + + + + + + + + &reftitle.returnvalues; + + A string starting at offset $start containing no more than $bsize bytes and ending on a default grapheme cluster boundary. + + + + + &reftitle.examples; + + <function>grapheme_extractb</function> example + + +]]> + + + &example.outputs; + + + + + + + &reftitle.seealso; + +TODO + + + + + diff --git a/reference/intl/functions/grapheme-stripos.xml b/reference/intl/functions/grapheme-stripos.xml new file mode 100644 index 0000000000..cdcce4cc3f --- /dev/null +++ b/reference/intl/functions/grapheme-stripos.xml @@ -0,0 +1,111 @@ + + + + + grapheme_stripos + Find position (in grapheme units) of first occurrence of a case-insensitive string + + + &reftitle.description; + Procedural style + + intgrapheme_stripos + stringhaystack + stringneedle + intoffset + + + Find position (in grapheme units) of first occurrence of a case-insensitive string + which character in haystack to start searching. The position + returned is still relative to the beginning of haystack. + + + + + &reftitle.parameters; + + + + haystack + + + The string to look in + + + + + needle + + + The string to look for + + + + + offset + + + The optional offset parameter allows you to specify + + + + + + + + + + &reftitle.returnvalues; + + Returns the position as an integer. If needle is not found, grapheme_stripos() will return boolean FALSE. + + + + + &reftitle.examples; + + <function>grapheme_stripos</function> example + + +]]> + + + &example.outputs; + + + + + + + &reftitle.seealso; + +TODO + + + + + diff --git a/reference/intl/functions/grapheme-stristr.xml b/reference/intl/functions/grapheme-stristr.xml new file mode 100644 index 0000000000..4b15b3b562 --- /dev/null +++ b/reference/intl/functions/grapheme-stristr.xml @@ -0,0 +1,110 @@ + + + + + grapheme_stristr + Returns part of haystack string from the first occurrence of case-insensitive needle to the end of haystack. + + + &reftitle.description; + Procedural style + + stringgrapheme_stristr + stringhaystack + stringneedle + booleanbefore_needle + + + Returns part of haystack string from the first occurrence of case-insensitive needle to the end of haystack. + haystack before the first occurence of the needle. + + + + + &reftitle.parameters; + + + + haystack + + + The input string. + + + + + needle + + + The string to look for. + + + + + before_needle + + + If TRUE (the default is FALSE), grapheme_strstr() returns the part of the + + + + + + + + + + &reftitle.returnvalues; + + Returns the portion of string, or FALSE if needle is not found. + + + + + &reftitle.examples; + + <function>grapheme_stristr</function> example + + +]]> + + + &example.outputs; + + + + + + + &reftitle.seealso; + +TODO + + + + + diff --git a/reference/intl/functions/grapheme-strlen.xml b/reference/intl/functions/grapheme-strlen.xml new file mode 100644 index 0000000000..96b5c87d56 --- /dev/null +++ b/reference/intl/functions/grapheme-strlen.xml @@ -0,0 +1,91 @@ + + + + + grapheme_strlen + Get string length in grapheme units + + + &reftitle.description; + Procedural style + + intgrapheme_strlen + stringinput + + + Get string length in grapheme units + + + + + &reftitle.parameters; + + + + input + + + The string being measured for length. + + + + + + + + + + &reftitle.returnvalues; + + The length of the string on success, and 0 if the string is empty. + + + + + &reftitle.examples; + + <function>grapheme_strlen</function> example + + +]]> + + + &example.outputs; + + + + + + + &reftitle.seealso; + +TODO + + + + + diff --git a/reference/intl/functions/grapheme-strpos.xml b/reference/intl/functions/grapheme-strpos.xml new file mode 100644 index 0000000000..4ef02eb287 --- /dev/null +++ b/reference/intl/functions/grapheme-strpos.xml @@ -0,0 +1,111 @@ + + + + + grapheme_strpos + Find position (in grapheme units) of first occurrence of a string + + + &reftitle.description; + Procedural style + + intgrapheme_strpos + stringhaystack + stringneedle + intoffset + + + Find position (in grapheme units) of first occurrence of a string + which character in haystack to start searching. The position + returned is still relative to the beginning of haystack. + + + + + &reftitle.parameters; + + + + haystack + + + The string to look in + + + + + needle + + + The string to look for + + + + + offset + + + The optional offset parameter allows you to specify + + + + + + + + + + &reftitle.returnvalues; + + Returns the position as an integer. If needle is not found, strpos() will return boolean FALSE. + + + + + &reftitle.examples; + + <function>grapheme_strpos</function> example + + +]]> + + + &example.outputs; + + + + + + + &reftitle.seealso; + +TODO + + + + + diff --git a/reference/intl/functions/grapheme-strripos.xml b/reference/intl/functions/grapheme-strripos.xml new file mode 100644 index 0000000000..546f69f42d --- /dev/null +++ b/reference/intl/functions/grapheme-strripos.xml @@ -0,0 +1,111 @@ + + + + + grapheme_strripos + Find position (in grapheme units) of last occurrence of a case-insensitive string + + + &reftitle.description; + Procedural style + + intgrapheme_strripos + stringhaystack + stringneedle + intoffset + + + Find position (in grapheme units) of last occurrence of a case-insensitive string + which character in haystack to start searching. The position + returned is still relative to the beginning of haystack. + + + + + &reftitle.parameters; + + + + haystack + + + The string to look in + + + + + needle + + + The string to look for + + + + + offset + + + The optional offset parameter allows you to specify + + + + + + + + + + &reftitle.returnvalues; + + Returns the position as an integer. If needle is not found, grapheme_strripos() will return boolean FALSE. + + + + + &reftitle.examples; + + <function>grapheme_strripos</function> example + + +]]> + + + &example.outputs; + + + + + + + &reftitle.seealso; + +TODO + + + + + diff --git a/reference/intl/functions/grapheme-strrpos.xml b/reference/intl/functions/grapheme-strrpos.xml new file mode 100644 index 0000000000..3c0a69abf9 --- /dev/null +++ b/reference/intl/functions/grapheme-strrpos.xml @@ -0,0 +1,111 @@ + + + + + grapheme_strrpos + Find position (in grapheme units) of last occurrence of a string + + + &reftitle.description; + Procedural style + + intgrapheme_strrpos + stringhaystack + stringneedle + intoffset + + + Find position (in grapheme units) of last occurrence of a string + which character in haystack to start searching. The position + returned is still relative to the beginning of haystack. + + + + + &reftitle.parameters; + + + + haystack + + + The string to look in + + + + + needle + + + The string to look for + + + + + offset + + + The optional offset parameter allows you to specify + + + + + + + + + + &reftitle.returnvalues; + + Returns the position as an integer. If needle is not found, grapheme_strrpos() will return boolean FALSE. + + + + + &reftitle.examples; + + <function>grapheme_strrpos</function> example + + +]]> + + + &example.outputs; + + + + + + + &reftitle.seealso; + +TODO + + + + + diff --git a/reference/intl/functions/grapheme-strstr.xml b/reference/intl/functions/grapheme-strstr.xml new file mode 100644 index 0000000000..c859d489f3 --- /dev/null +++ b/reference/intl/functions/grapheme-strstr.xml @@ -0,0 +1,110 @@ + + + + + grapheme_strstr + Returns part of haystack string from the first occurrence of needle to the end of haystack. + + + &reftitle.description; + Procedural style + + stringgrapheme_strstr + stringhaystack + stringneedle + booleanbefore_needle + + + Returns part of haystack string from the first occurrence of needle to the end of haystack. + haystack before the first occurence of the needle. + + + + + &reftitle.parameters; + + + + haystack + + + The input string. + + + + + needle + + + The string to look for. + + + + + before_needle + + + If TRUE (the default is FALSE), grapheme_strstr() returns the part of the + + + + + + + + + + &reftitle.returnvalues; + + Returns the portion of string, or FALSE if needle is not found. + + + + + &reftitle.examples; + + <function>grapheme_strstr</function> example + + +]]> + + + &example.outputs; + + + + + + + &reftitle.seealso; + +TODO + + + + + diff --git a/reference/intl/functions/grapheme-substr.xml b/reference/intl/functions/grapheme-substr.xml new file mode 100644 index 0000000000..82b22b96c7 --- /dev/null +++ b/reference/intl/functions/grapheme-substr.xml @@ -0,0 +1,118 @@ + + + + + grapheme_substr + Return part of a string + + + &reftitle.description; + Procedural style + + intgrapheme_substr + stringstring + intstart + intlength + + + Return part of a string + start'th position in string, counting from zero. If start is negative, + the returned string will start at the start'th character from the + end of string. + at most length characters beginning from start (depending on the + length of string). If string is less than or equal to start characters + long, FALSE will be returned. If length is given and is negative, then + that many characters will be omitted from the end of string (after the + start position has been calculated when a start is negative). If start + denotes a position beyond this truncation, an empty string will be returned. + + + + + &reftitle.parameters; + + + + string + + + The input string. + + + + + start + + + If start is non-negative, the returned string will start at the + + + + + length + + + If length is given and is positive, the string returned will contain + + + + + + + + + + &reftitle.returnvalues; + + Returns the extracted part of string. + + + + + &reftitle.examples; + + <function>grapheme_substr</function> example + + +]]> + + + &example.outputs; + + + + + + + &reftitle.seealso; + +TODO + + + + +