MCPcopy Create free account
hub / github.com/bruderstein/nppPluginManager / getDisplayString

Method getDisplayString

pluginManager/src/PluginVersion.cpp:288–316  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

286}
287
288TCHAR* PluginVersion::getDisplayString()
289{
290
291 if (NULL == _displayString)
292 {
293 basic_stringstream<TCHAR> display;
294 if (_major == 0 && _minor == 0 && _revision == 0 && _build == 0)
295 display << _T("Unknown");
296 else
297 {
298 display << _major << _T(".") << _minor;
299 if (_revision + _build > 0)
300 display << _T(".") << _revision;
301
302 if (_build > 0)
303 display << _T(".") << _build;
304
305 if (_isBad)
306 display << _T(" (unstable)");
307 }
308
309 unsigned int length = static_cast<unsigned int>(display.tellp());
310 length++;
311 _displayString = new TCHAR[length];
312 _tcscpy_s(_displayString, static_cast<rsize_t>(length), display.str().c_str());
313 }
314
315 return _displayString;
316}
317
318
319bool PluginVersion::getIsBad()

Callers 2

notifyMethod · 0.80
run_dlgProcMethod · 0.80

Calls 1

c_strMethod · 0.80

Tested by

no test coverage detected