This is an archive of the discontinued LLVM Phabricator instance.

[libc] Add islower and isupper implementation.
ClosedPublic

Authored by cgyurgyik on Jul 30 2020, 11:18 AM.

Details

Summary

[libc] Adds islower, isupper implementation.

Replaces EXPECT_TRUE/FALSE with EXPECT_EQ/NE. I originally chose the former because a function named is* and boolean values go together well. However, with the simplicity of ctype functions, it is not really necessary to force this cast. I also learned that EXPECT_TRUE/FALSE require this explicit boolean value for this exact reason!

Diff Detail

Event Timeline

cgyurgyik created this revision.Jul 30 2020, 11:18 AM
cgyurgyik requested review of this revision.Jul 30 2020, 11:18 AM
cgyurgyik edited the summary of this revision. (Show Details)
sivachandra accepted this revision.Jul 31 2020, 10:36 AM

Nit: Make the subject line have just one sentence like, "Add implementations of islower and isupper".

This revision is now accepted and ready to land.Jul 31 2020, 10:36 AM
cgyurgyik retitled this revision from [libc] Adds islower, isupper. Uses EXPECT_EQ/NE in ctype function tests. to [libc] Add islower and isupper implementation. .Jul 31 2020, 10:58 AM

Nit: Make the subject line have just one sentence like, "Add implementations of islower and isupper".

Done.

This revision was automatically updated to reflect the committed changes.