< 模板:Str find
Xiayu讨论 | 贡献2020年7月7日 (二) 18:12的版本 (导入1个版本)
(差异) ←上一版本 | 最后版本 (差异) | 下一版本→ (差异)

模板:Str find/doc

来自中文乐谱库

Lua错误:无法创建进程:proc_open(/dev/null): failed to open stream: Operation not permitted[[Category:模板:SUBJECTSPACE ZH说明文件]]

用法

{{str find|text|sub_string}} = 在字串text中搜尋並返回特定字串sub_string的位置。

  • 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

參見

  • {{Strfind short}}(如果使用Str find引致模板「擴展深度超出限制」,可嘗試改用Strfind short。)

Lua错误:无法创建进程:proc_open(/dev/null): failed to open stream: Operation not permitted