Skip to content

cupertino-files / PREDICATE_TYPE_FUNCTIONS

Variable: PREDICATE_TYPE_FUNCTIONS ​

const PREDICATE_TYPE_FUNCTIONS: ReadonlyMap<number, string>

Defined in: src/tst/predicates.ts:166

predicate_type values whose formula is a function call, not a comparison.

Numbers' non-comparison conditions — "is blank", "text contains", and the rest — compile to a function rather than an operator, so they have no entry in PREDICATE_TYPE_OPERATORS. Recording the codes anyway means a reader can say which condition it is looking at, and it keeps them from being mistaken for gaps in the comparison enum.

Type 3 is "text contains" in both rule systems: it compiles to NOT(ISERROR(FIND.CASEINSENSITIVE(needle, cell))) — function index 296, SEARCH-shaped in its arguments but not SEARCH, which is 131. The name comes from the app's own function registry; no document ever showed it.

MIT licensed. Independently made — not by Apple in California. Not affiliated with or endorsed by Apple Inc.