MCPcopy Create free account
hub / github.com/altairwei/WizNotePlus / MultiplyArray

Function MultiplyArray

src/utils/WizPinyin.cpp:85–112  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

83
84
85void 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
114int WizToolsChinese2PinYinEx(const wchar_t* lpszText, UINT flags, const char* lpszSplitter, QString& pbstrTextResult)
115{

Callers 1

WizToolsChinese2PinYinExFunction · 0.85

Calls 3

beginMethod · 0.80
endMethod · 0.80
emptyMethod · 0.45

Tested by

no test coverage detected