[libc] Templatize str{,n}cmp
authorAlex Brachet <abrachet@google.com>
Mon, 9 Jan 2023 20:13:02 +0000 (20:13 +0000)
committerAlex Brachet <abrachet@google.com>
Mon, 9 Jan 2023 20:13:02 +0000 (20:13 +0000)
commitc6dcbed2e5327f0c11962bdbbcd02f1b5c570fea
tree464ebf7577f42fdf0fd15d13f5a3824fe4e0c51d
parent61eb12e1f423063b0ead944827dc53b02baed0d4
[libc] Templatize str{,n}cmp

This will be used to implement the case insensitive str{,n}casecmp

Differential Revision: https://reviews.llvm.org/D141235
libc/src/__support/CPP/functional.h
libc/src/string/CMakeLists.txt
libc/src/string/memory_utils/CMakeLists.txt
libc/src/string/memory_utils/strcmp_implementations.h [new file with mode: 0644]
libc/src/string/strcmp.cpp
libc/src/string/strncmp.cpp
utils/bazel/llvm-project-overlay/libc/BUILD.bazel