original_string: function utf8_strpos($haystack, $needle, $offset = 0) {
  		if ($GLOBALS['TYPO3_CONF_VARS']['SYS']['t3lib_cs_utils'] == 'mbstring') {
  			return mb_strpos($haystack, $needle, $offset, 'utf-8');
  		} elseif ($GLOBALS['TYPO3_CONF_VARS']['SYS']['t3lib_cs_utils'] == 'iconv') {
  			return iconv_strpos($haystack, $needle, $offset, 'utf-8');
  		}
  
  		$byte_offset = $this->utf8_char2byte_pos($haystack, $offset);
  		if ($byte_offset === FALSE) {
  			return FALSE;
  		} // offset beyond string length
  
  		$byte_pos = strpos($haystack, $needle, $byte_offset);
  		if ($byte_pos === FALSE) {
  			return FALSE;
  		} // needle not found
  
  		return $this->utf8_byte2char_pos($haystack, $byte_pos);
  	}
code: function utf8_strpos($haystack, $needle, $offset = 0) {
  		if ($GLOBALS['TYPO3_CONF_VARS']['SYS']['t3lib_cs_utils'] == 'mbstring') {
  			return mb_strpos($haystack, $needle, $offset, 'utf-8');
  		} elseif ($GLOBALS['TYPO3_CONF_VARS']['SYS']['t3lib_cs_utils'] == 'iconv') {
  			return iconv_strpos($haystack, $needle, $offset, 'utf-8');
  		}
  
  		$byte_offset = $this->utf8_char2byte_pos($haystack, $offset);
  		if ($byte_offset === FALSE) {
  			return FALSE;
  		} // offset beyond string length
  
  		$byte_pos = strpos($haystack, $needle, $byte_offset);
  		if ($byte_pos === FALSE) {
  			return FALSE;
  		} // needle not found
  
  		return $this->utf8_byte2char_pos($haystack, $byte_pos);
  	}
code_tokens: function utf8_strpos ( $ haystack , $ needle , $ offset = 0 ) { if ( $ GLOBALS [ 'TYPO3_CONF_VARS' ] [ 'SYS' ] [ 't3lib_cs_utils' ] == 'mbstring' ) { return mb_strpos ( $ haystack , $ needle , $ offset , 'utf-8' ) ; } elseif ( $ GLOBALS [ 'TYPO3_CONF_VARS' ] [ 'SYS' ] [ 't3lib_cs_utils' ] == 'iconv' ) { return iconv_strpos ( $ haystack , $ needle , $ offset , 'utf-8' ) ; } $ byte_offset = $ this -> utf8_char2byte_pos ( $ haystack , $ offset ) ; if ( $ byte_offset === FALSE ) { return FALSE ; } // offset beyond string length $ byte_pos = strpos ( $ haystack , $ needle , $ byte_offset ) ; if ( $ byte_pos === FALSE ) { return FALSE ; } // needle not found return $ this -> utf8_byte2char_pos ( $ haystack , $ byte_pos ) ; }
docstring: Find position of first occurrence of a string, both arguments are in UTF-8.
  
  @param	string		UTF-8 string to search in
  @param	string		UTF-8 string to search for
  @param	integer		Positition to start the search
  @return	integer		The character position
  @see strpos()
  @author	Martin Kutschker <martin.t.kutschker@blackbox.net>
docstring_tokens: Find position of first occurrence of a string both arguments are in UTF - 8 .