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

Remove unnecessary regex lib used by ycf #7823

Merged

Conversation

rickard-green
Copy link
Contributor

No description provided.

@rickard-green rickard-green added team:VM Assigned to OTP team VM enhancement testing currently being tested, tag is used by OTP internal CI labels Nov 3, 2023
@rickard-green rickard-green self-assigned this Nov 3, 2023
Copy link
Contributor

github-actions bot commented Nov 3, 2023

CT Test Results

       3 files     140 suites   46m 18s ⏱️
1 561 tests 1 511 ✔️ 50 💤 0
2 069 runs  2 000 ✔️ 69 💤 0

Results for commit 267b089.

♻️ This comment has been updated with latest results.

To speed up review, make sure that you have read Contributing to Erlang/OTP and that all checks pass.

See the TESTING and DEVELOPMENT HowTo guides for details about how to run test locally.

Artifacts

// Erlang/OTP Github Action Bot

{
return ('0' <= c && c <= '9');
}

Copy link
Contributor

Choose a reason for hiding this comment

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

Is there a reason for not using the libc functions isspace(), isalnum(), isalpha() and isdigit()? If I read the documentation correctly they have been around since C89 and as a bonus are locale aware.

Copy link
Contributor

Choose a reason for hiding this comment

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

Yes, the reason is that they're locale-aware. Friends don't let friends use locale.

…rm_tiny-regex-c_lib/25/OTP-18830

* rickard/rm_tiny-regex-c_lib/24/OTP-18830:
  [erts] Remove unnecessary regex lib
…rm_tiny-regex-c_lib/OTP-18830

* rickard/rm_tiny-regex-c_lib/25/OTP-18830:
  [erts] Remove unnecessary regex lib
@rickard-green rickard-green force-pushed the rickard/rm_tiny-regex-c_lib/OTP-18830 branch from 6bc3ba2 to 267b089 Compare November 27, 2023 12:36
@rickard-green rickard-green merged commit 2838726 into erlang:maint Nov 28, 2023
17 checks passed
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement team:VM Assigned to OTP team VM testing currently being tested, tag is used by OTP internal CI
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants