MCPcopy Create free account
hub / github.com/ClassiCube/ClassiCube / String_AppendColorless

Function String_AppendColorless

src/String.c:276–285  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

274}
275
276void String_AppendColorless(cc_string* str, const cc_string* src) {
277 char c;
278 int i;
279
280 for (i = 0; i < src->length; i++) {
281 c = src->buffer[i];
282 if (c == '&') { i++; continue; } /* Skip over the following color code */
283 String_Append(str, c);
284 }
285}
286
287
288int String_IndexOfAt(const cc_string* str, int offset, char c) {

Callers 6

Entity_SetSkinFunction · 0.85
TabList_SetFunction · 0.85
TabListOverlay_DrawTextFunction · 0.85
DisconnectScreen_ShowFunction · 0.85
CheckNameFunction · 0.85

Calls 1

String_AppendFunction · 0.85

Tested by

no test coverage detected