MCPcopy Create free account
hub / github.com/KebsCS/KBotExt / stb_text_makeundo_delete

Function stb_text_makeundo_delete

KBotExt/imgui/imstb_textedit.h:1336–1344  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1334}
1335
1336static void stb_text_makeundo_delete(STB_TEXTEDIT_STRING* str, STB_TexteditState* state, int where, int length)
1337{
1338 int i;
1339 STB_TEXTEDIT_CHARTYPE* p = stb_text_createundo(&state->undostate, where, length, 0);
1340 if (p) {
1341 for (i = 0; i < length; ++i)
1342 p[i] = STB_TEXTEDIT_GETCHAR(str, where + i);
1343 }
1344}
1345
1346static void stb_text_makeundo_replace(STB_TEXTEDIT_STRING* str, STB_TexteditState* state, int where, int old_length, int new_length)
1347{

Callers 1

stb_textedit_deleteFunction · 0.85

Calls 2

stb_text_createundoFunction · 0.85
STB_TEXTEDIT_GETCHARFunction · 0.85

Tested by

no test coverage detected