Details
- Reviewers
lntue michaelrj sivachandra - Commits
- rGe9d571d3b682: [libc] Implement str{,n}casecmp
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
libc/src/string/strcasecmp.cpp | ||
---|---|---|
19 | This add a symbol level dependence on tolower. To avoid it, add a tolower implementation here: https://github.com/llvm/llvm-project/blob/main/libc/src/__support/ctype_utils.h. | |
libc/test/src/string/strcasecmp_test.cpp | ||
29 | Does comparing with the exact difference tightly couple this test with implementation details? |
libc/test/src/string/strcasecmp_test.cpp | ||
---|---|---|
29 |
Yes, FWIW I copied these verbatim from the strcmp tests. But I've changed the test here to use LT or GT relative to 0. |
This add a symbol level dependence on tolower. To avoid it, add a tolower implementation here: https://github.com/llvm/llvm-project/blob/main/libc/src/__support/ctype_utils.h.