original_string: function euc_substr($str, $start, $charset, $len = NULL) {
  		$byte_start = $this->euc_char2byte_pos($str, $start, $charset);
  		if ($byte_start === FALSE) {
  			return FALSE;
  		} // $start outside string length
  
  		$str = substr($str, $byte_start);
  
  		if ($len != NULL) {
  			$byte_end = $this->euc_char2byte_pos($str, $len, $charset);
  			if ($byte_end === FALSE) // $len outside actual string length
  			{
  				return $str;
  			}
  			else
  			{
  				return substr($str, 0, $byte_end);
  			}
  		}
  		else	{
  			return $str;
  		}
  	}
code: function euc_substr($str, $start, $charset, $len = NULL) {
  		$byte_start = $this->euc_char2byte_pos($str, $start, $charset);
  		if ($byte_start === FALSE) {
  			return FALSE;
  		} // $start outside string length
  
  		$str = substr($str, $byte_start);
  
  		if ($len != NULL) {
  			$byte_end = $this->euc_char2byte_pos($str, $len, $charset);
  			if ($byte_end === FALSE) // $len outside actual string length
  			{
  				return $str;
  			}
  			else
  			{
  				return substr($str, 0, $byte_end);
  			}
  		}
  		else	{
  			return $str;
  		}
  	}
code_tokens: function euc_substr ( $ str , $ start , $ charset , $ len = NULL ) { $ byte_start = $ this -> euc_char2byte_pos ( $ str , $ start , $ charset ) ; if ( $ byte_start === FALSE ) { return FALSE ; } // $start outside string length $ str = substr ( $ str , $ byte_start ) ; if ( $ len != NULL ) { $ byte_end = $ this -> euc_char2byte_pos ( $ str , $ len , $ charset ) ; if ( $ byte_end === FALSE ) // $len outside actual string length { return $ str ; } else { return substr ( $ str , 0 , $ byte_end ) ; } } else { return $ str ; } }
docstring: Returns a part of a string in the EUC charset family.
  
  @param	string		EUC multibyte character string
  @param	integer		start position (character position)
  @param	string		the charset
  @param	integer		length (in characters)
  @return	string		the substring
  @author	Martin Kutschker <martin.t.kutschker@blackbox.net>
docstring_tokens: Returns a part of a string in the EUC charset family .