mirror of
https://projects.vdr-developer.org/git/vdr-plugin-skindesigner.git
synced 2023-10-19 15:58:31 +00:00
Cosmetic changes
This commit is contained in:
parent
d11d09ca6e
commit
2f64512710
@ -873,55 +873,6 @@ void cVeMenuMain::SplitText(void) {
|
|||||||
number = strdup("");
|
number = strdup("");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
/*
|
|
||||||
void cVeMenuMain::SplitText(void) {
|
|
||||||
char *start = skipspace(text);
|
|
||||||
bool found = false;
|
|
||||||
bool doBreak = false;
|
|
||||||
size_t i = 0;
|
|
||||||
char *c = start;
|
|
||||||
while (*c) {
|
|
||||||
if (i==0) {
|
|
||||||
//if text directly starts with nonnumeric, break
|
|
||||||
if (!(*c >= '0' && *c <= '9')) {
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
if (found) {
|
|
||||||
//if current char is not a figure anymore, break
|
|
||||||
if (!(*c >= '0' && *c <= '9')) {
|
|
||||||
//there has to be a space after the menu item number
|
|
||||||
//plugins with figures in their name are eval :-)
|
|
||||||
if (*c != ' ')
|
|
||||||
found = false;
|
|
||||||
doBreak = true;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
if (*c >= '0' && *c <= '9') {
|
|
||||||
found = true;
|
|
||||||
}
|
|
||||||
if (doBreak)
|
|
||||||
break;
|
|
||||||
if (i>4)
|
|
||||||
break;
|
|
||||||
c++;
|
|
||||||
i++;
|
|
||||||
}
|
|
||||||
|
|
||||||
free(number);
|
|
||||||
free(label);
|
|
||||||
if (found) {
|
|
||||||
number = (char*)malloc(i+1);
|
|
||||||
memset(number, 0, i+1);
|
|
||||||
strncpy(number, start, i);
|
|
||||||
} else {
|
|
||||||
number = (char*)malloc(2);
|
|
||||||
memset(number, 0, 2);
|
|
||||||
strncpy(number, "", 1);
|
|
||||||
}
|
|
||||||
label = strdup(skipspace(c));
|
|
||||||
}
|
|
||||||
*/
|
|
||||||
|
|
||||||
/******************************************************************
|
/******************************************************************
|
||||||
* cLeMenuMain
|
* cLeMenuMain
|
||||||
|
@ -1387,6 +1387,3 @@ bool cVeDmTablabels::Parse(bool forced) {
|
|||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user