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 ) #


Parameters

$pos

(int)(Required)


Top ↑

Return

(int)


Top ↑

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;
		}

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.