MCPcopy Create free account
hub / github.com/Predelnik/DSpellCheck / rc_str_view

Function rc_str_view

src/plugin/Plugin.cpp:691–695  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

689}
690
691std::wstring_view rc_str_view(UINT string_id) {
692 const wchar_t *ret = nullptr;
693 auto len = LoadString(static_cast<HINSTANCE>(h_module), string_id, reinterpret_cast<LPWSTR>(&ret), 0);
694 return {ret, static_cast<size_t>(len)};
695}
696
697std::wstring rc_str(UINT string_id) { return std::wstring{rc_str_view(string_id)}; }
698

Callers 1

rc_strFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected