mirror of
https://github.com/libretro/RetroArch.git
synced 2025-04-02 10:51:52 -04:00
Wipe test code again.
This commit is contained in:
parent
75b91e3ddc
commit
9b35965ce1
1 changed files with 0 additions and 21 deletions
|
@ -648,29 +648,9 @@ const char *utf8skip(const char *str, size_t chars)
|
|||
* Take the contents of @str and apply a ticker effect to it,
|
||||
* and write the results in @s.
|
||||
**/
|
||||
void test(int a, const char*b, int c)
|
||||
{
|
||||
char hurr[64];
|
||||
memset(hurr, 0xFF, 64);
|
||||
utf8cpy(hurr, a,b,c);
|
||||
printf("%i", (int)utf8skip(b,3));
|
||||
printf("(%i)\"%s\"\n", strlen(hurr),hurr);
|
||||
}
|
||||
void menu_animation_ticker_str(char *s, size_t len, uint64_t idx,
|
||||
const char *str, bool selected)
|
||||
{
|
||||
test(16, "abcd", 3); // 3
|
||||
test(16, "øøøø", 3); // 3
|
||||
test(7, "øøøø", 3); // 3
|
||||
test(6, "øøøø", 3); // 2
|
||||
test(7, "øøøø", 9); // 3
|
||||
test(6, "øøøø", 9); // 2
|
||||
test(9, "øøøø", 9); // 4
|
||||
test(6, "bøvs", 4); // 4
|
||||
test(5, "bøvs", 4); // 3
|
||||
test(64, "sit", 2); // 2
|
||||
printf("'%c'\n", 0xC2);
|
||||
exit(0);
|
||||
menu_animation_t *anim = menu_animation_get_ptr();
|
||||
size_t str_len = utf8len(str);
|
||||
size_t offset = 0;
|
||||
|
@ -685,7 +665,6 @@ exit(0);
|
|||
{
|
||||
utf8cpy(s, PATH_MAX, str, len-3);
|
||||
strlcat(s, "...", PATH_MAX);
|
||||
printf("(%i)(%s)\n",(int)len,s);
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue