From 7aff13742ca95f91f8ca50851c9557043e8d3681 Mon Sep 17 00:00:00 2001 From: Moriyoshi Koizumi Date: Tue, 23 Dec 2003 12:21:27 +0000 Subject: [PATCH] - Add documentation for iconv_substr() - More "See Also" entries git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@147249 c90b9560-bf6c-de11-be94-00142212c4b1 --- .../functions/iconv-mime-decode-headers.xml | 6 +- .../iconv/functions/iconv-mime-decode.xml | 6 +- .../iconv/functions/iconv-mime-encode.xml | 3 +- reference/iconv/functions/iconv-strpos.xml | 4 +- reference/iconv/functions/iconv-strrpos.xml | 6 +- reference/iconv/functions/iconv-substr.xml | 58 ++++++++++++++++++- 6 files changed, 72 insertions(+), 11 deletions(-) diff --git a/reference/iconv/functions/iconv-mime-decode-headers.xml b/reference/iconv/functions/iconv-mime-decode-headers.xml index ec27899660..b8f8d981c4 100644 --- a/reference/iconv/functions/iconv-mime-decode-headers.xml +++ b/reference/iconv/functions/iconv-mime-decode-headers.xml @@ -1,5 +1,5 @@ - + iconv_mime_decode_headers @@ -122,7 +122,9 @@ Array See also iconv_mime_decode, - imap_base64_decode, + mb_decode_mimeheader, + imap_mime_header_decode, + imap_base64 and imap_qprint. diff --git a/reference/iconv/functions/iconv-mime-decode.xml b/reference/iconv/functions/iconv-mime-decode.xml index cb16682cee..e13efef247 100644 --- a/reference/iconv/functions/iconv-mime-decode.xml +++ b/reference/iconv/functions/iconv-mime-decode.xml @@ -1,5 +1,5 @@ - + @@ -81,7 +81,9 @@ echo iconv_mime_decode("Subject: =?UTF-8?B?UHLDvGZ1bmcgUHLDvGZ1bmc=?=", See also iconv_mime_decode_headers, - imap_base64_decode, + mb_decode_mimeheader, + imap_mime_header_decode, + imap_base64 and imap_qprint. diff --git a/reference/iconv/functions/iconv-mime-encode.xml b/reference/iconv/functions/iconv-mime-encode.xml index ceb56ac823..f5750a6311 100644 --- a/reference/iconv/functions/iconv-mime-encode.xml +++ b/reference/iconv/functions/iconv-mime-encode.xml @@ -1,5 +1,5 @@ - + @@ -144,6 +144,7 @@ echo iconv_mime_encode("Subject", "Prüfung Prüfung", $preferences); See also imap_base64_encode, + mb_encode_mimeheader and imap_8bit. diff --git a/reference/iconv/functions/iconv-strpos.xml b/reference/iconv/functions/iconv-strpos.xml index 89d8700e9f..43b760f080 100644 --- a/reference/iconv/functions/iconv-strpos.xml +++ b/reference/iconv/functions/iconv-strpos.xml @@ -1,5 +1,5 @@ - + @@ -53,7 +53,7 @@ - See also strpos, iconv_strrpos, + See also strpos, iconv_strrpos and mb_strpos. diff --git a/reference/iconv/functions/iconv-strrpos.xml b/reference/iconv/functions/iconv-strrpos.xml index 68ad4a8cfd..96b0b364cd 100644 --- a/reference/iconv/functions/iconv-strrpos.xml +++ b/reference/iconv/functions/iconv-strrpos.xml @@ -1,5 +1,5 @@ - + @@ -42,6 +42,10 @@ on the basis of the specified character set charset. + + See also strrpos, iconv_strpos + and mb_strrpos. + diff --git a/reference/iconv/functions/iconv-substr.xml b/reference/iconv/functions/iconv-substr.xml index d637173625..d6690e6e71 100644 --- a/reference/iconv/functions/iconv-substr.xml +++ b/reference/iconv/functions/iconv-substr.xml @@ -1,11 +1,11 @@ - + iconv_substr - Returns specified part of a string + Cut out part of a string @@ -18,8 +18,60 @@ stringcharset - &warn.undocumented.func; + + Returns the portion of str specified by + the start and length + parameters. + + + If start is non-negative, + iconv_substr cuts the portion out of + str beginning at start'th + character, counting from zero. + + + + If start is negative, + iconv_substr cuts out the portion beginning + at the position that is the start'th character + away from the end of str. + + + + If length is given and is positive, the return + value will contain at most length characters + of the portion that begins at start + (depending on the length of string). + If str is shorter than start + characters long, &false; will be returned. + + + + If negative length is passed, + iconv_substr cuts the portion out of + str from the start'th + character up to the character length character + away from the end of the string. In case start is + also negative, the start position is calculated beforehand according to + the rule explained above. + + + + Note that offset and length + parameters are always deemed to represent offsets that are + calculated on the basis of the character set determined by + charset, whilst the counterpart + substr always takes these for byte offsets. + If charset is not given, the character set + is determined by the iconv.internal_charset + ini setting. + + + + See also substr, mb_substr + and mb_strcut. +