Lines Matching refs:eolChar
132 public $eolChar = ''; variable in PHP_CodeSniffer_File
453 $this->eolChar = self::detectLineEndings($this->_file, $contents);
467 $eolPos = strpos($contents, $this->eolChar);
469 $contents = substr($contents, ($eolPos + strlen($this->eolChar)));
701 …$this->_tokens = self::tokenizeString($contents, $tokenizer, $this->eolChar, $tabWidth, $encoding);
722 $contents = str_replace($this->eolChar, '', $contents);
775 $eolChar = substr($firstLine, -1);
776 if ($eolChar === "\n") {
779 $eolChar = "\r\n";
781 } else if ($eolChar !== "\r") {
785 $eolChar = "\n";
790 $eolChar = "\n";
792 $eolChar = $matches[0];
796 return $eolChar;
1419 * @param string $eolChar The EOL character to use for splitting strings.
1426 …public static function tokenizeString($string, $tokenizer, $eolChar='\n', $tabWidth=null, $encodin… argument
1434 $numLines = (substr_count($string, $eolChar) + 1);
1441 $tokens = $tokenizer->tokenizeString($string, $eolChar);
1451 self::_createPositionMap($tokens, $tokenizer, $eolChar, $encoding, $tabWidth);
1452 self::_createTokenMap($tokens, $tokenizer, $eolChar);
1453 self::_createParenthesisNestingMap($tokens, $tokenizer, $eolChar);
1454 self::_createScopeMap($tokens, $tokenizer, $eolChar);
1456 self::_createLevelMap($tokens, $tokenizer, $eolChar);
1459 $tokenizer->processAdditional($tokens, $eolChar);
1474 * @param string $eolChar The EOL character to use for splitting strings.
1481 private static function _createPositionMap(&$tokens, $tokenizer, $eolChar, $encoding, $tabWidth) argument
1485 $eolLen = (strlen($eolChar) * -1);
1608 && strpos($tokens[$i]['content'], $eolChar) !== false
1655 * @param string $eolChar The EOL character to use for splitting strings.
1659 private static function _createTokenMap(&$tokens, $tokenizer, $eolChar) argument
1789 * @param string $eolChar The EOL character to use for splitting strings.
1796 $eolChar argument
1834 * @param string $eolChar The EOL character to use for splitting strings.
1839 private static function _createScopeMap(&$tokens, $tokenizer, $eolChar) argument
1867 $eolChar,
1886 * @param string $eolChar The EOL character to use for splitting strings.
1898 $eolChar, argument
2031 $eolChar,
2128 $eolChar,
2236 $eolChar,
2420 * @param string $eolChar The EOL character to use for splitting strings.
2424 private static function _createLevelMap(&$tokens, $tokenizer, $eolChar) argument