| 83 | |
| 84 | |
| 85 | void MultiplyArray(const CWizStdStringArray& arr1, const CWizStdStringArray& arr2, const char* lpszSplitter, CWizStdStringArray& arrayRet) |
| 86 | { |
| 87 | if (arr1.empty()) |
| 88 | { |
| 89 | arrayRet.assign(arr2.begin(), arr2.end()); |
| 90 | } |
| 91 | else if (arr2.empty()) |
| 92 | { |
| 93 | arrayRet.assign(arr1.begin(), arr1.end()); |
| 94 | } |
| 95 | else |
| 96 | { |
| 97 | CString splitter(lpszSplitter); |
| 98 | // |
| 99 | for (CWizStdStringArray::const_iterator it1 = arr1.begin(); |
| 100 | it1 != arr1.end(); |
| 101 | it1++) |
| 102 | { |
| 103 | for (CWizStdStringArray::const_iterator it2 = arr2.begin(); |
| 104 | it2 != arr2.end(); |
| 105 | it2++) |
| 106 | { |
| 107 | CString strRet = *it1 + splitter + *it2; |
| 108 | arrayRet.push_back(strRet); |
| 109 | } |
| 110 | } |
| 111 | } |
| 112 | } |
| 113 | |
| 114 | int WizToolsChinese2PinYinEx(const wchar_t* lpszText, UINT flags, const char* lpszSplitter, QString& pbstrTextResult) |
| 115 | { |
no test coverage detected