MCPcopy Create free account
hub / github.com/audacity/audacity / GetAcceptLanguageValue

Method GetAcceptLanguageValue

libraries/lib-cloud-audiocom/ServiceConfig.cpp:274–284  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

272}
273
274std::string ServiceConfig::GetAcceptLanguageValue() const
275{
276 auto language = Languages::GetLang();
277
278 if (language.Contains(L"-") && language.Length() > 2)
279 return wxString::Format(
280 "%s;q=1.0, %s;q=0.7, *;q=0.5", language, language.Left(2))
281 .ToStdString();
282 else
283 return wxString::Format("%s;q=1.0, *;q=0.5", language).ToStdString();
284}
285
286std::string ServiceConfig::GetCreateProjectUrl() const
287{

Callers 3

SetCommonHeadersFunction · 0.80
SetRequiredHeadersMethod · 0.80
UpdateProjectSnapshotMethod · 0.80

Calls 3

LengthMethod · 0.80
GetLangFunction · 0.50
ContainsMethod · 0.45

Tested by

no test coverage detected