Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit4a0ac35

Browse files
committed
Added JSON parser to example.
1 parent2927002 commit4a0ac35

File tree

12 files changed

+2629
-8
lines changed

12 files changed

+2629
-8
lines changed

‎libs/network/example/atom/atom.cpp‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@ namespace boost {
1414
namespacenetwork {
1515
namespaceatom {
1616
feed::feed(const http::client::response &response) {
17-
std::string response_body =body(response);
17+
std::string response_body =body(response);
1818
rapidxml::xml_document<> doc;
19-
doc.parse<0>(const_cast<char *>(response_body.c_str()));
19+
doc.parse<0>(const_cast<char *>(response_body.c_str()));
2020

2121
rapidxml::xml_node<> *feed = doc.first_node("feed");
2222
if (!feed) {
@@ -51,7 +51,7 @@ feed::feed(const http::client::response &response) {
5151
author_ =atom::author(name->first_node()->value(), email->first_node()->value());
5252
}
5353
elseif (name) {
54-
author_ =atom::author(name->first_node()->value());
54+
author_ =atom::author(name->first_node()->value());
5555
}
5656
}
5757

@@ -89,7 +89,7 @@ feed::feed(const http::client::response &response) {
8989
entries_.back().set_content(content->first_node()->value());
9090
}
9191

92-
entry = entry->next_sibling();
92+
entry = entry->next_sibling();
9393
}
9494
}
9595
}// namespace atom

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp