Changeset 30663 for trunk/src/wp-includes/pomo/streams.php
- Timestamp:
- 11/30/2014 09:40:53 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/pomo/streams.php
r22349 r30663 59 59 } 60 60 61 61 /** 62 * @param string $string 63 * @param int $start 64 * @param int $length 65 * @return string 66 */ 62 67 function substr($string, $start, $length) { 63 68 if ($this->is_overloaded) { … … 68 73 } 69 74 75 /** 76 * @param string $string 77 * @return int 78 */ 70 79 function strlen($string) { 71 80 if ($this->is_overloaded) { … … 76 85 } 77 86 87 /** 88 * @param string $string 89 * @param int $chunk_size 90 * @return array 91 */ 78 92 function str_split($string, $chunk_size) { 79 93 if (!function_exists('str_split')) { … … 105 119 if ( !class_exists( 'POMO_FileReader' ) ): 106 120 class POMO_FileReader extends POMO_Reader { 121 122 /** 123 * @param string $filename 124 */ 107 125 function POMO_FileReader($filename) { 108 126 parent::POMO_Reader(); … … 110 128 } 111 129 130 /** 131 * @param int $bytes 132 */ 112 133 function read($bytes) { 113 134 return fread($this->_f, $bytes); 114 135 } 115 136 137 /** 138 * @param int $pos 139 * @return boolean 140 */ 116 141 function seekto($pos) { 117 142 if ( -1 == fseek($this->_f, $pos, SEEK_SET)) { … … 158 183 } 159 184 160 185 /** 186 * @param string $bytes 187 * @return string 188 */ 161 189 function read($bytes) { 162 190 $data = $this->substr($this->_str, $this->_pos, $bytes); … … 166 194 } 167 195 196 /** 197 * @param int $pos 198 * @return int 199 */ 168 200 function seekto($pos) { 169 201 $this->_pos = $pos;
Note: See TracChangeset
for help on using the changeset viewer.