芝麻web文件管理V1.00
编辑当前文件:/home/mgatv524/public_html/somares/vendor/gettext/gettext/src/Utils/StringReader.php
str = $str; $this->strlen = strlen($this->str); } /** * Read and returns a part of the string. * * @param int $bytes The number of bytes to read * * @return string */ public function read($bytes) { $data = substr($this->str, $this->pos, $bytes); $this->seekto($this->pos + $bytes); return $data; } /** * Move the cursor to a specific position. * * @param int $pos The amount of bytes to move * * @return int The new position */ public function seekto($pos) { $this->pos = ($this->strlen < $pos) ? $this->strlen : $pos; return $this->pos; } }