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

Commit28797ac

Browse files
committed
Run clang-format on the http directory.
1 parent78de299 commit28797ac

File tree

164 files changed

+7619
-7355
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

164 files changed

+7619
-7355
lines changed

‎http/src/http/client_connection_delegates.cpp‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
// http://www.boost.org/LICENSE_1_0.txt)
66

77
#ifdef NETWORK_NO_LIB
8-
#undef NETWORK_NO_LIB
8+
#undef NETWORK_NO_LIB
99
#endif
1010

1111
#include<network/protocol/http/client/connection/normal_delegate.ipp>

‎http/src/network/constants.hpp‎

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -10,31 +10,31 @@
1010
namespacenetwork {
1111

1212
structconstants {
13-
staticcharconst*crlf();
14-
staticcharconst*dot();
13+
staticcharconst*crlf();
14+
staticcharconst*dot();
1515
staticchardot_char();
16-
staticcharconst*http_slash();
17-
staticcharconst*space();
16+
staticcharconst*http_slash();
17+
staticcharconst*space();
1818
staticcharspace_char();
19-
staticcharconst*slash();
19+
staticcharconst*slash();
2020
staticcharslash_char();
21-
staticcharconst*host();
22-
staticcharconst*colon();
21+
staticcharconst*host();
22+
staticcharconst*colon();
2323
staticcharcolon_char();
24-
staticcharconst*accept();
25-
staticcharconst*default_accept_mime();
26-
staticcharconst*accept_encoding();
27-
staticcharconst*default_accept_encoding();
28-
staticcharconst*user_agent();
29-
staticcharconst*default_user_agent();
30-
staticcharconst*cpp_netlib_slash();
24+
staticcharconst*accept();
25+
staticcharconst*default_accept_mime();
26+
staticcharconst*accept_encoding();
27+
staticcharconst*default_accept_encoding();
28+
staticcharconst*user_agent();
29+
staticcharconst*default_user_agent();
30+
staticcharconst*cpp_netlib_slash();
3131
staticcharquestion_mark_char();
3232
staticcharhash_char();
33-
staticcharconst*connection();
34-
staticcharconst*close();
35-
staticcharconst*https();
33+
staticcharconst*connection();
34+
staticcharconst*close();
35+
staticcharconst*https();
3636
};
3737

38-
}// namespace network
38+
}// namespace network
3939

40-
#endif// NETWORK_CONSTANTS_HPP_20100808
40+
#endif// NETWORK_CONSTANTS_HPP_20100808

‎http/src/network/constants.ipp‎

Lines changed: 67 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -12,113 +12,137 @@
1212

