Home
last modified time | relevance | path

Searched refs:patIndex (Results 1 - 3 of 3) sorted by relevance

/commonlibrary/ets_utils/js_api_module/buffer/
H A Dconverter.cpp327 // Find the position of the last character in pat from patIndex
328 int GetGoodSuffixLengthByLastChar(uint8_t *pat, int patIndex, int patLen) in GetGoodSuffixLengthByLastChar() argument
332 while (patIndex >= 0) { in GetGoodSuffixLengthByLastChar()
333 if (pat[patIndex] == pat[lastIndex]) { in GetGoodSuffixLengthByLastChar()
334 index = patIndex; in GetGoodSuffixLengthByLastChar()
337 patIndex--; in GetGoodSuffixLengthByLastChar()
342 // Find the position of the first character in pat from patIndex
343 int GetGoodSuffixLengthByFirstChar(uint8_t *pat, int patIndex, int tarlen) in GetGoodSuffixLengthByFirstChar() argument
346 for (int i = patIndex; i < tarlen; i++) { in GetGoodSuffixLengthByFirstChar()
355 // Match forward from patIndex t
357 GetBadCharLengthInReverseOrder(uint8_t *pat, char singleChar, int patIndex) GetBadCharLengthInReverseOrder() argument
370 GetBadCharLengthInSequence(uint8_t *pat, char singleChar, int patIndex, int tarlen) GetBadCharLengthInSequence() argument
[all...]
H A Dconverter.h83 int GetGoodSuffixLengthByLastChar(uint8_t *pat, int patIndex, int patLen);
84 int GetGoodSuffixLengthByFirstChar(uint8_t *pat, int patIndex, int tarlen);
85 int GetBadCharLengthInReverseOrder(uint8_t *pat, char singleChar, int patIndex);
86 int GetBadCharLengthInSequence(uint8_t *pat, char singleChar, int patIndex, int tarlen);
/commonlibrary/ets_utils/js_api_module/buffer/test/
H A Dtest_napi.cpp1405 int patIndex = 4; in HWTEST_F() local
1407 int length = OHOS::buffer::GetGoodSuffixLengthByLastChar(pat, patIndex, patLen); in HWTEST_F()

Completed in 4 milliseconds