Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature request: Split words by CamelCase #35

Open
JustAndreww opened this issue Feb 20, 2020 · 1 comment
Open

Feature request: Split words by CamelCase #35

JustAndreww opened this issue Feb 20, 2020 · 1 comment

Comments

@JustAndreww
Copy link

This mostly identical to #34. The current script implementations seems to skip such strings. But a typo can be hidden in the middle of the SomeBigCamelCaseStrng and nobody can ever notice that :)

@vlajos
Copy link
Owner

vlajos commented Feb 21, 2020

Unfortunately both grep and sed define word boundaries (which are a change between word constituent characters (letters, numbers and underscore) and the remaining characters/ends) quite strictly.
Both this and #34 would require

  • redefining the word boundaries in these tools
  • or pre/post processing the inputs to split words at case change and at underscores to let the tools catch them
  • or use different solution.

So none of them are really straightforward. :-(
The pre/post processing looks the most viable, but it still may have a huge negative impact on performance.
I'll keep this issue in mind, but it is unlikely that it gets solves in the near future.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants