Vorlage:Str find

Aus Kitakien

(Unterschied zwischen Versionen)
Wechseln zu: Navigation, Suche
Zeile 1: Zeile 1:
-
{{#switch:*{{{2|}}}*
+
<includeonly>{{#switch:*{{{2|}}}*
|**=-1
|**=-1
|*{{str_index|{{{1|}}}|1}}*=1
|*{{str_index|{{{1|}}}|1}}*=1
Zeile 52: Zeile 52:
|*{{str_index|{{{1|}}}|50}}*=50
|*{{str_index|{{{1|}}}|50}}*=50
|-1
|-1
-
}}
+
}}</includeonly><noinclude>
 +
 
 +
<nowiki>{{str_find|</nowiki>''text''|''character''<nowiki>}}</nowiki> = Position of first appearance of ''character'' in ''text''.
 +
 
 +
Only searches first 50 characters of ''text''.  Returns -1 if ''character'' not found in first 50 characters.</noinclude>

Version vom 02:10, 27. Feb. 2009


{{str_find|text|character}} = Position of first appearance of character in text.

Only searches first 50 characters of text. Returns -1 if character not found in first 50 characters.

Persönliche Werkzeuge