MCPcopy Create free account
hub / github.com/crossuo/crossuo / GetClientTypeFromString

Function GetClientTypeFromString

src/Config.cpp:128–161  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

126}
127
128static CLIENT_FLAG GetClientTypeFromString(const astr_t &str)
129{
130 auto client = str_lower(str);
131 if (client == "t2a")
132 {
133 return CF_T2A;
134 }
135 if (client == "re")
136 {
137 return CF_RE;
138 }
139 if (client == "td")
140 {
141 return CF_TD;
142 }
143 if (client == "lbr")
144 {
145 return CF_LBR;
146 }
147 if (client == "aos")
148 {
149 return CF_AOS;
150 }
151 if (client == "se")
152 {
153 return CF_SE;
154 }
155 if (client == "sa")
156 {
157 return CF_SA;
158 }
159
160 return CF_UNDEFINED;
161}
162
163static const char *GetClientTypeString(uint16_t clientFlag)
164{

Callers 1

LoadGlobalConfigFunction · 0.85

Calls 1

str_lowerFunction · 0.85

Tested by

no test coverage detected