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

Method AddData

scintilla/src/Document.cxx:872–882  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

870}
871
872int SCI_METHOD Document::AddData(char *data, int length) {
873 try {
874 int position = Length();
875 InsertString(position,data, length);
876 } catch (std::bad_alloc &) {
877 return SC_STATUS_BADALLOC;
878 } catch (...) {
879 return SC_STATUS_FAILURE;
880 }
881 return 0;
882}
883
884void * SCI_METHOD Document::ConvertToDocument() {
885 return this;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected