| 1 | #cxx . . $ `<file>/src/string_comparison.c`/include <cgreen/string_comparison.h>cxx . . $ `<file>/include/cgreen/string_comparison.h`/ |
| 2 | #ifndef __cplusplus |
| 3 | #include <stdbool.h> |
| 4 | #endif |
| 5 | #include <stddef.h> |
| 6 | #include <string.h> |
| 7 | |
| 8 | |
| 9 | boolcxx . . $ `<external>/13015445228558014418/stdbool.h:36:9`! strings_are_equalcxx . . $ strings_are_equal(b7a7aa4a824b7595).(const char* actual, const char* expected) { |
| 10 | /* TODO: if expected is null, warn user to use appropriate non-string assert instead */ |
| 11 | if ((actual == NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!) && (expected == NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!)) { |
| 12 | return truecxx . . $ `<external>/13015445228558014418/stdbool.h:37:9`!; |
| 13 | } |
| 14 | |
| 15 | if ((actual == NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!) || (expected == NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!)) { |
| 16 | return falsecxx . . $ `<external>/13015445228558014418/stdbool.h:38:9`!; |
| 17 | } |
| 18 | |
| 19 | return (strcmpcxx . . $ strcmp(5ae29d726ae57f88).(actual, expected) == 0); |
| 20 | } |
| 21 | |
| 22 | boolcxx . . $ `<external>/13015445228558014418/stdbool.h:36:9`! string_containscxx . . $ string_contains(b7a7aa4a824b7595).(const char* actual, const char* expected) { |
| 23 | /* TODO: if expected is null, warn user */ |
| 24 | if ((actual == NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!) || (expected == NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!)) { |
| 25 | return falsecxx . . $ `<external>/13015445228558014418/stdbool.h:38:9`!; |
| 26 | } |
| 27 | |
| 28 | return (strstrcxx . . $ strstr(a713fe7b9a57cf96).(actual, expected) != NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!); |
| 29 | } |