Commit Graph
50 Commits
Author SHA1 Message Date
dudaodong de682f2214 feat: add UpperCamelCase 2026-02-24 17:15:30 +08:00
燕归来and燕归来 e78ac65605 fix: Fixed the issue of missing cap when StringToBytes returns result (#306)
Co-authored-by: 燕归来 <dylan@infinni.io>
2025-05-14 15:08:12 +08:00
dudaodong e74126a0bd test: format test code 2025-03-27 11:17:07 +08:00
dudaodong 7653afa919 feat: add FindAllOccurrences 2025-01-10 14:03:45 +08:00
dudaodong 08f14d2b08 feat: add ExtractContent
:
2024-11-08 14:11:25 +08:00
dudaodong 90e5a0bfb2 feat: add RegexMatchAllGroups 2024-09-06 14:19:57 +08:00
dudaodong 93be25920f feat: add TemplateReplace 2024-09-06 11:04:54 +08:00
dudaodong 601df5dc12 feat: add Rotate for string 2024-09-03 16:35:38 +08:00
dudaodong 63216d9b1c feat: add Shuffle for string 2024-09-03 15:54:05 +08:00
dudaodong c32a19868d refactoring: make test clear 2024-09-03 15:33:32 +08:00
dudaodong 71e914019b feat: add Ellipsis for string 2024-09-03 14:36:12 +08:00
Cannian e9280b8c25 add Concat method (#204)
* feat(strutil): add Concat method

* feat(strutil): add Concat method
2024-03-25 10:26:37 +08:00
donutloop 0b5e884371 Strutil: HammingDistance func (#197)
* Strutil: HammingDistance func

The Hamming distance is the number of positions at which the corresponding symbols are different

* Add hamming distance doc
2024-03-03 21:48:34 +08: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
elzaandyuanyou 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
franktzandFrank.Town 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