Function ecs_id_match

Synopsis

#include <include/flecs.h>

FLECS_API bool ecs_id_match(ecs_id_t id, ecs_id_t pattern)

Description

Utility to match an id with a pattern. This operation returns true if the provided pattern matches the provided id. The pattern may contain a wildcard (or wildcards, when a pair).

Parameters

id - The id.

pattern - The pattern to compare with.

Source

Line 2444 in include/flecs.h.