Lines Matching refs:string

51      * @param string $file
118 * Alternatively a fixed string prefix may be passed in $strip. If the filename matches this prefix,
127 * @param string $outdir the target directory for extracting
128 * @param int|string $strip either the number of path components or a fixed prefix to strip
129 * @param string $exclude a regular expression of files to exclude
130 * @param string $include a regular expression of files to include
268 * @param string $file
292 * @param string $file path to the original file
293 * @param string|FileInfo $fileinfo either the name to us in archive (string) or a FileInfo oject with all meta data, empty to take from original
300 * @param string $file path to the original file
301 * @param string|FileInfo $fileinfo either the name to use in archive (string) or a FileInfo oject with all meta data, empty to take from original
402 * @param string|FileInfo $fileinfo either the name to us in archive (string) or a FileInfo oject with all meta data
403 * @param string $data binary content of the file to add
677 * @param string $header
734 * Convert the given CP437 encoded string to UTF-8
738 * string as is, which is still better than nothing.
742 * @param $string
743 * @return string
745 protected function cpToUtf8($string)
748 return iconv('CP437', 'UTF-8', $string);
750 return mb_convert_encoding($string, 'UTF-8', 'CP850');
752 return $string;
757 * Convert the given UTF-8 encoded string to CP437
761 * @param $string
762 * @return string
764 protected function utf8ToCp($string)
768 $conv = @iconv('UTF-8', 'CP437//IGNORE', $string);
772 // still here? iconv failed to convert the string. Try another method
776 return mb_convert_encoding($string, 'CP850', 'UTF-8');
778 return $string;
786 * @param string $data
807 * @param string $data
903 * @param string $name file name
905 * @return string
950 * @param string $name file name
952 * @return string
990 * @return string