MCPcopy Create free account
hub / github.com/CesiumGS/cesium-native / addQuery

Method addQuery

CesiumUtility/src/Uri.cpp:232–245  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

230}
231
232std::string Uri::addQuery(
233 const std::string& uri,
234 const std::string& key,
235 const std::string& value) {
236 Uri parsedUri(uri);
237 if (!parsedUri.isValid()) {
238 return uri;
239 }
240
241 UriQuery params(parsedUri);
242 params.setValue(key, value);
243 parsedUri.setQuery(params.toQueryString());
244 return std::string(parsedUri.toString());
245}
246
247std::string Uri::getQueryValue(const std::string& uri, const std::string& key) {
248 Uri parsedUri(uri);

Callers

nothing calls this directly

Calls 5

setValueMethod · 0.80
setQueryMethod · 0.80
toQueryStringMethod · 0.80
isValidMethod · 0.45
toStringMethod · 0.45

Tested by

no test coverage detected