[libc] Add strcspn and strpbrk implementation. Also removes unnecessary header from strspn, and adds the bitset to dependencies.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
libc/src/string/strpbrk.cpp | ||
---|---|---|
16 | You can implement strpbrk on top of strcspn |
libc/src/string/strpbrk.cpp | ||
---|---|---|
16 | Ack, let me tackle that. |
Comment Actions
Replaces include "../strcspn.h" with a common static function in a string_util. This allows the user to package libc with strpbrk but without strcspn.
You can implement strpbrk on top of strcspn