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

refactor cmpIgnoreStyle and cmpIgnoreCase #16399

Merged
merged 15 commits into from
Dec 31, 2020
Merged

Conversation

ringabout
Copy link
Member

@ringabout ringabout commented Dec 19, 2020

ref timotheecour#472
TODO in this PR:

  • support first char is case-sensitive(make it consistent with the behavior before)
  • all functions in cstrutils support JS backend

TODO in the next PR:

  • add strutils.cmpNimIdentifier
  • clean the docs of cstrutils

@ringabout ringabout marked this pull request as draft December 19, 2020 02:28
@ringabout ringabout marked this pull request as ready for review December 19, 2020 04:25
@ringabout
Copy link
Member Author

In the next PR, I will add cmpNimIdentifier. Maybe it's better to add more tests then.

@ringabout
Copy link
Member Author

PTAL

@ringabout ringabout requested review from Araq and removed request for Araq and timotheecour December 28, 2020 13:28
@Clyybber Clyybber merged commit 5fb56a3 into nim-lang:devel Dec 31, 2020
ringabout added a commit to ringabout/Nim that referenced this pull request Jan 1, 2021
Araq pushed a commit that referenced this pull request Jan 1, 2021
* follow up #16399 clean up docs

* more
mildred pushed a commit to mildred/Nim that referenced this pull request Jan 11, 2021
* init

* support strutils

* more

* better

* Call len once per string/cstring

* Change var to let

* Compare ternary on first char

* More appropriate param name

* fix

* better

* one test

* impl

* more efficient

* minor

Co-authored-by: Clyybber <[email protected]>
mildred pushed a commit to mildred/Nim that referenced this pull request Jan 11, 2021
ardek66 pushed a commit to ardek66/Nim that referenced this pull request Mar 26, 2021
* init

* support strutils

* more

* better

* Call len once per string/cstring

* Change var to let

* Compare ternary on first char

* More appropriate param name

* fix

* better

* one test

* impl

* more efficient

* minor

Co-authored-by: Clyybber <[email protected]>
ardek66 pushed a commit to ardek66/Nim that referenced this pull request Mar 26, 2021
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.

4 participants