Sha256: e2a49bb23dba0a5ca02d4b4874d9d3aaf0b8c1ecfa21168aa441236a30531726

Contents?: true

Size: 322 Bytes

Versions: 69

Compression:

Stored size: 322 Bytes

Contents

module Nokogiri
  module HTML
    class EntityLookup

      def get(key) # :nodoc:
        ptr = LibXML.htmlEntityLookup(key.to_s)
        return nil if ptr.null?

        cstruct = LibXML::HtmlEntityDesc.new(ptr)
        EntityDescription.new cstruct[:value], cstruct[:name], cstruct[:desc]
      end

    end
  end
end

Version data entries

69 entries across 69 versions & 10 rubygems

Version Path
revo-nokogiri-1.4.0.20100202165440-java lib/nokogiri/ffi/html/entity_lookup.rb
akamai_bookmarklet-0.1.1 vendor/gems/ruby/1.8/gems/nokogiri-1.3.3/lib/nokogiri/ffi/html/entity_lookup.rb
akamai_bookmarklet-0.1.0 vendor/gems/ruby/1.8/gems/nokogiri-1.3.3/lib/nokogiri/ffi/html/entity_lookup.rb
nokogiri-1.4.1-x86-mswin32 lib/nokogiri/ffi/html/entity_lookup.rb
nokogiri-1.4.1-x86-mingw32 lib/nokogiri/ffi/html/entity_lookup.rb
nokogiri-1.4.1-java lib/nokogiri/ffi/html/entity_lookup.rb
nokogiri-1.4.1 lib/nokogiri/ffi/html/entity_lookup.rb
superfeedr-nokogiri-1.4.0.20091116183308 lib/nokogiri/ffi/html/entity_lookup.rb
caring-nokogiri-1.4.1.pre1 lib/nokogiri/ffi/html/entity_lookup.rb
nokogiri-1.4.0-java lib/nokogiri/ffi/html/entity_lookup.rb
nokogiri-1.4.0-x86-mswin32 lib/nokogiri/ffi/html/entity_lookup.rb
nokogiri-1.4.0-x86-mingw32 lib/nokogiri/ffi/html/entity_lookup.rb
nokogiri-1.4.0 lib/nokogiri/ffi/html/entity_lookup.rb
nokogiri-1.3.3-x86-mswin32 lib/nokogiri/ffi/html/entity_lookup.rb
nokogiri-1.3.3-x86-mingw32 lib/nokogiri/ffi/html/entity_lookup.rb
nokogiri-1.3.3-java lib/nokogiri/ffi/html/entity_lookup.rb
nokogiri-1.3.2-x86-mswin32 lib/nokogiri/ffi/html/entity_lookup.rb
nokogiri-1.3.2-x86-mingw32 lib/nokogiri/ffi/html/entity_lookup.rb
nokogiri-1.3.2-java lib/nokogiri/ffi/html/entity_lookup.rb
nokogiri-1.3.0-x86-mingw32 lib/nokogiri/ffi/html/entity_lookup.rb