টেমপ্লেট:Str find0
অবয়ব
-1
The Template:str_find0 returns first appearance of a substring in a string, otherwise returns -1.
This template uses sub-template:str sub find which does the routine.
ব্যবহার
{{str find0|<string1>|<string2>}}
- It is zero-based. So no need for extra {{#expr:{{str find|}}-1}} calculations to use it in other templates.
সীমাবদ্ধতা
- Handles strings up to 90 characters.
সম্পাদন
- Very fast on short strings. Uses enhanced algorithm to run the subroutine only when needed.
উদাহরণ
- {{str find0|abcdef|abc}} → 0
- {{str find0|abcdef|def}} → 3
- {{str find0|abcdef|ghi}} → -1
- {{str find0|abcdef|abcdefghi}} → -1
আরও দেখুন
- টেমপ্লেট:Str find - 1-based string searching template.
টেমপ্লেট:String templates see also
উপরোক্ত নথিটি টেমপ্লেট:Str find0/নথি থেকে প্রতিলিপ্ত। (সম্পাদনা | ইতিহাস) ব্যবহারকারীগণ খেলাঘর (তৈরি করুন | আয়না) এবং পরীক্ষা পাতায় (তৈরি করুন) এই টেমপ্লেট সংক্রান্ত পরীক্ষা-নিরীক্ষা করতে পারেন। দয়া করে /নথি উপপাতায় বিষয়শ্রেণী যোগ করুন। এই টেমপ্লেটের উপপাতাসমূহ। |