MCPcopy Create free account
hub / github.com/dail8859/NotepadNext / GetAllConstantNames

Method GetAllConstantNames

src/IFaceTable.cpp:142–157  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

140}
141
142std::vector<std::string> IFaceTable::GetAllConstantNames() const {
143 std::vector<std::string> kws;
144 std::string prefix_str(prefix);
145
146 kws.reserve(constants.size() + functions.size());
147
148 std::transform(constants.begin(), constants.end(), std::back_inserter(kws), [](const IFaceConstant &ifc) { return ifc.name; });
149 std::transform(functions.begin(), functions.end(), std::back_inserter(kws), [&](const IFaceFunction &iff) {
150 std::string s = prefix_str + std::string(iff.name);
151 std::transform(s.begin(), s.end(), s.begin(), ::toupper);
152 return s;
153 });
154
155 std::sort(kws.begin(), kws.end());
156 return kws;
157}
158
159std::vector<std::string> IFaceTable::GetAllFunctionNames() const {
160 std::vector<std::string> kws;

Callers

nothing calls this directly

Calls 2

endMethod · 0.80
sizeMethod · 0.45

Tested by

no test coverage detected