command cleanup
changed commands:
strstr haystack needle
now returns position of needle in haystack (counting from 1)
or zero, if not found
substr string start len
now counts negative length from total length
"substr text 1 -2" now returns the text without first and last char
strreplace text search replace
no longer restricted to 260 char stringlengths
removed commands:
swapelements, strpos (can be scripted, if required)
DOCREF strstr substr
DOCREF swapelements strpos
This commit is contained in:
@@ -128,8 +128,6 @@ void conoutf(const char *s, ...)
|
||||
delete[] conline; conline=newstring(sf);
|
||||
}
|
||||
|
||||
COMMANDF(strstr, "ss", (char *a, char *b) { intret(strstr(a, b) ? 1 : 0); });
|
||||
|
||||
int rendercommand(int x, int y, int w)
|
||||
{
|
||||
const char *useprompt = cmdprompt ? cmdprompt : "#";
|
||||
|
||||
Reference in New Issue
Block a user