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

Method getScheme

CesiumUtility/src/Uri.cpp:117–123  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

115bool Uri::isValid() const { return this->_url.has_value(); }
116
117std::string_view Uri::getScheme() const {
118 if (!this->isValid()) {
119 return {};
120 }
121
122 return this->_hasScheme ? this->_url->get_protocol() : std::string_view{};
123}
124
125std::string_view Uri::getHost() const {
126 if (!this->isValid()) {

Callers 2

generateApiUrlFunction · 0.80
isFileFunction · 0.80

Calls 1

isValidMethod · 0.95

Tested by

no test coverage detected