| 891 | } |
| 892 | |
| 893 | void 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 | |
| 915 | wxString MacroCommands::Join(const wxString & command, const wxString & param) |
| 916 | { |
no test coverage detected