True for a camelCase transition: uppercase letter preceded by a lowercase. */
| 146 | |
| 147 | /* True for a camelCase transition: uppercase letter preceded by a lowercase. */ |
| 148 | static bool is_camel_break(const char *name, int i) { |
| 149 | if (i <= 0) { |
| 150 | return false; |
| 151 | } |
| 152 | char c = name[i]; |
| 153 | char p = name[i - SKIP_ONE]; |
| 154 | return c >= 'A' && c <= 'Z' && p >= 'a' && p <= 'z'; |
| 155 | } |
| 156 | |
| 157 | /* Flush the current buffer as a token into out[]. */ |
| 158 | static void flush_token(char *buf, int *blen, char **out, int *count, int max_out) { |