You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
go-zero/core/stringx
dahaihu cacd5dc91a
fix Replacer suffix match, and add test case (#2867)
* fix: replace shoud replace the longest match

* feat: revert bytes.Buffer to strings.Builder

* fix: loop reset nextStart

* feat: add node longest match test

* feat: add replacer suffix match test case

* feat: multiple match

* fix: partial match ends

* fix: replace look back upon error

* feat: rm unnecessary branch

---------

Co-authored-by: hudahai <hscxrzs@gmail.com>
Co-authored-by: hushichang <hushichang@sensetime.com>
2 years ago
..
node.go fix Replacer suffix match, and add test case (#2867) 2 years ago
node_fuzz_test.go Feature/trie ac automation (#1479) 3 years ago
node_test.go fix Replacer suffix match, and add test case (#2867) 2 years ago
random.go fix golint issues in core/stringx (#516) 4 years ago
random_test.go initial import 4 years ago
replacer.go fix Replacer suffix match, and add test case (#2867) 2 years ago
replacer_fuzz_test.go chore: add more tests (#2866) 2 years ago
replacer_test.go fix Replacer suffix match, and add test case (#2867) 2 years ago
strings.go feat: add stringx.ToCamelCase (#2622) 2 years ago
strings_test.go feat: add stringx.ToCamelCase (#2622) 2 years ago
trie.go chore: optimize string search with Aho–Corasick algorithm (#1476) 3 years ago
trie_test.go chore: optimize string search with Aho–Corasick algorithm (#1476) 3 years ago