| 692 | } |
| 693 | |
| 694 | static bool is_lua_identifier(const char *str) |
| 695 | { |
| 696 | CE_ENSURE(NULL != str); |
| 697 | |
| 698 | if (str[0] == '\0') |
| 699 | return false; |
| 700 | |
| 701 | if (!(isalpha(str[0]) != 0 || str[0] == '_')) |
| 702 | return false; |
| 703 | |
| 704 | for (const char *ch = str + 1; *ch; ++ch) { |
| 705 | if (isalnum(*ch) == 0 && *ch != '_') |
| 706 | return false; |
| 707 | } |
| 708 | |
| 709 | return true; |
| 710 | } |
| 711 | |
| 712 | static bool is_lua_identifier_char(char ch) |
| 713 | { |
no outgoing calls
no test coverage detected