| |
|
|
 | abgelöst von str
[OFFTOPIC]long = strpos ( string, string gesucht [, long Startposition] )
Sucht in String ab Startposition (optional) und liefert die Position.[/OFFTOPIC] |
|
|
| |
|
|
|
 | Hatte zuerst hay,needle[,frompos] -
XProfan machts aber needle,hay[,frompos],
habs jetzt auf xprofansche Variante umgestellt. |
|
|
| |
|
|
|
 | Funktion umbenannt von instr nach strpos und Parameter angepasst. |
|
|
| |
|
|
|
 Michael W. | also sowas wie ein strfind... |
|
|
| XProfan X3System: Windows 8/10, XProfan X4 Programmieren, das spannendste Detektivspiel der Welt. | 11.01.2015 ▲ |
|
|
|
|
 | In PHP und Pascal/ Delphi heists wohl strpos - finde ich auch gut die Bezeichnung, in C wäre es eher ein strstr aber strstr finde ich nicht so passend für AndroidProfan. Da ich auch viel mit PHP schreibe finde ich strpos am besten. |
|
|
| |
|
|
|
 Michael W. | Wenn ein unbedarfter etwas in einem String sucht, dann aber wohl eher unter "strsearch" oder "strfind" und nicht unter "strstr". Man muß ja nun nicht alles 'sinnfreie' von anderen übernehmen... |
|
|
| XProfan X3System: Windows 8/10, XProfan X4 Programmieren, das spannendste Detektivspiel der Welt. | 11.01.2015 ▲ |
|
|
|
|
 | So sehe ich es auch.
Darum scheint mir strpos auch sinvoll.
Microsoft findets auch nicht ganz dumm: [...] [...]  |
|
|
| |
|
|
|
 | Und nun ists auch der Funktion strpos an den Kragen gegangen, kann auch die Funktion str ohne Einbuße übernehmen:
str(heu,nadel)
oder
str(sucheAbPos,heu,nadel) |
|
|
| |
|
|