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

Attempt to support case-sensitive search #190

Closed
wants to merge 2 commits into from

Conversation

jamesqo
Copy link

@jamesqo jamesqo commented Feb 20, 2018

@hfiguiere Would really appreciate if you could take a look at this. I tried adding support for a new enchant_dict_check_case_sensitive method that would not break compatibility by altering the existing overload, so wrapper libraries like PyEnchant should be able to amend their API to something like

dict.check('word'[, case_sensitive=False])

Fixes #189

@hfiguiere
Copy link
Member

It is @rrthomas turf. I'm merely an admin for this project.

*
* Returns: 0 if the word is correctly spelled, positive if not, negative if error
*/
int enchant_dict_check_case_sensitive (EnchantDict * dict, const char *const word, ssize_t len)
Copy link
Member

Choose a reason for hiding this comment

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

I don't see how this compiles. Missing the semi-colon at the end.

@hfiguiere
Copy link
Member

And you can just squash the two commits, since the second fixes the first one.

@rrthomas rrthomas closed this Sep 24, 2023
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

Successfully merging this pull request may close these issues.

Add support for checking if a word is in dict w/o normalizing case
3 participants