Skip to content

Releases: huandu/xstrings

API Change: New API `ToPascalCase` and make `ToCamelCase` camelCase

06 Jun 08:27
Compare
Choose a tag to compare

Per discuss in #56, I decide to change the result of ToCamelCase to make it align with common sense. In the past, ToCamelCase converts camel_case_string to CamelCaseString, in which the first letter is upper case; Starting from this release, ToCamelCase returns camelCaseString instead. If we want to convert string to "upper" camel case, we can use new API ToPascalCase.

If you have any concern, please feel free to send issue to me. Thanks.

Full Changelog: v1.4.0...v1.5.0

API Change: `ToCamelCase` preserves source string case

01 Dec 16:12
6ae33fe
Compare
Choose a tag to compare

As ToCamelCase is a port of RoR's String#camelize, this change makes the return value of this method consistent with its origin. Thanks @dbainbri-ciena for raising this issue in #54.

This is a breaking API change. The return value of ToCamelCase("toCamelCase") was Tocamelcase and then it's ToCamelCase now. If this change breaks your code, please let me know and open new issue against this change. Thanks.

Use `strings.Builder` for better performance if it's available

10 Jun 10:01
52197b1
Compare
Choose a tag to compare

`ToCamelCase` is aware of space and hyphen

12 Jan 23:22
Compare
Choose a tag to compare

Per @Ilyes512's request in #45, ToCamelCase is aware of space and hyphen now. The conversion rule is updated in #1. ToSnakeCase and ToKebabCase are updated to convert all unicode space, including tab, CR, LF, etc, to underscore or hyphen according to the new rule.

Add `ToKababCase` and fix some issues

18 Mar 11:30
Compare
Choose a tag to compare

I add a new method ToKababCase as mentioned in #41 per @Ilyes512's request.

I also fix some issues #36 #38 #39 in this release. Thanks all guys who raised these issues to me.

Upgrade `ToCamelCase` to support more reasonable cases

18 Mar 11:25
Compare
Choose a tag to compare

I upgrade ToCamelCase to support cases mentioned in #34 per @jhayotte's request.

All necessary functions so far

05 Mar 18:17
Compare
Choose a tag to compare
v1.0.0

fix #36. wrong skip checks in Squeeze