lib/hermeneutics/escape.rb
def lexer str
        while str do
          str =~ /(\s+)|\B=\?(\S*?)\?([QB])\?(\S*?)\?=\B/i
          if $1 then
            yield :plain, $` unless $`.empty?
            yield :space, $&
          elsif $2 then
            yield :plain, $` unless $`.empty?
            d = unmask $2, $3, $4
            yield :decoded, d
          else
            yield :plain, str
          end
          str = $'.notempty?
        end
      end
# The standard header content encoding has a word break limit of 64.
#
The standard header content encoding has a word break limit of 64.
The standard header content encoding has a word break limit of 64 .
def lexer str
        while str do
          str =~ /(\s+)|\B=\?(\S*?)\?([QB])\?(\S*?)\?=\B/i
          if $1 then
            yield :plain, $` unless $`.empty?
            yield :space, $&
          elsif $2 then
            yield :plain, $` unless $`.empty?
            d = unmask $2, $3, $4
            yield :decoded, d
          else
            yield :plain, str
          end
          str = $'.notempty?
        end
      end
def lexer str while str do str =~ / ( \s +)| \B = \? ( \S *?) \? ([QB]) \? ( \S *?) \? = \B /i if $1 then yield :plain , $` unless $` . empty? yield :space , $& elsif $2 then yield :plain , $` unless $` . empty? d = unmask $2 , $3 , $4 yield :decoded , d else yield :plain , str end str = $' . notempty? end end
The standard header content encoding has a word break limit of 64.
The standard header content encoding has a word break limit of 64 .
str