Returns true if the str is a valid C identifier for use in a #define/#undef macro
pub fn isValidIdentifier(str: []const u8) bool
pub fn isValidIdentifier(str: []const u8) bool {
for (str, 0..) |c, i| switch (c) {
'0'...'9' => if (i == 0) return false,
'a'...'z', 'A'...'Z', '_' => {},
else => return false,
};
return true;
}