MCPcopy Create free account
hub / github.com/BabylonJS/BabylonNative / StringToEnum

Function StringToEnum

Polyfills/XMLHttpRequest/Source/XMLHttpRequest.cpp:14–22  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

12 constexpr const char* ArrayBuffer = "arraybuffer";
13
14 UrlLib::UrlResponseType StringToEnum(const std::string& value)
15 {
16 if (value == Text)
17 return UrlLib::UrlResponseType::String;
18 if (value == ArrayBuffer)
19 return UrlLib::UrlResponseType::Buffer;
20
21 throw std::exception{};
22 }
23
24 const char* EnumToString(UrlLib::UrlResponseType value)
25 {

Callers 2

SetResponseTypeMethod · 0.85
OpenMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected