llvm-project icon indicating copy to clipboard operation
llvm-project copied to clipboard

[libc] Implement wctype classification functions

Open michaelrj-google opened this issue 8 months ago • 26 comments

The internal implementation for these functions is complete, now they just need their entrypoints. Here's the list of functions:

  • [x] iswlower
  • [x] iswupper
  • [x] iswdigit
  • [x] iswalpha
  • [x] iswalnum
  • [x] iswspace
  • [x] iswblank
  • [x] iswgraph
  • [x] iswprint
  • [x] iswxdigit
  • [x] iswcntrl
  • [x] iswpunct

Please take one at a time. Comment below if you would like to take one.

michaelrj-google avatar Mar 06 '26 23:03 michaelrj-google

Hi!

This issue may be a good introductory issue for people new to working on LLVM. If you would like to work on this issue, your first steps are:

  1. Check that no other contributor is working on this issue. If someone is assigned to the issue or claimed to be working on it, ping the person. After one week without a response, the assignee may be changed.
  2. Leave a comment indicating that you are working on the issue, or just create a pull request after following the steps below. Mention this issue in the description of the pull request.
  3. Fix the issue locally.
  4. Run the test suite locally. Remember that the subdirectories under test/ create fine-grained testing targets, so you can e.g. use make check-clang-ast to only run Clang's AST tests.
  5. Create a Git commit.
  6. Run git clang-format HEAD~1 to format your changes.
  7. Open a pull request to the upstream repository on GitHub. Detailed instructions can be found in GitHub's documentation. Mention this issue in the description of the pull request.

If you have any further questions about this issue, don't hesitate to ask via a comment in the thread below.

llvmbot avatar Mar 06 '26 23:03 llvmbot

@llvm/issue-subscribers-libc

Author: Michael Jones (michaelrj-google)

The internal implementation for these functions is complete, now they just need their entrypoints. Here's the list of functions:
  • [ ] iswlower
  • [ ] iswupper
  • [ ] iswdigit
  • [ ] iswalpha
  • [ ] iswalnum
  • [ ] iswspace
  • [ ] iswblank
  • [ ] iswgraph
  • [ ] iswprint
  • [ ] iswxdigit
  • [ ] iswcntrl
  • [ ] iswpunct

Please take one at a time. Comment below if you would like to take one.

llvmbot avatar Mar 06 '26 23:03 llvmbot

@llvm/issue-subscribers-good-first-issue

Author: Michael Jones (michaelrj-google)

The internal implementation for these functions is complete, now they just need their entrypoints. Here's the list of functions:
  • [ ] iswlower
  • [ ] iswupper
  • [ ] iswdigit
  • [ ] iswalpha
  • [ ] iswalnum
  • [ ] iswspace
  • [ ] iswblank
  • [ ] iswgraph
  • [ ] iswprint
  • [ ] iswxdigit
  • [ ] iswcntrl
  • [ ] iswpunct

Please take one at a time. Comment below if you would like to take one.

llvmbot avatar Mar 06 '26 23:03 llvmbot

Hi would like to take iswlower

albertbolt1 avatar Mar 07 '26 02:03 albertbolt1

Hi would like to take iswupper

csxplorer avatar Mar 07 '26 05:03 csxplorer

Hi, I would take iswalnum

mirimmad avatar Mar 07 '26 07:03 mirimmad

Does this require making a new source file and header in libc/src/wctype?

mirimmad avatar Mar 07 '26 08:03 mirimmad

Does this require making a new source file and header in libc/src/wctype?

looks like iswalpha is already done ?

albertbolt1 avatar Mar 07 '26 08:03 albertbolt1

Does this require making a new source file and header in libc/src/wctype?

looks like iswalpha is already done ?

Yes, I think same needs to be repeated for other functions.

mirimmad avatar Mar 07 '26 08:03 mirimmad

Hi, I would like to work on iswspace

fileho avatar Mar 07 '26 11:03 fileho

Hi, I would like to take iswblank

alowqie avatar Mar 07 '26 12:03 alowqie

Hi, I would like to work on iswprint

neonetizen avatar Mar 07 '26 16:03 neonetizen

hello~ I'd like to take iswgraph

Xinlong-Chen avatar Mar 08 '26 01:03 Xinlong-Chen

Hi, I would like to take iswcntrl

valium007 avatar Mar 08 '26 04:03 valium007

I'll take iswpunct since it seems like it's still available

asmull avatar Mar 09 '26 00:03 asmull

Hi, would like to work on iswxdigit since its the last one available .

Sukumarsawant avatar Mar 09 '26 16:03 Sukumarsawant

Thank you all for your interest! I've checked off all the functions that currently have open or merged PRs and commented on all those PRs.

For functions that don't currently have PRs @asmull claimed iswpunct @Sukumarsawant claimed iswxdigit @mirimmad claimed isalnum

I'm very excited to see how quickly this has gotten done, great work everyone!

michaelrj-google avatar Mar 09 '26 17:03 michaelrj-google

@michaelrj-google I'll create a PR by tomorrow.

mirimmad avatar Mar 09 '26 17:03 mirimmad

@michaelrj-google can i take iswpunct ?

Ko496-glitch avatar Mar 11 '26 04:03 Ko496-glitch

@michaelrj-google can i take iswpunct ?

Already taken by @asmull

mirimmad avatar Mar 11 '26 08:03 mirimmad