| 262 | } |
| 263 | |
| 264 | static bool ValidIdentifier(const char *pId, size_t MaxLength) |
| 265 | { |
| 266 | if(pId[0] == '\0' || (size_t)str_length(pId) >= MaxLength) |
| 267 | { |
| 268 | return false; |
| 269 | } |
| 270 | |
| 271 | for(int i = 0; pId[i] != '\0'; ++i) |
| 272 | { |
| 273 | if(pId[i] == '"' || pId[i] == '/' || pId[i] == '\\') |
| 274 | { |
| 275 | return false; |
| 276 | } |
| 277 | } |
| 278 | return true; |
| 279 | } |
| 280 | |
| 281 | static bool ValidateIdentifier(const char *pId, size_t MaxLength, const char *pContext, IConsole *pConsole) |
| 282 | { |
no test coverage detected