The same as [position](#position) but returns the leftmost offset of the string haystack that is matched to some of the needles.
Returns the position (in bytes) of the found substring, starting from 1, or returns 0 if the substring was not found.
Works under the assumption that the string contains a set of bytes representing a single-byte encoded text. If this assumption is not met, it returns some result.
The same as [position](#position) but returns the array of positions (in bytes) of the found substrings in the string, starting from 1.
Works under the assumption that the string contains a set of bytes representing a single-byte encoded text. If this assumption is not met and a character can't be represented using a single byte, the function doesn't throw an exception and returns some unexpected result. If character can be represented using two bytes, it will use two bytes and so on.
For a case-insensitive search or/and in UTF-8 format use functions [multiSearchFirstPositionCaseInsensitive](#multisearchfirstpositioncaseinsensitive), [multiSearchFirstPositionUTF8](#multisearchfirstpositionUTF8), [multiSearchFirstPositionCaseInsensitiveUTF8](#multiSearchFirstPositionCaseInsensitiveUTF8).
- For a case-insensitive search, use the function `multiSearchAllPositionsCaseInsensitive`.
- For search in UTF-8 format, use the function [multiSearchAllPositionsUTF8](#multiSearchAllPositionsUTF8).
**Syntax**
...
...
@@ -29,18 +30,17 @@ For a case-insensitive search or/and in UTF-8 format use functions [multiSearchF
The same as [positionUTF8](#positionutf8), but returns the array of positions (in Unicode points) of the found substrings in the string, starting from 1.
The same as [position](#position) but returns the leftmost offset of the string haystack that is matched to some of the needles.
Works under the assumption that the string contains a set of bytes representing a UTF-8 encoded text. If this assumption is not met, it returns some result (it doesn't throw an exception).
For a case-insensitive search or/and in UTF-8 format use functions [multiSearchFirstPositionCaseInsensitive](#multisearchfirstpositioncaseinsensitive), [multiSearchFirstPosition](#multisearchfirstposition), [multiSearchFirstPositionCaseInsensitiveUTF8](#multisearchfirstpositioncaseinsensitiveUTF8).
Works under the assumption that the string contains a set of bytes representing a UTF-8 encoded text. If this assumption is not met, the function doesn't throw an exception and returns some unexpected result. If character can be represented using two Unicode points, it will use two and so on.
For a case-insensitive search, use the function `multiSearchAllPositionsCaseInsensitiveUTF8`.
Для поиска без учета регистра и/или в кодировке UTF-8 используйте функции `multiSearchAllPositionsCaseInsensitive, multiSearchAllPositionsUTF8, multiSearchAllPositionsCaseInsensitiveUTF8`.
Такая же, как и [position](#position), только возвращает массив позиций (в байтах) найденных подстрок в строке, начиная с 1.
Работает при допущении, что строка содержит набор байт, представляющий текст в однобайтовой кодировке. Если допущение не выполнено — то возвращает неопределенный результат (не кидает исключение). Если символ может быть представлен с помощью двух байтов, он будет представлен двумя байтами и так далее.
- Для поиска без учета регистра, используйте функцию `multiSearchAllPositionsCaseInsensitive`.
- Для поиска в кодировке UTF-8, используйте функцию [multiSearchAllPositionsUTF8](#multiSearchAllPositionsUTF8).
Такая же, как и [positionUTF8](#positionutf8), но возвращает массив позиций (в кодовых точках Unicode) найденных подстрок в строке, начиная с 1.
Работает при допущении, что строка содержит набор кодовых точек, представляющий текст в кодировке UTF-8. Если допущение не выполнено — то возвращает неопределенный результат (не кидает исключение). Если символ может быть представлен с помощью двух кодовых точек, он будет представлен двумя и так далее.
Для поиска без учета регистра используйте функцию `multiSearchAllPositionsCaseInsensitiveUTF8`.