ទំព័រគំរូ:Str find
1
Usage[កែប្រែ]
{{Str find|text|sub_string}} = Position of first appearance of sub_string in text.
- Only searches first 50 characters of text. Returns -1 if sub_string not found in first 50 characters.
- Character position is 1 based (not 0 based as usual in calculations).
- Warning: if sub_string is empty, then this routine will return 1 !!! This case will often have to be handled specially.
See also[កែប្រែ]
Template:Strfind short can handle longer strings (<99 chars), and gives far better performance, especially for short strings.
Description of all string templates
ឯកសារកម្មខាងលើត្រូវបានសម្រង់ចេញពីទំព័រគំរូ:Str find/doc។ (កែ | ប្រវត្តិ) អ្នករៀបរៀងអាចពិសោធនៅទំព័រប្រអប់ខ្សាច់ (បង្កើត | ចម្លុះ) និង សំណុំល្បង (បង្កើត)របស់ទំព័រគំរូនេះបាន។ សូមបន្ថែមថ្នាក់ក្រុមទៅកាន់ទំព័ររង /doc។ ទំព័ររងនៃទំព័រគំរូនេះ។ |