[Bug 305725] Pare URLs with Konversation parser

Martin Klapetek martin.klapetek at gmail.com
Mon Aug 27 10:01:43 BST 2012


https://bugs.kde.org/show_bug.cgi?id=305725

--- Comment #3 from Martin Klapetek <martin.klapetek at gmail.com> ---
There's a lib/url-filter.cpp in text-ui, which has it's own parsing stuff. Some
time ago we adopted Konversation parsing code, which was then moved to
common-internals/KTp/text-parser.cpp. 

Using it is something like:

KTp::TextUrlData urls = KTp::TextParser::instance()->extractUrlData(text);

Then look at the TextUrlData structure and just take the corresponding links.

-- 
You are receiving this mail because:
You are the assignee for the bug.



More information about the Kde-telepathy-bugs mailing list