diff options
Diffstat (limited to 'platform/darwin/docs/guides')
-rw-r--r-- | platform/darwin/docs/guides/For Style Authors.md.ejs | 1 | ||||
-rw-r--r-- | platform/darwin/docs/guides/Predicates and Expressions.md | 14 |
2 files changed, 12 insertions, 3 deletions
diff --git a/platform/darwin/docs/guides/For Style Authors.md.ejs b/platform/darwin/docs/guides/For Style Authors.md.ejs index 60177e57c2..b8112d6fec 100644 --- a/platform/darwin/docs/guides/For Style Authors.md.ejs +++ b/platform/darwin/docs/guides/For Style Authors.md.ejs @@ -331,6 +331,7 @@ In style specification | Method, function, or predicate type | Format string syn -----------------------|-------------------------------------|--------------------- `array` | | `boolean` | | +`collator` | `NSComparisonPredicateOptions` | `'Québec' =[cd] 'QUEBEC'` `literal` | `+[NSExpression expressionForConstantValue:]` | `%@` representing `NSArray` or `NSDictionary` `number` | | `string` | | diff --git a/platform/darwin/docs/guides/Predicates and Expressions.md b/platform/darwin/docs/guides/Predicates and Expressions.md index e0d4755d4a..4ef9ad6707 100644 --- a/platform/darwin/docs/guides/Predicates and Expressions.md +++ b/platform/darwin/docs/guides/Predicates and Expressions.md @@ -53,9 +53,17 @@ The following aggregate operators are supported: `NSInPredicateOperatorType` | `key IN { 'iOS', 'macOS', 'tvOS', 'watchOS' }` `NSContainsPredicateOperatorType` | `{ 'iOS', 'macOS', 'tvOS', 'watchOS' } CONTAINS key` -Operator modifiers such as `c` (for case insensitivity), `d` (for diacritic -insensitivity), and `l` (for locale sensitivity) are unsupported for comparison -and aggregate operators that are used in the predicate. +The following comparison predicate options are supported for comparison and +aggregate operators that are used in the predicate: + +`NSComparisonPredicateOptions` | Format string syntax +----------------------------------------|--------------------- +`NSCaseInsensitivePredicateOption` | `'QUEBEC' =[c] 'Quebec'` +`NSDiacriticInsensitivePredicateOption` | `'Québec' =[d] 'Quebec'` + +Other comparison predicate options are unsupported, namely `l` +(for locale sensitivity) and `n` (for normalization). A comparison is +locale-sensitive as long as it is case- or diacritic-insensitive. ### Operands |