StrForeachReverse
Description
Walk each character of str backward, binding chr to the current character value. Convenience wrapper around StrForeachReverseIdx. See VecForeachReverse for the full SUCCESS/FAILURE contract.
Usage example (Cross-references)
Usage examples (Cross-references)
// Test StrForeachReverse macro
bool test_str_foreach_reverse(void) {
WriteFmt("Testing StrForeachReverse\n");
DefaultAllocator alloc = DefaultAllocatorInit(); size char_count = 0;
StrForeachReverse(&s, chr) {
// Append the character to the result string
StrPushBackR(&result, chr);
Last updated on