Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[Snippets] Added String Manipulation Snippets for java #236

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

Merged
Mathys-Gasnier merged 23 commits into quicksnip-dev:main from Mcbencrafter:main
Jan 30, 2025

Conversation

Copy link
Contributor

@Mcbencrafter Mcbencrafter commented Jan 18, 2025
edited
Loading

Description

I added multiple string manipulation snippets for java including:

  1. case conversion (7)
  • string to Titlecase
  • string to snake_case
  • string to PascalCase
  • string to param-case
  • string to camelCase
  • camcelCase <-> snake_case
  1. other conversions (6)
  • space <-> tabs
  • string <-> unicode
  • string <-> ascii list
  1. string normalisation (5)
  • slugify string
  • capatalize words
  • remove punctuation
  • remove special characters
  • normalize whitespaces (consecutive whitespaces to single space)
  1. other text transformations (5)
  • truncate string
  • mask text
  • extract text between to delimiters
  • reverse word contents
  • reverse word order
  1. string analyzing (8)
  • count character frequency in string
  • count consonants
  • count vowels
  • count words
  • find unique characters
  • find longest word
  • is palindrome
  • is anagram
  1. other (1)
  • password generator

Type of Change

  • ✨ New snippet
  • 🛠 Improvement to an existing snippet
  • 🐞 Bug fix
  • 📖 Documentation update
  • 🔧 Other (please describe):

Checklist

  • I have tested my code and verified it works as expected.
  • My code follows the style and contribution guidelines of this project.
  • Comments are added where necessary for clarity.
  • Documentation has been updated (if applicable).
  • There are no new warnings or errors from my changes.

Related Issues

Closes #

Additional Context

Screenshots (Optional)

Click to view screenshots

Copy link
Collaborator

majvax commented Jan 18, 2025

Hello, Thanks for you contribution. 🙌

It will surely take some time to review and test all the snippets, so I will ask you to be patient.
I looked at it for 5 minutes and noticed that tabs to space and space to tabs are the same snippets.
Since there are a lot of snippets, could you double check if there are any other errors like this one?

Copy link
Contributor Author

Hey, thank you for your reply.

I double checked and the mentioned snippets are the only ones which where identical as i could see.
I could also send the source java files to you, if that would help. I just copied the code from there into the snippets and added the needed snippet metadata, so they should be identical.

Copy link
Contributor Author

nvm i accidentally commited .husky/pre-commit because i deleted it locally (there were some errors and i didnt have enough space on my pc to install wsl)

Copy link
Collaborator

@Mathys-Gasnier Mathys-Gasnier left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great work ! We can discuss about the topics I raised bellow and it will be good for me

Copy link
Collaborator

@Mathys-Gasnier Mathys-Gasnier left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good

@Mathys-Gasnier Mathys-Gasnier merged commit edfab6e into quicksnip-dev:main Jan 30, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Reviewers

@majvax majvax majvax approved these changes

@Mathys-Gasnier Mathys-Gasnier Mathys-Gasnier approved these changes

Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

AltStyle によって変換されたページ (->オリジナル) /