MCPcopy Create free account
hub / github.com/ZDoom/Raze / CT_PasteChat

Function CT_PasteChat

source/core/ct_chat.cpp:199–214  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

197//===========================================================================
198
199void CT_PasteChat(const char *clip)
200{
201 if (clip != nullptr && *clip != '\0')
202 {
203 auto p = (const uint8_t *)clip;
204 // Only paste the first line.
205 while (auto chr = GetCharFromString(p))
206 {
207 if (chr == '\n' || chr == '\r' || chr == '\b')
208 {
209 break;
210 }
211 CT_AddChar (chr);
212 }
213 }
214}
215
216//===========================================================================
217//

Callers 1

CT_ResponderFunction · 0.85

Calls 2

CT_AddCharFunction · 0.85
GetCharFromStringFunction · 0.50

Tested by

no test coverage detected