MCPcopy Create free account
hub / github.com/ZDoom/gzdoom / MatchString

Function MatchString

src/scripting/thingdef_properties.cpp:453–465  ·  view source on GitHub ↗

========================================================================== ==========================================================================

Source from the content-addressed store, hash-verified

451//
452//==========================================================================
453int MatchString (const char *in, const char **strings)
454{
455 int i;
456
457 for (i = 0; *strings != NULL; i++)
458 {
459 if (!stricmp(in, *strings++))
460 {
461 return i;
462 }
463 }
464 return -1;
465}
466
467//==========================================================================
468//

Callers 6

DEFINE_PROPERTYFunction · 0.85
DEFINE_CLASS_PROPERTYFunction · 0.85
ParseActorPropertyFunction · 0.85
MustMatchStringMethod · 0.85
ParseSidedefMethod · 0.85

Calls 1

stricmpFunction · 0.85

Tested by

no test coverage detected