original_string: public function getChar()
      {
          $char = fgetc($this->stream);
          if (!$this->_utf8_char) {
              return $char;
          }
  
          $c = ord($char);
          if ($c < 0x80) {
              return $char;
          }
  
          if ($c < 0xe0) {
              $n = 1;
          } elseif ($c < 0xf0) {
              $n = 2;
          } elseif ($c < 0xf8) {
              $n = 3;
          } else {
              throw new Horde_Stream_Exception('ERROR');
          }
  
          for ($i = 0; $i < $n; ++$i) {
              if (($c = fgetc($this->stream)) === false) {
                  throw new Horde_Stream_Exception('ERROR');
              }
              $char .= $c;
          }
  
          return $char;
      }
code: public function getChar()
      {
          $char = fgetc($this->stream);
          if (!$this->_utf8_char) {
              return $char;
          }
  
          $c = ord($char);
          if ($c < 0x80) {
              return $char;
          }
  
          if ($c < 0xe0) {
              $n = 1;
          } elseif ($c < 0xf0) {
              $n = 2;
          } elseif ($c < 0xf8) {
              $n = 3;
          } else {
              throw new Horde_Stream_Exception('ERROR');
          }
  
          for ($i = 0; $i < $n; ++$i) {
              if (($c = fgetc($this->stream)) === false) {
                  throw new Horde_Stream_Exception('ERROR');
              }
              $char .= $c;
          }
  
          return $char;
      }
code_tokens: public function getChar ( ) { $ char = fgetc ( $ this -> stream ) ; if ( ! $ this -> _utf8_char ) { return $ char ; } $ c = ord ( $ char ) ; if ( $ c < 0x80 ) { return $ char ; } if ( $ c < 0xe0 ) { $ n = 1 ; } elseif ( $ c < 0xf0 ) { $ n = 2 ; } elseif ( $ c < 0xf8 ) { $ n = 3 ; } else { throw new Horde_Stream_Exception ( 'ERROR' ) ; } for ( $ i = 0 ; $ i < $ n ; ++ $ i ) { if ( ( $ c = fgetc ( $ this -> stream ) ) === false ) { throw new Horde_Stream_Exception ( 'ERROR' ) ; } $ char .= $ c ; } return $ char ; }
docstring: Return a character from the string.
  
  @since 1.4.0
  
  @return string  Character (single byte, or UTF-8 character if
  $utf8_char is true).
docstring_tokens: Return a character from the string .