1
0
mirror of https://github.com/duke-git/lancet.git synced 2026-03-01 00:35:28 +08:00
Commit Graph

38 Commits

Author SHA1 Message Date
Marcel Edmund Franke 4e515e9bd5 Strutil: HammingDistance func
The Hamming distance is the number of positions at which the corresponding symbols are different
2024-03-02 15:35:23 +01:00
dudaodong 22af59565e fix: fix issue #168 2024-02-06 16:59:01 +08:00
dudaodong f9e047f190 feat: add SubInBetween 2024-02-06 16:47:30 +08:00
elza f445ecbaf8 feat: add IsNotBlank func (#132)
Co-authored-by: yuanyou <yuanyou@kezaihui.com>
2023-09-13 15:29:26 +08:00
dudaodong 8229de2f10 test: add parallel running for all unit test functions 2023-06-30 10:18:45 +08:00
dudaodong 9b829aa695 feat: add RemoveWhiteSpace 2023-06-08 16:47:31 +08:00
dudaodong 2894bec80c feat: add ContainsAll and ContainsAny 2023-05-31 10:51:16 +08:00
dudaodong e149ae2f72 feat: add HideString 2023-05-23 18:39:59 +08:00
dudaodong 9fcf046fb3 feat: add Trim and SplitAndTrim 2023-05-10 10:53:17 +08:00
dudaodong c3f1bc39d7 feat: add ReplaceWithMap 2023-05-10 10:29:26 +08:00
dudaodong f5784b0f46 feat: add ReplaceByMap 2023-05-10 10:03:13 +08:00
dudaodong 33c8875d14 test: update TestWordCount 2023-04-26 19:35:28 +08:00
dudaodong 66bd339e3a doc: add example for strutil new functions 2023-04-17 16:35:26 +08:00
燕归来 04abb7a3ea feat: add some function for strutil package #88 (#89) 2023-04-17 16:07:14 +08:00
dudaodong 217350042b feat: add RemoveNonPrintable 2023-03-30 14:52:32 +08:00
dudaodong ec740e442c feat: add WordCount 2023-02-21 14:27:00 +08:00
dudaodong ed98ad53ec feat: add SplitWords 2023-02-21 14:16:36 +08:00
dudaodong 8784be1583 feat: add Pad function 2023-02-19 12:37:26 +08:00
dudaodong 84cd68de7f fix: fix bugs of PadEnd and PadStart 2023-02-19 12:34:39 +08:00
dudaodong 1dc5e8ac23 feat: add Substring function 2022-12-29 19:55:40 +08:00
dudaodong a58e52e53c test: add example function for strutil package 2022-12-27 15:40:51 +08:00
dudaodong 2c57266f8e test: update some test functions 2022-12-15 15:22:01 +08:00
dudaodong 5cfb11f036 feat: fix and add SnakeCase/UpperSnakeCase 2022-12-14 21:17:30 +08:00
dudaodong 5b3d48a1e7 feat: fix and add KebabCase/UpperKebabCase 2022-12-14 21:09:22 +08:00
dudaodong d0576e028f clean code 2022-12-13 19:52:37 +08:00
dudaodong 76bdec2b54 test: add cases for Capitalize 2022-12-13 16:16:16 +08:00
dudaodong fa20aba3a7 fix: fix CamelCase function bug 2022-12-13 14:23:32 +08:00
dudaodong 7a4a429e23 test: add cases for Capitalize 2022-12-12 21:11:19 +08:00
dudaodong ab0716a472 refactor: change ReverseStr to Reverse in strutil package 2022-08-24 10:35:18 +08:00
franktz 84a69d1fa5 feat: strutil.SplitEx. Split a given string whether the result contains empty string (#31)
Co-authored-by: Frank.Town <tangzhi21@sfmail.sf-express.com>
2022-05-11 15:19:53 +08:00
dudaodong 50c6e51393 upgrade go module v2 2022-03-17 10:57:35 +08:00
dudaodong ca88687f3d feat: add UpperFirst func 2022-01-22 18:55:41 +08:00
dudaodong 3438f3b18a refactor: rewrite all unit test functions with assert 2022-01-09 13:07:49 +08:00
dudaodong 73f4ae7b35 refactor: add internal/assert.go and rewrite all unit funcs string_test.go with assert 2022-01-08 21:58:35 +08:00
dudaodong 97e0789ea4 feat: add Wrap and Unwrap func 2022-01-03 20:11:15 +08:00
dudaodong c625a88067 refactor: rename package 'utils' to 'internal' 2021-12-31 11:36:11 +08:00
donutloop ab012f2545 LowerFirst: use slicing and utf8 func tools (#5)
Replace looping with slicing and utf8 func tools operations.
2021-12-28 19:25:44 +08:00
dudaodong 3254591ab9 publish lancet 2021-11-28 21:28:23 +08:00