Difference between revisions of "Libzim"

Jump to navigation Jump to search
Line 104: Line 104:


== Methods ==
== Methods ==
;findx(char ns, std::string& title)
=== zim::file::const_iterator = zim::file::findx(char ns, const std::string& title) ===
returns an iterator to the article named ''title'' in namespace ''ns''
returns an iterator to the article named ''title'' in namespace ''ns''


;findx(std::string& url)
=== zim::file::const_iterator = zim::file::findx(const std::string& url) ===
returns an iterator to the article with the (non-encoded) URL ''url''
returns an iterator to the article with the (non-encoded) URL ''url''


;zim::urldecode(std::string& url)
=== std::string = zim::urldecode(const std::string& url) ===
:returns an URL-decoded string for use in findx()
returns an URL-decoded string for use in findx()