View Single Post
Old 07-07-2016, 04:31 PM   #38
varlog
actually it is /var/log
varlog ought to be getting tired of karma fortunes by now.varlog ought to be getting tired of karma fortunes by now.varlog ought to be getting tired of karma fortunes by now.varlog ought to be getting tired of karma fortunes by now.varlog ought to be getting tired of karma fortunes by now.varlog ought to be getting tired of karma fortunes by now.varlog ought to be getting tired of karma fortunes by now.varlog ought to be getting tired of karma fortunes by now.varlog ought to be getting tired of karma fortunes by now.varlog ought to be getting tired of karma fortunes by now.varlog ought to be getting tired of karma fortunes by now.
 
varlog's Avatar
 
Posts: 341
Karma: 2994236
Join Date: Sep 2012
Location: usually Europa
Device: prs t1
Quote:
Originally Posted by KevinH View Post
Note, both gumbo and qt have xhtml parsers but these typically build DOM trees which we don't need. For speed reasons, all we need is a serialing parser, that gives you the sequence of text and tags (including tag type) by repeated calls so you can extract the text while keeping track of all open tags and current language.
I'm with you on that.
Was considering QXmlStremreader. Too slow? Too strict?

Quote:
Again, for speed reasons, we need to parse the QString representing the file contents using QChars and pointers. Please don't convert it to utf-8, instead work with QChars and pointers into QChar vectors/arrays to process everything on a const readonly basis.
noted, I'll just have to get the meaning of it .

Quote:
... If you run into trouble, just ask. Happy to help.
counting on this, eventually .
varlog is offline   Reply With Quote