lib/rfeedparser/better_sgmlparser.rb
def parse_pi(i)
    rawdata = @rawdata 
    if rawdata[i...i+2] != '<?' 
      error("unexpected call to parse_pi()")
    end
    ni,match = index_match(rawdata,Piclose,i+2)
    return nil unless match
    j = ni
    handle_pi(rawdata[i+2...j])
    j = (j + match[0].length)
    return j-i
  end
# Internal -- parse processing instr, return length or -1 if not terminated
- parse processing instr, return length or -1 if not terminated
- parse processing instr return length or - 1 if not terminated
def parse_pi(i)
    rawdata = @rawdata 
    if rawdata[i...i+2] != '<?' 
      error("unexpected call to parse_pi()")
    end
    ni,match = index_match(rawdata,Piclose,i+2)
    return nil unless match
    j = ni
    handle_pi(rawdata[i+2...j])
    j = (j + match[0].length)
    return j-i
  end
def parse_pi ( i ) rawdata = @rawdata if rawdata [ i ... i + 2 ] != '<?' error ( "unexpected call to parse_pi()" ) end ni , match = index_match ( rawdata , Piclose , i + 2 ) return nil unless match j = ni handle_pi ( rawdata [ i + 2 ... j ] ) j = ( j + match [ 0 ] . length ) return j - i end
Internal -- parse processing instr, return length or -1 if not terminated
Internal -- parse processing instr return length or - 1 if not terminated
i