MCPcopy Create free account
hub / github.com/cxasm/notepad-- / updataExtLexerManager

Method updataExtLexerManager

src/langextset.cpp:160–176  ·  view source on GitHub ↗

����ExtLexerManager��tag������ֵ

Source from the content-addressed store, hash-verified

158
159//����ExtLexerManager��tag������ֵ
160void LangExtSet::updataExtLexerManager(QString tag, int lexId, QStringList & oldExtList, QStringList & newExtList)
161{
162 //�Ѿɵ�ֱ��ɾ��
163 for (int i = 0; i < oldExtList.size(); ++i)
164 {
165 ExtLexerManager::getInstance()->remove(oldExtList.at(i));
166 }
167 //���µ����¼���һ��
168 for (int i = 0; i < newExtList.size(); ++i)
169 {
170 FileExtLexer v;
171 v.ext = newExtList.at(i);
172 v.id = (LangType)lexId;
173
174 ExtLexerManager::getInstance()->addNewExtType(v.ext, v.id, tag);
175 }
176}
177
178//�����ļ��Ĺ�����׺���﷨��
179void LangExtSet::loadExtRelevanceToMagr()

Callers

nothing calls this directly

Calls 3

addNewExtTypeMethod · 0.80
sizeMethod · 0.45
removeMethod · 0.45

Tested by

no test coverage detected