MCPcopy Create free account
hub / github.com/CoolProp/CoolProp / has_backend_in_string

Function has_backend_in_string

src/CoolProp.cpp:108–111  ·  view source on GitHub ↗

Return true if the string has "BACKEND::*" format where * signifies a wildcard

Source from the content-addressed store, hash-verified

106
107// Return true if the string has "BACKEND::*" format where * signifies a wildcard
108bool has_backend_in_string(const std::string& fluid_string, std::size_t& i) {
109 i = fluid_string.find("::");
110 return i != std::string::npos;
111}
112
113void extract_backend(std::string fluid_string, std::string& backend, std::string& fluid) {
114 std::size_t i = 0;

Callers 1

extract_backendFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected