پرش به محتوا
منوی اصلی
منوی اصلی
انتقال به نوار کناری
نهفتن
ناوبری
صفحهٔ اصلی
تغییرات اخیر
مقالهٔ تصادفی
راهنما دربارهٔ مدیاویکی
صفحههای ویژه
جستجو
جستجو
ظاهر
ساخت حساب
ورود
ابزارهای شخصی
ساخت حساب
ورود
صفحههایی برای ویرایشگرانی که از سامانه خارج شدند
بیشتر بدانید
مشارکتها
بحث
در حال ویرایش
الگو:یافتن رشته/توضیحات
الگو
بحث
فارسی
خواندن
ویرایش مبدأ
نمایش تاریخچه
ابزارها
ابزارها
انتقال به نوار کناری
نهفتن
کنشها
خواندن
ویرایش مبدأ
نمایش تاریخچه
عمومی
پیوندها به این صفحه
تغییرات مرتبط
اطلاعات صفحه
ظاهر
انتقال به نوار کناری
نهفتن
هشدار:
شما وارد نشدهاید. نشانی آیپی شما برای عموم قابل مشاهده خواهد بود اگر هر تغییری ایجاد کنید. اگر
وارد شوید
یا
یک حساب کاربری بسازید
، ویرایشهایتان به نام کاربریتان نسبت داده خواهد شد، همراه با مزایای دیگر.
بررسی ضدهرزنگاری. این قسمت را پر
نکنید
!
The '''[[Template:Strfind_short]]''' finds the location, in parameter {1} with length lenstr=15 (up to 99), of the string {2} with length {3}, using a simple, quick method. If the string is not found, the result is zero (0), indicating no match. The parameter lenstr can be shorter than the actual 1st string, to stop the search earlier (and faster). The template was designed to use only 5 levels of expansion depth, rather than 18 or more levels as in other string-searching templates. :'''Usage:''' {{'''strfind short'''|abcdef|bcd|3}} {{in5}} → {{str_find|abcdef|bcd|3}} ::: {{'''strfind short'''|123456789.|45|2}} → {{strfind short|123456789.|45|2}} ::: {{'''strfind short'''|x+2.437-6|2.43|4}} → {{strfind short|x+2.437-6|2.43|4}} ::: {{'''strfind short'''|:***abcd**|*ab| {{strlen_short|*ab}} }} → {{strfind short|:***abcd**|*ab| {{strlen_short|*ab}} }} If the length of the substring {2} is not known, or changes often, then the extra template {strlen_quick} can be used as: {{strlen_quick|{{{2}}} }}, to determine the length of string 2, quickly. ==Examples== The following are examples: :* {{strfind short|abcdef|bcd|3}} {{in5}} → {{strfind_short|abcdef|bcd|3}} :* {{strfind short|Fast Forward (film)|(|1}} {{in5}} → {{strfind_short|Fast Forward (film)|(|1}} :* {{strfind short|Fast Forward Longer (film)|(|1}} → {{strfind_short|Fast Forward Longer (film)|(|1}} :* {{strfind short|Fast Forward Longer (film)|(|1|lenstr=26}} → {{strfind_short|Fast Forward Longer (film)|(|1|lenstr=26}} :* {{strfind short|A Funny Thing Happened on the Way to the Forum (film)|(|1|lenstr=53}} → {{strfind_short|A Funny Thing Happened on the Way to the Forum (film)|(|1|lenstr=53}} :* {{strfind short|abcdef|-|1}} {{in5}} → {{strfind_short|abcdef|-|1}} {{#ifeq:{{strfind_short|abcdef|-|1}}|0||'''Note error'''}} :* {{strfind short|abcdef|x|1}} {{in5}} → {{strfind_short|abcdef|x|1}} :* {{strfind short|abcdef|xyz|3}} {{in5}} → {{strfind_short|abcdef|xyz|3}} ==Performance impact== The operation of Template:Strfind_short was designed to run 4x times faster than other string-search templates; however, it typically runs 20x times faster (or shorter) for strings up to 15 characters long. The post-expand include size averages about 300 bytes (rather than 6,000 bytes for other string-search templates). It can be used over 5,000 times per page (compared to only 350 times for other search templates). For strings over 50 long, it will use more resources, due to processing strings larger than other templates had allowed. ==See also== * {{tl|Str find}} - searches strings, but with expansion depth of 18 or more {{String templates see also}} <includeonly> [[رده:الگو:قالببندی و عملکرد ویکیپدیا]] [[رده:الگو:با عمق ناچیز توسعه]] </includeonly>
خلاصه:
لطفاً توجه داشته باشید که همهٔ مشارکتها در ایرانپدیا ممکن است توسط دیگر مشارکتکنندگان تغییر یابند، ویرایش یا حذف شوند. اگر نمیخواهید نوشتههایتان بیرحمانه ویرایش شوند؛ بنابراین، آنها را اینجا ارائه نکنید.
شما همچنین به ما تعهد میکنید که خودتان این را نوشتهاید یا آن را از یک منبع با مالکیت عمومی یا مشابه آزاد آن برداشتهاید (
ایرانپدیا:حق تکثیر
را برای جزئیات بیشتر ببینید).
کارهای دارای حق تکثیر را بدون اجازه ارائه نکنید!
لغو
راهنمای ویرایش
(در پنجرهٔ تازه باز میشود)
پیشنمایش صفحه با این الگو
الگوهای بهکاررفته در این صفحه:
الگو:In5
(
ویرایش
)
الگو:Str find
(
ویرایش
)
الگو:Strfind short
(
ویرایش
)
الگو:String templates see also
(
ویرایش
)
الگو:Tl
(
ویرایش
)
پودمان:String
(
ویرایش
)
جستجو
جستجو
در حال ویرایش
الگو:یافتن رشته/توضیحات
افزودن مبحث