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

Method Split

src/BatchCommands.cpp:893–913  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

891}
892
893void MacroCommands::Split(const wxString & str, wxString & command, wxString & param)
894{
895 int splitAt;
896
897 command.Empty();
898 param.Empty();
899
900 if (str.empty()) {
901 return;
902 }
903
904 splitAt = str.Find(wxT(':'));
905 if (splitAt < 0) {
906 return;
907 }
908
909 command = str.Mid(0, splitAt);
910 param = str.Mid(splitAt + 1);
911
912 return;
913}
914
915wxString MacroCommands::Join(const wxString & command, const wxString & param)
916{

Callers 2

OnSplitLabelsFunction · 0.45
OnSplitFunction · 0.45

Calls 3

EmptyMethod · 0.45
emptyMethod · 0.45
FindMethod · 0.45

Tested by

no test coverage detected