提交 575b4829 编写于 作者: E elenaspb2019 提交者: Sergei Bocharov

elenbaskakova-DOCSUP-178

docs(multiSearchAllPositions, multiSearchAllPositionsUTF8): Full description of functions  was added
上级 aecece67
......@@ -2,7 +2,7 @@
The search is case-sensitive by default in all these functions. There are separate variants for case insensitive search.
## position(haystack, needle), locate(haystack, needle)
## position(haystack, needle), locate(haystack, needle) {#position}
Search for the substring `needle` in the string `haystack`.
Returns the position (in bytes) of the found substring, starting from 1, or returns 0 if the substring was not found.
......@@ -101,7 +101,7 @@ Result:
└───────────────────────────────────────────────────────────────────┘
```
## multiSearchFirstPosition(haystack, [needle<sub>1</sub>, needle<sub>2</sub>, ..., needle<sub>n</sub>])
## multiSearchFirstPosition(haystack, [needle<sub>1</sub>, needle<sub>2</sub>, ..., needle<sub>n</sub>]) {#multiSearchFirstPosition}
The same as `position` but returns the leftmost offset of the string `haystack` that is matched to some of the needles.
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册