Releases: huandu/xstrings
API Change: New API `ToPascalCase` and make `ToCamelCase` camelCase
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
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
See #46 for details. Thanks, @ninedraft.
`ToCamelCase` is aware of space and hyphen
Add `ToKababCase` and fix some issues
Upgrade `ToCamelCase` to support more reasonable cases
All necessary functions so far
v1.0.0 fix #36. wrong skip checks in Squeeze