Lines Matching refs:encoding
689 $encoding = null;
697 $encoding = $cliValues['encoding'];
701 …$this->_tokens = self::tokenizeString($contents, $tokenizer, $this->eolChar, $tabWidth, $encoding);
1421 * @param string $encoding The charset of the sniffed file.
1426 … static function tokenizeString($string, $tokenizer, $eolChar='\n', $tabWidth=null, $encoding=null) argument
1447 if ($encoding === null) {
1448 $encoding = PHP_CODESNIFFER_ENCODING;
1451 self::_createPositionMap($tokens, $tokenizer, $eolChar, $encoding, $tabWidth);
1475 * @param string $encoding The charset of the sniffed file.
1481 private static function _createPositionMap(&$tokens, $tokenizer, $eolChar, $encoding, $tabWidth) argument
1491 if ($encoding !== 'iso-8859-1' && function_exists('iconv_strlen') === true) {
1526 $length = @iconv_strlen($tokens[$i]['content'], $encoding);
1560 $contentLength = @iconv_strlen($content, $encoding);