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

Method Identifier

libraries/lib-strings/Identifier.cpp:14–26  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

12#include <wx/arrstr.h> // for wxSplit
13
14Identifier::Identifier(
15 std::initializer_list<Identifier> components, wxChar separator )
16{
17 if( components.size() < 2 )
18 {
19 wxASSERT( false );
20 return;
21 }
22 auto iter = components.begin(), end = components.end();
23 value = (*iter++).value;
24 while (iter != end)
25 value += separator + (*iter++).value;
26}
27
28std::vector< Identifier > Identifier::split( wxChar separator ) const
29{

Callers

nothing calls this directly

Calls 3

sizeMethod · 0.45
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected