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

Function TextGroupWidget_RemoveColorPrefix

src/Widgets.c:2263–2269  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2261}
2262
2263static void TextGroupWidget_RemoveColorPrefix(cc_string* text, int i) {
2264 if (i + 2 > text->length || text->buffer[i] != '&') return;
2265 if (!Drawer2D_ValidColorCodeAt(text, i + 1)) return;
2266
2267 String_DeleteAt(text, i + 1);
2268 String_DeleteAt(text, i);
2269}
2270
2271static void TextGroupWidget_FormatUrl(cc_string* text, const cc_string* url) {
2272 char* dst;

Callers 1

Calls 2

String_DeleteAtFunction · 0.85

Tested by

no test coverage detected