| 232 | */ |
| 233 | |
| 234 | static int AS_GetKeywordIDForString( const char *name ) |
| 235 | { |
| 236 | //Make sure it's valid |
| 237 | if ( name == NULL || name[0] == '\0' ) |
| 238 | return -1; |
| 239 | |
| 240 | for ( int i = 0; i < NUM_AS_KEYWORDS; i++ ) |
| 241 | { |
| 242 | if ( Q_stricmp( name, keywordNames[i] ) == 0 ) |
| 243 | return i; |
| 244 | } |
| 245 | |
| 246 | return -1; |
| 247 | } |
| 248 | |
| 249 | /* |
| 250 | ------------------------- |
no test coverage detected