MCPcopy Create free account
hub / github.com/ddnet/ddnet / CreateOrAppendTextContainer

Method CreateOrAppendTextContainer

src/engine/client/text.cpp:2060–2071  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2058 }
2059
2060 bool CreateOrAppendTextContainer(STextContainerIndex &TextContainerIndex, CTextCursor *pCursor, const char *pText, int Length = -1) override
2061 {
2062 if(TextContainerIndex.Valid())
2063 {
2064 AppendTextContainer(TextContainerIndex, pCursor, pText, Length);
2065 return true;
2066 }
2067 else
2068 {
2069 return CreateTextContainer(TextContainerIndex, pCursor, pText, Length);
2070 }
2071 }
2072
2073 // just deletes and creates text container
2074 void RecreateTextContainer(STextContainerIndex &TextContainerIndex, CTextCursor *pCursor, const char *pText, int Length = -1) override

Callers 6

UpdateTextMethod · 0.80
UpdateTextMethod · 0.80
UpdateTextMethod · 0.80
UpdateTextMethod · 0.80
UpdateTextMethod · 0.80
OnPrepareLinesMethod · 0.80

Calls 1

ValidMethod · 0.45

Tested by

no test coverage detected