MCPcopy Create free account
hub / github.com/ProgerXP/Notepad2e / Set

Method Set

scintilla/src/PositionCache.cxx:467–480  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

465}
466
467void PositionCacheEntry::Set(unsigned int styleNumber_, const char *s_,
468 unsigned int len_, XYPOSITION *positions_, unsigned int clock_) {
469 Clear();
470 styleNumber = styleNumber_;
471 len = len_;
472 clock = clock_;
473 if (s_ && positions_) {
474 positions = new XYPOSITION[len + (len / 4) + 1];
475 for (unsigned int i=0; i<len; i++) {
476 positions[i] = static_cast<XYPOSITION>(positions_[i]);
477 }
478 memcpy(reinterpret_cast<char *>(positions + len), s_, len);
479 }
480}
481
482PositionCacheEntry::~PositionCacheEntry() {
483 Clear();

Callers 3

PropSetMethod · 0.45
InitMethod · 0.45
MeasureWidthsMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected