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

Method tagArrayByName

src/database/WizIndex.cpp:120–138  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

118}
119
120bool WizIndex::tagArrayByName(const CString& strName, CWizTagDataArray& arrayTagRet)
121{
122 CWizTagDataArray arrayTag;
123 if (!getAllTags(arrayTag)) {
124 TOLOG("Failed to get tags!");
125 return false;
126 }
127
128 CString strFindName = tagDisplayNameToName(strName);
129
130 CWizTagDataArray::const_iterator it;
131 for (it = arrayTag.begin(); it != arrayTag.end(); it++) {
132 if (-1 != ::WizStrStrI_Pos(it->strName, strFindName)) {
133 arrayTagRet.push_back(*it);
134 }
135 }
136
137 return true;
138}
139
140bool WizIndex::tagsTextToTagArray(CString strText, CWizTagDataArray& arrayTag)
141{

Callers 1

TagArrayToSQLFunction · 0.80

Calls 4

TOLOGFunction · 0.85
WizStrStrI_PosFunction · 0.85
beginMethod · 0.80
endMethod · 0.80

Tested by

no test coverage detected