MCPcopy Create free account
hub / github.com/MediaArea/MediaInfoLib / ToString

Method ToString

Source/MediaInfo/Reader/Reader_libcurl.cpp:158–198  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

156 }
157
158 string ToString()
159 {
160 string ToReturn;
161 if (!Protocol.empty())
162 {
163 ToReturn += Protocol;
164 ToReturn += "://";
165 }
166 if (!User.empty() || !Password.empty())
167 {
168 ToReturn += User;
169 if (!Password.empty())
170 {
171 ToReturn += ':';
172 ToReturn += Password;
173 }
174 ToReturn += '@';
175 }
176 ToReturn += Host;
177 if (!Port.empty())
178 {
179 ToReturn += ':';
180 ToReturn += Port;
181 }
182 if (!Path.empty() || !Query.empty() || !Fragment.empty())
183 {
184 ToReturn += '/';
185 ToReturn += Path;
186 if (!Query.empty())
187 {
188 ToReturn += '?';
189 ToReturn += Query;
190 }
191 if (!Fragment.empty())
192 {
193 ToReturn += '#';
194 ToReturn += Fragment;
195 }
196 }
197 return ToReturn;
198 }
199
200 // Members
201 std::string Protocol;

Callers 15

Amazon_AWS_GetRegionFunction · 0.45
Amazon_AWS_ManageFunction · 0.45
Format_Test_PerParserMethod · 0.45
Streams_FinishMethod · 0.45
Read_Buffer_ContinueMethod · 0.45
Read_Buffer_ContinueMethod · 0.45
Read_Buffer_ContinueMethod · 0.45
mapMethod · 0.45

Calls 1

emptyMethod · 0.45

Tested by

no test coverage detected