| 2788 | } |
| 2789 | |
| 2790 | static void TexPackOverlay_UpdateLine2(struct TexPackOverlay* s) { |
| 2791 | static const cc_string https = String_FromConst("https://"); |
| 2792 | static const cc_string http = String_FromConst("http://"); |
| 2793 | cc_string url = String_Empty; |
| 2794 | |
| 2795 | if (!s->deny) { |
| 2796 | url = s->url; |
| 2797 | if (String_CaselessStarts(&url, &https)) { |
| 2798 | url = String_UNSAFE_SubstringAt(&url, https.length); |
| 2799 | } |
| 2800 | if (String_CaselessStarts(&url, &http)) { |
| 2801 | url = String_UNSAFE_SubstringAt(&url, http.length); |
| 2802 | } |
| 2803 | } |
| 2804 | TextWidget_Set(&s->lbls[2], &url, &s->textFont); |
| 2805 | } |
| 2806 | |
| 2807 | static void TexPackOverlay_UpdateLine3(struct TexPackOverlay* s) { |
| 2808 | cc_string contents; char contentsBuffer[STRING_SIZE]; |
no test coverage detected