قالب:Str find long/doc
This is a documentation subpage for قالب:Str find long. It may contain usage information, categories and other content that is not part of the original قالب page. |
Usage
تعديل{{str find|text|sub_string}} = Position of first appearance of sub_string in text.
- Only searches first 80 characters of text. Returns -1 if sub_string not found in first 80 characters.
- Character position is 1 based (not 0 based as usual in calculations).
Examples
تعديل"{{str find long|abc bde|a}}"
gives "1" [1]"{{str find long|abc bde|b}}"
gives "2" [2]"{{str find long|abc bde|c}}"
gives "3" [3]"{{str find long|abc bde| }}"
gives "4" [4]"{{str find long|abc bde|d}}"
gives "6" [5]"{{str find long|abc bde|e}}"
gives "7" [6]"{{str find long|abc bde|f}}"
gives "-1" [7]
Applications
تعديلSee also
تعديلDescription of all string templates