src/core/SearchTopic.h
SearchTopic [Module]
Description
The SearchTopic module enables searching for posts containing specific topics
(case-insensitive).
Functions
std::vector<PostMatch> searchPostsByTopic(const std::string& xmlContent, const std::string& topic)
Searches the XML content for posts tagged with the specified topic.
Parameters
- xmlContent: The raw XML string.
- topic: The topic to search for.
Vector of matching posts.
void printMatchesTopic(const std::vector<PostMatch>& matches)
Prints the topic search results to the console.