POMO_StringReader::seekto() WordPress Method
The POMO_StringReader::seekto() method allows you to seek to a specific position in a string. This is useful for reading large strings, or for reading strings from a stream.
POMO_StringReader::seekto( int $pos ) #
Contents
Parameters
- $pos
(int)(Required)
Return
(int)
Source
File: wp-includes/pomo/streams.php
public function seekto( $pos ) { $this->_pos = $pos; if ( $this->strlen( $this->_str ) < $this->_pos ) { $this->_pos = $this->strlen( $this->_str ); } return $this->_pos; }
Expand full source codeCollapse full source codeView on TracView on GitHub