|
Revision cc0a570a9262613f7046938be649f27646987cb8, 2.0 KB
(checked in by Antti-Juhani Kaijanaho <antti-juhani@…>, 2 years ago)
|
|
Add support for Atom feeds, and implement a group feed
Partially addresses #8
Signed-off-by: Antti-Juhani Kaijanaho <antti-juhani@…>
|
-
Property mode set to
100644
|
| Line | |
|---|
| 1 | |
|---|
| 2 | |
|---|
| 3 | |
|---|
| 4 | |
|---|
| 5 | |
|---|
| 6 | |
|---|
| 7 | |
|---|
| 8 | |
|---|
| 9 | |
|---|
| 10 | |
|---|
| 11 | |
|---|
| 12 | |
|---|
| 13 | |
|---|
| 14 | |
|---|
| 15 | |
|---|
| 16 | |
|---|
| 17 | |
|---|
| 18 | |
|---|
| 19 | |
|---|
| 20 | #ifndef GUARD_MSG_LEXUTILS_HH |
|---|
| 21 | #define GUARD_MSG_LEXUTILS_HH |
|---|
| 22 | |
|---|
| 23 | #include <list> |
|---|
| 24 | #include <string> |
|---|
| 25 | |
|---|
| 26 | namespace msg |
|---|
| 27 | { |
|---|
| 28 | bool is_atext(char c); |
|---|
| 29 | void skip_cfws(std::string &); |
|---|
| 30 | std::string get_atom(std::string &str, bool decode = true, std::string extra_delimeters=""); |
|---|
| 31 | std::string get_word(std::string &, bool decode = true); |
|---|
| 32 | std::string decode_unstructured(std::string); |
|---|
| 33 | |
|---|
| 34 | |
|---|
| 35 | |
|---|
| 36 | |
|---|
| 37 | std::string get_msgid(std::string &); |
|---|
| 38 | |
|---|
| 39 | std::list<std::string> parse_newsgroups_list(std::string ngline); |
|---|
| 40 | |
|---|
| 41 | std::string make_phrase(std::string, bool encode = true); |
|---|
| 42 | |
|---|
| 43 | std::string encode_unstructured(std::string); |
|---|
| 44 | |
|---|
| 45 | |
|---|
| 46 | |
|---|
| 47 | |
|---|
| 48 | inline bool is_fwsp(char c) |
|---|
| 49 | { |
|---|
| 50 | return c == ' ' || c == '\t' || c == '\r' || c == '\n'; |
|---|
| 51 | } |
|---|
| 52 | |
|---|
| 53 | bool eat_literal(std::string &, std::string literal, |
|---|
| 54 | bool case_sensitive = true); |
|---|
| 55 | } |
|---|
| 56 | |
|---|
| 57 | #endif |
|---|