Beispiel #1
0
func HtmlGetMetaEncoding(d *C.xmlDoc) string {
	s := C.htmlGetMetaEncoding(d)
	return xmlCharToString(s)
}
Beispiel #2
0
func (doc *HtmlDocument) MetaEncoding() string {
	metaEncodingXmlCharPtr := C.htmlGetMetaEncoding((*C.xmlDoc)(doc.DocPtr()))
	return C.GoString((*C.char)(unsafe.Pointer(metaEncodingXmlCharPtr)))
}
Beispiel #3
0
// htmlGetMetaEncoding
func (doc *HTMLDocument) GetMetaEncoding() string {
	cstr := C.htmlGetMetaEncoding(doc.Ptr)
	return C.GoString(C.to_charptr(cstr))
}