1313
namespacenetwork {
1414

15-
charconst*constants::crlf() {
15+
charconst*constants::crlf() {
1616
staticchar crlf_[] ="\r\n";
1717
return crlf_;
1818
}
1919

20-
charconst*constants::dot() {
20+
charconst*constants::dot() {
2121
staticchar dot_[] =".";
2222
return dot_;
2323
}
2424

2525
charconstants::dot_char() {return'.'; }
2626

27-
charconst*constants::http_slash() {
27+
charconst*constants::http_slash() {
2828
staticchar http_slash_[] ="HTTP/";
2929
return http_slash_;
3030
}
3131

32-
charconst*constants::space() {
33-
staticchar space_[] = {'',0};
32+
charconst*constants::space() {
33+
staticchar space_[] = {'',0};
3434
return space_;
3535
}
3636

3737
charconstants::space_char() {return''; }
3838

39-
charconst*constants::slash() {
40-
staticchar slash_[] = {'/',0};
39+
charconst*constants::slash() {
40+
staticchar slash_[] = {'/',0};
4141
return slash_;
4242
}
4343

4444
charconstants::slash_char() {return'/'; }
4545

46-
charconst*constants::host() {
47-
staticchar host_[] = {'H','o','s','t',0};
46+
charconst*constants::host() {
47+
staticchar host_[] = {'H','o','s','t',0};
4848
return host_;
4949
}
5050

51-
charconst*constants::colon() {
52-
staticchar colon_[] = {':',0};
51+
charconst*constants::colon() {
52+
staticchar colon_[] = {':',0};
5353
return colon_;
5454
}
5555

5656
charconstants::colon_char() {return':'; }
5757

58-
charconst*constants::accept() {
59-
staticchar accept_[] = {'A','c','c','e','p','t',0};
58+
charconst*constants::accept() {
59+
staticchar accept_[] = {'A','c','c','e','p','t',0};
6060
return accept_;
6161
}
6262

63-
charconst *constants::default_accept_mime() {
64-
staticchar mime_[] = {
65-
'*','/','*',0
66-
};
63+
charconst*constants::default_accept_mime() {
64+
staticchar mime_[] = {'*','/','*',0 };
6765
return mime_;
6866
}
6967

70-
charconst *constants::accept_encoding() {
71-
staticchar accept_encoding_[] = {
72-
'A','c','c','e','p','t','-','E','n','c','o','d','i','n','g',0
73-
};
68+
charconst*constants::accept_encoding() {
69+
staticchar accept_encoding_[] = {'A',
70+
'c',
71+
'c',
72+
'e',
73+
'p',
74+
't',
75+
'-',
76+
'E',
77+
'n',
78+
'c',
79+
'o',
80+
'd',
81+
'i',
82+
'n',
83+
'g',
84+
0 };
7485
return accept_encoding_;
7586
}
7687

77-
charconst *constants::default_accept_encoding() {
78-
staticchar default_accept_encoding_[] = {
79-
'i','d','e','n','t','i','t','y',';','q','=','1','.','0',',','','*',';','q','=','0',0
80-
};
88+
charconst*constants::default_accept_encoding() {
89+
staticchar default_accept_encoding_[] = {'i',
90+
'd',
91+
'e',
92+
'n',
93+
't',
94+
'i',
95+
't',
96+
'y',
97+
';',
98+
'q',
99+
'=',
100+
'1',
101+
'.',
102+
'0',
103+
',',
104+
'',
105+
'*',
106+
';',
107+
'q',
108+
'=',
109+
'0',
110+
0 };
81111
return default_accept_encoding_;
82112
}
83113

84-
charconst *constants::user_agent() {
85-
staticchar user_agent_[] = {
86-
'U','s','e','r','-','A','g','e','n','t',0
87-
};
114+
charconst*constants::user_agent() {
115+
staticchar user_agent_[] =
116+
{'U','s','e','r','-','A','g','e','n','t',0 };
88117
return user_agent_;
89118
}
90119

91-
charconst *constants::cpp_netlib_slash() {
92-
staticchar cpp_netlib_slash_[] = {
93-
'c','p','p','-','n','e','t','l','i','b','/',0
94-
};
120+
charconst*constants::cpp_netlib_slash() {
121+
staticchar cpp_netlib_slash_[] =
122+
{'c','p','p','-','n','e','t','l','i','b','/',0 };
95123
return cpp_netlib_slash_;
96124
}
97125

98-
charconstants::question_mark_char() {
99-
return'?';
100-
}
126+
charconstants::question_mark_char() {return'?'; }
101127

102-
charconstants::hash_char() {
103-
return'#';
104-
}
128+
charconstants::hash_char() {return'#'; }
105129

106-
charconst*constants::connection() {
130+
charconst*constants::connection() {
107131
staticchar connection_[] ="Connection";
108132
return connection_;
109133
}
110134

111-
charconst*constants::close() {
135+
charconst*constants::close() {
112136
staticchar close_[] ="close";
113137
return close_;
114138
}
115139

116-
charconst*constants::https() {
140+
charconst*constants::https() {
117141
staticchar https_[] ="https";
118142
return https_;
119143
}
120144

121-
charconst*constants::default_user_agent() {
145+
charconst*constants::default_user_agent() {
122146
staticchar user_agent_[] ="cpp-netlib/" NETLIB_VERSION;
123147
return user_agent_;
124148
}

‎http/src/network/http/client.hpp‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@
1313
#include<network/http/response.hpp>
1414
#include<network/http/errors.hpp>
1515

16-
#endif// NETWORK_HTTP_CLIENT_INC__
16+
#endif// NETWORK_HTTP_CLIENT_INC__

‎http/src/network/http/errors.hpp‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@
88

99
#include<network/protocol/http/errors.hpp>
1010

11-
#endif// NETWORK_HTTP_ERRORS_INC__
11+
#endif// NETWORK_HTTP_ERRORS_INC__

‎http/src/network/http/request.hpp‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@
88

99
#include<network/protocol/http/request.hpp>
1010

11-
#endif// NETWORK_HTTP_REQUEST_INC__
11+
#endif// NETWORK_HTTP_REQUEST_INC__

‎http/src/network/http/response.hpp‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@
88

99
#include<network/protocol/http/response.hpp>
1010

11-
#endif// NETWORK_HTTP_RESPONSE_INC__
11+
#endif// NETWORK_HTTP_RESPONSE_INC__

‎http/src/network/include/http/client.hpp‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,5 +17,5 @@
1717
#include<network/message/directives.hpp>
1818
#include<network/message/transformers.hpp>
1919

20-
#endif// NETWORK_INCLUDE_HTTP_CLIENT_HPP_
20+
#endif// NETWORK_INCLUDE_HTTP_CLIENT_HPP_
2121

‎http/src/network/include/message.hpp‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,5 @@
1111

1212
#include<network/message.hpp>
1313

14-
#endif// NETWORK_INCLUDE_MESSAGE_HPP_
14+
#endif// NETWORK_INCLUDE_MESSAGE_HPP_
1515

‎http/src/network/protocol.hpp‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,6 @@
1111
// Author: Dean Michael Berris
1212
// Date Created: Oct. 08, 2007
1313

14-
#include<network/protocol/http.hpp>// include HTTP implementation
14+
#include<network/protocol/http.hpp>// include HTTP implementation
1515

16-
#endif// NETWORK_PROTOCOLS_20070908-1_HPP
16+
#endif// NETWORK_PROTOCOLS_20070908-1_HPP

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp