english/libraries/joomla/utilities/string.php
/**
	 * UTF-8 aware alternative to strspn
	 * Find length of initial segment matching mask
	 *
	 * @param   string   $str     The haystack
	 * @param   string   $mask    The mask
	 * @param   integer  $start   Start optional
	 * @param   integer  $length  Length optional
	 *
	 * @return  integer
	 *
	 * @see     http://www.php.net/strspn
	 * @since   11.1
	*/
UTF-8 aware alternative to strspn
Find length of initial segment matching mask

@param   string   $str     The haystack
@param   string   $mask    The mask
@param   integer  $start   Start optional
@param   integer  $length  Length optional

@return  integer


UTF - 8 aware alternative to strspn Find length of initial segment matching mask @param string $str The haystack @param string $mask The mask @param integer $start Start optional @param integer $length Length optional @return integer
public static function strspn($str, $mask, $start = NULL, $length = NULL)
	{
		jimport('phputf8.strspn');
		if ( $start === NULL && $length === NULL ) {
			return utf8_strspn($str, $mask);
		} else if ( $length === NULL ) {
			return utf8_strspn($str, $mask, $start);
		} else {
			return utf8_strspn($str, $mask, $start, $length);
		}
	}
public static function strspn ( $ str , $ mask , $ start = NULL , $ length = NULL ) { jimport ( 'phputf8.strspn' ) ; if ( $ start === NULL && $ length === NULL ) { return utf8_strspn ( $ str , $ mask ) ; } else if ( $ length === NULL ) { return utf8_strspn ( $ str , $ mask , $ start ) ; } else { return utf8_strspn ( $ str , $ mask , $ start , $ length ) ; } }
UTF-8 aware alternative to strspn
 Find length of initial segment matching mask
UTF - 8 aware alternative to strspn Find length of initial segment matching mask