MCPcopy Create free account
hub / github.com/WarmUpTill/SceneSwitcher / GetLocale

Method GetLocale

plugins/twitch/chat-message-pattern.cpp:413–424  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

411}
412
413QString ChatMessageProperty::GetLocale(const char *id)
414{
415 auto it = std::find_if(_supportedProperties.begin(),
416 _supportedProperties.end(),
417 [id](const PropertyInfo &pi) {
418 return std::string(pi._id) == id;
419 });
420 if (it == _supportedProperties.end()) {
421 return "";
422 }
423 return obs_module_text(it->_locale);
424}
425
426std::variant<bool, StringVariable>
427ChatMessageProperty::GetDefaultValue(const char *id)

Callers 2

AskForPorpertyMethod · 0.45

Calls 3

obs_module_textFunction · 0.85
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected