MCPcopy Create free account
hub / github.com/TailsmanDesign/PocketMage_PDA / insertLineArray

Function insertLineArray

Code/PocketMage_V3/src/OS_APPS/TXT.cpp:456–463  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

454}
455
456void insertLineArray(ulong index) {
457 if (document.lineCount >= MAX_LINES) return;
458 if (index < document.lineCount) {
459 memmove(&document.lines[index + 1], &document.lines[index], sizeof(Line) * (document.lineCount - index));
460 }
461 initLine(document.lines[index]);
462 document.lineCount++;
463}
464
465void deleteLineArray(ulong index) {
466 if (index >= document.lineCount) return;

Callers 4

reflowParagraphFunction · 0.85
mergeLinesUpFunction · 0.85
cycleParagraphStyleFunction · 0.85
editorFunction · 0.85

Calls 1

initLineFunction · 0.85

Tested by

no test coverage detected