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

Function FindHelpUrl

src/ProjectFileManager.cpp:141–162  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

139};
140
141wxString FindHelpUrl( const TranslatableString &libraryError )
142{
143 wxString helpUrl;
144 if ( !libraryError.empty() ) {
145 helpUrl = defaultHelpUrl;
146
147 auto msgid = libraryError.MSGID().GET();
148 auto found = std::find_if( begin(helpURLTable), end(helpURLTable),
149 [&]( const Pair &pair ) {
150 return msgid.Contains( pair.first ); }
151 );
152 if (found != end(helpURLTable)) {
153 auto url = found->second;
154 if (url[0] == '#')
155 helpUrl += url;
156 else
157 helpUrl = url;
158 }
159 }
160
161 return helpUrl;
162}
163
164}
165

Callers 1

ReadProjectFileMethod · 0.85

Calls 5

MSGIDMethod · 0.80
beginFunction · 0.50
endFunction · 0.50
emptyMethod · 0.45
ContainsMethod · 0.45

Tested by

no test coverage detected