Searched refs:predicate (Results 1 - 25 of 136) sorted by relevance

123456

/macosx-10.10.1/pyobjc-45/2.5/pyobjc/pyobjc-framework-Cocoa/Examples/AppKit/PredicateEditorSample/
H A DCaseInsensitivePredicateTemplate.py6 predicate = super(CaseInsensitivePredicateTemplate, self).predicateWithSubpredicates_(subpredicates)
8 # construct an identical predicate, but add the
11 predicate.leftExpression(),
12 predicate.rightExpression(),
13 predicate.comparisonPredicateModifier(),
14 predicate.predicateOperatorType(),
15 predicate.options() | NSCaseInsensitivePredicateOption)
H A DMyWindowController.py132 # spotlightFriendlyPredicate:predicate
134 # This method will "clean up" an NSPredicate to make it ready for Spotlight, or return nil if the predicate can't be cleaned.
138 # - Any compound predicate (other than NOT) must have at least two subpredicates
140 def spotlightFriendlyPredicate_(self, predicate):
141 if predicate == NSPredicate.predicateWithValue_(True) or predicate == NSPredicate.predicateWithValue_(False):
144 elif isinstance(predicate, NSCompoundPredicate):
146 type = predicate.compoundPredicateType()
148 for dirtySubpredicate in predicate.subpredicates():
165 return predicate
[all...]
/macosx-10.10.1/pyobjc-45/2.6/pyobjc/pyobjc-framework-Cocoa/Examples/AppKit/PredicateEditorSample/
H A DCaseInsensitivePredicateTemplate.py6 predicate = super(CaseInsensitivePredicateTemplate, self).predicateWithSubpredicates_(subpredicates)
8 # construct an identical predicate, but add the
11 predicate.leftExpression(),
12 predicate.rightExpression(),
13 predicate.comparisonPredicateModifier(),
14 predicate.predicateOperatorType(),
15 predicate.options() | NSCaseInsensitivePredicateOption)
H A DMyWindowController.py132 # spotlightFriendlyPredicate:predicate
134 # This method will "clean up" an NSPredicate to make it ready for Spotlight, or return nil if the predicate can't be cleaned.
138 # - Any compound predicate (other than NOT) must have at least two subpredicates
140 def spotlightFriendlyPredicate_(self, predicate):
141 if predicate == NSPredicate.predicateWithValue_(True) or predicate == NSPredicate.predicateWithValue_(False):
144 elif isinstance(predicate, NSCompoundPredicate):
146 type = predicate.compoundPredicateType()
148 for dirtySubpredicate in predicate.subpredicates():
165 return predicate
[all...]
/macosx-10.10.1/pyobjc-45/pyobjc/pyobjc-framework-Cocoa-2.5.1/Examples/AppKit/PredicateEditorSample/
H A DCaseInsensitivePredicateTemplate.py6 predicate = super(CaseInsensitivePredicateTemplate, self).predicateWithSubpredicates_(subpredicates)
8 # construct an identical predicate, but add the
11 predicate.leftExpression(),
12 predicate.rightExpression(),
13 predicate.comparisonPredicateModifier(),
14 predicate.predicateOperatorType(),
15 predicate.options() | NSCaseInsensitivePredicateOption)
H A DMyWindowController.py132 # spotlightFriendlyPredicate:predicate
134 # This method will "clean up" an NSPredicate to make it ready for Spotlight, or return nil if the predicate can't be cleaned.
138 # - Any compound predicate (other than NOT) must have at least two subpredicates
140 def spotlightFriendlyPredicate_(self, predicate):
141 if predicate == NSPredicate.predicateWithValue_(True) or predicate == NSPredicate.predicateWithValue_(False):
144 elif isinstance(predicate, NSCompoundPredicate):
146 type = predicate.compoundPredicateType()
148 for dirtySubpredicate in predicate.subpredicates():
165 return predicate
[all...]
/macosx-10.10.1/libdispatch-442.1.4/dispatch/
H A Donce.h35 * A predicate for use with dispatch_once(). It must be initialized to zero.
46 * @param predicate
61 dispatch_once(dispatch_once_t *predicate, dispatch_block_t block);
65 _dispatch_once(dispatch_once_t *predicate, dispatch_block_t block) argument
67 if (DISPATCH_EXPECT(*predicate, ~0l) != ~0l) {
68 dispatch_once(predicate, block);
78 dispatch_once_f(dispatch_once_t *predicate, void *context,
84 _dispatch_once_f(dispatch_once_t *predicate, void *context, argument
87 if (DISPATCH_EXPECT(*predicate, ~0l) != ~0l) {
88 dispatch_once_f(predicate, contex
[all...]
/macosx-10.10.1/objc4-646/runtime/
H A Dobjc-auto.h104 OBJC_EXPORT BOOL objc_atomicCompareAndSwapPtr(id predicate, id replacement, volatile id *objectLocation)
107 OBJC_EXPORT BOOL objc_atomicCompareAndSwapPtrBarrier(id predicate, id replacement, volatile id *objectLocation)
111 OBJC_EXPORT BOOL objc_atomicCompareAndSwapGlobal(id predicate, id replacement, volatile id *objectLocation)
113 OBJC_EXPORT BOOL objc_atomicCompareAndSwapGlobalBarrier(id predicate, id replacement, volatile id *objectLocation)
116 OBJC_EXPORT BOOL objc_atomicCompareAndSwapInstanceVariable(id predicate, id replacement, volatile id *objectLocation)
118 OBJC_EXPORT BOOL objc_atomicCompareAndSwapInstanceVariableBarrier(id predicate, id replacement, volatile id *objectLocation)
225 static OBJC_INLINE BOOL objc_atomicCompareAndSwapPtr(id predicate, id replacement, volatile id *objectLocation) argument
226 { void *original = InterlockedCompareExchangePointer((void * volatile *)objectLocation, (void *)replacement, (void *)predicate); return (original == predicate); }
228 static OBJC_INLINE BOOL objc_atomicCompareAndSwapPtrBarrier(id predicate, i argument
231 objc_atomicCompareAndSwapPtr(id predicate, id replacement, volatile id *objectLocation) argument
234 objc_atomicCompareAndSwapPtrBarrier(id predicate, id replacement, volatile id *objectLocation) argument
238 objc_atomicCompareAndSwapGlobal(id predicate, id replacement, volatile id *objectLocation) argument
241 objc_atomicCompareAndSwapGlobalBarrier(id predicate, id replacement, volatile id *objectLocation) argument
244 objc_atomicCompareAndSwapInstanceVariable(id predicate, id replacement, volatile id *objectLocation) argument
247 objc_atomicCompareAndSwapInstanceVariableBarrier(id predicate, id replacement, volatile id *objectLocation) argument
[all...]
/macosx-10.10.1/llvmCore-3425.0.34/utils/unittest/googletest/include/gtest/
H A Dgtest-death-test.h155 // integer exit status that satisfies predicate, and emitting error output
157 # define ASSERT_EXIT(statement, predicate, regex) \
158 GTEST_DEATH_TEST_(statement, predicate, regex, GTEST_FATAL_FAILURE_)
162 # define EXPECT_EXIT(statement, predicate, regex) \
163 GTEST_DEATH_TEST_(statement, predicate, regex, GTEST_NONFATAL_FAILURE_)
176 // Two predicate classes that can be used in {ASSERT,EXPECT}_EXIT*:
/macosx-10.10.1/kext_tools-384.1.4/
H A DQEQuery.c124 CFStringRef predicate);
127 CFStringRef predicate);
269 CFStringRef predicate,
280 CFDictionarySetValue(query->parseCallbacks, predicate, pCallback);
282 CFDictionaryRemoveValue(query->parseCallbacks, predicate);
296 CFStringRef predicate,
307 CFDictionarySetValue(query->evaluationCallbacks, predicate, eCallback);
309 CFDictionaryRemoveValue(query->evaluationCallbacks, predicate);
324 CFStringRef predicate)
326 if (predicate) {
267 QEQuerySetParseCallbackForPredicate( QEQueryRef query, CFStringRef predicate, QEQueryParseCallback parseCallback) argument
294 QEQuerySetEvaluationCallbackForPredicate( QEQueryRef query, CFStringRef predicate, QEQueryEvaluationCallback evaluationCallback) argument
321 QEQuerySetSynonymForPredicate( QEQueryRef query, CFStringRef synonym, CFStringRef predicate) argument
390 CFStringRef predicate = NULL; local
507 CFStringRef predicate = NULL; // must release local
625 QEQueryCreateElement( QEQueryRef query, CFStringRef predicate, CFArrayRef arguments, Boolean negated) argument
921 QEQueryElementSetPredicate( CFMutableDictionaryRef element, CFStringRef predicate) argument
1046 char * predicate = NULL; local
1176 CFStringRef predicate = CFDictionaryGetValue(query->queryStackTop, local
1190 CFStringRef predicate = CFDictionaryGetValue(query->queryStackTop, local
1357 CFStringRef predicate = NULL; local
1380 _QEQueryParseCallbackForPredicate( QEQueryRef query, CFStringRef predicate) argument
1404 _QEQueryEvaluationCallbackForPredicate( QEQueryRef query, CFStringRef predicate) argument
[all...]
H A DQEQuery.h42 * - Arguments: data for use by the predicate
73 * predicate, the query engine will just keep rolling along (and you might see a
78 * - The element being built, with its predicate already set to the token
92 * Your callback should update the element by changing its predicate if necessary
110 * NOTE: If you get a reference to query element's predicate, and then set the
111 * predicate, your original predicate will change! Always 're-fetch' the
112 * predicate if you need to check it after setting it. (I think this is a CF
121 * - QEQueryCreateElement() - creates an element with a user-define predicate
152 * as well as just checking them against a query predicate
[all...]
/macosx-10.10.1/Security-57031.1.35/SecurityTests/clxutils/threadTest/
H A DmdsLookupThr.cpp64 CSSM_SELECTION_PREDICATE predicate; local
82 /* one predicate - the caller's key and CSSM_DB_OPERATOR */
83 predicate.DbOperator = valOp;
84 predicate.Attribute.Info.AttributeNameFormat = CSSM_DB_ATTRIBUTE_NAME_AS_STRING;
85 predicate.Attribute.Info.Label.AttributeName = (char *)key;
86 predicate.Attribute.Info.AttributeFormat = valForm;
89 predicate.Attribute.Value = &predData;
90 predicate.Attribute.NumberOfValues = 1;
95 query.SelectionPredicate = &predicate;
/macosx-10.10.1/ruby-106/ruby/lib/rexml/
H A Dquickpath.rb79 matches |= predicate( element.to_a, path[1..-1] ) if element.kind_of? Element
83 return predicate( elements, path )
144 # A predicate filters a node-set with respect to an axis to produce a
160 def QuickPath::predicate( elements, path )
169 predicate = path[1..ind-1]
174 predicate.gsub!(
178 predicate.gsub!( /&/u, "&&" )
179 predicate.gsub!( /=/u, "==" )
180 predicate.gsub!( /@(\w[-\w.]*)/u, 'attribute("\1")' )
181 predicate
[all...]
/macosx-10.10.1/emacs-93/emacs/lisp/erc/
H A Derc-compat.el123 (defun erc-member-if (predicate list)
129 (when (funcall predicate (car ptr))
134 (defun erc-delete-if (predicate seq)
139 (while (when (funcall predicate (car seq))
145 (when (funcall predicate (car next))
154 (defun erc-remove-if-not (predicate seq)
160 (when (funcall predicate el)
/macosx-10.10.1/WebKit2-7600.1.25/UIProcess/
H A DDrawingAreaProxy.h128 #define DRAWING_AREA_PROXY_TYPE_CASTS(ToValueTypeName, predicate) \
129 TYPE_CASTS_BASE(ToValueTypeName, DrawingAreaProxy, value, value->predicate, value.predicate)
/macosx-10.10.1/Security-57031.1.35/SecurityTests/cspxutils/mdsLookup/
H A DmdsLookup.cpp216 CSSM_SELECTION_PREDICATE predicate; local
247 /* one predicate - the caller's key and CSSM_DB_OPERATOR */
248 predicate.DbOperator = valOp;
249 predicate.Attribute.Info.AttributeNameFormat = CSSM_DB_ATTRIBUTE_NAME_AS_STRING;
250 predicate.Attribute.Info.Label.AttributeName = (char *)key;
251 predicate.Attribute.Info.AttributeFormat = valForm;
254 predicate.Attribute.Value = &predData;
255 predicate.Attribute.NumberOfValues = 1;
260 query.SelectionPredicate = &predicate;
/macosx-10.10.1/emacs-93/emacs/lisp/calendar/
H A Dparse-time.el177 "(slots predicate extractor...)")
193 (predicate (pop rule))
196 (setq parse-time-val (cond ((and (consp predicate)
197 (not (eq (car predicate)
200 (<= (car predicate) parse-time-elt)
201 (<= parse-time-elt (cadr predicate))
203 ((symbolp predicate)
205 (symbol-value predicate))))
206 ((funcall predicate)))))
/macosx-10.10.1/WTF-7600.1.24/wtf/
H A DMessageQueue.h138 inline auto MessageQueue<DataType>::waitForMessageFilteredWithTimeout(MessageQueueWaitResult& result, Predicate&& predicate, double absoluteTime) -> std::unique_ptr<DataType>
145 found = m_queue.findIf([&predicate](const std::unique_ptr<DataType>& ptr) -> bool {
147 return predicate(*ptr);
198 inline void MessageQueue<DataType>::removeIf(Predicate&& predicate) argument
202 auto found = m_queue.findIf([&predicate](const std::unique_ptr<DataType>& ptr) -> bool {
204 return predicate(*ptr);
/macosx-10.10.1/Security-57031.1.35/Security/include/security_pkcs12/
H A Dpkcs12Utils.cpp558 CSSM_SELECTION_PREDICATE predicate; local
571 predicate.DbOperator = CSSM_DB_EQUAL;
573 predicate.Attribute.Info.AttributeNameFormat =
575 predicate.Attribute.Info.Label.AttributeName =
577 predicate.Attribute.Info.AttributeFormat =
580 predicate.Attribute.Value = &keyLabel;
581 query.SelectionPredicate = &predicate;
695 predicate.Attribute.Value = keyDigest;
769 CSSM_SELECTION_PREDICATE predicate; local
777 predicate
[all...]
/macosx-10.10.1/Security-57031.1.35/Security/libsecurity_pkcs12/lib/
H A Dpkcs12Utils.cpp558 CSSM_SELECTION_PREDICATE predicate; local
571 predicate.DbOperator = CSSM_DB_EQUAL;
573 predicate.Attribute.Info.AttributeNameFormat =
575 predicate.Attribute.Info.Label.AttributeName =
577 predicate.Attribute.Info.AttributeFormat =
580 predicate.Attribute.Value = &keyLabel;
581 query.SelectionPredicate = &predicate;
695 predicate.Attribute.Value = keyDigest;
769 CSSM_SELECTION_PREDICATE predicate; local
777 predicate
[all...]
/macosx-10.10.1/WebKit2-7600.1.25/WebProcess/WebPage/
H A DDrawingArea.h149 #define DRAWING_AREA_TYPE_CASTS(ToValueTypeName, predicate) \
150 TYPE_CASTS_BASE(ToValueTypeName, DrawingArea, value, value->predicate, value.predicate)
/macosx-10.10.1/emacs-93/emacs/lisp/emacs-lisp/
H A Dcrm.el148 (defun crm-collection-fn (string predicate flag)
168 (let ((result (try-completion string crm-completion-table predicate)))
175 ;; called via (all-completions string 'crm-completion-fn predicate)?
176 (all-completions string crm-completion-table predicate)
177 ;; called via (try-completion string 'crm-completion-fn predicate)?
178 (let ((result (try-completion string crm-completion-table predicate)))
232 candidate crm-completion-table minibuffer-completion-predicate)))
245 minibuffer-completion-predicate)))
275 minibuffer-completion-predicate))
374 The table and predicate use
[all...]
/macosx-10.10.1/Security-57031.1.35/Security/libsecurity_apple_x509_tp/lib/
H A DTPDatabase.cpp50 CSSM_SELECTION_PREDICATE predicate; local
57 predicate.DbOperator = CSSM_DB_EQUAL;
58 predicate.Attribute.Info.AttributeNameFormat =
60 predicate.Attribute.Info.Label.AttributeName = (char*) "Subject";
61 predicate.Attribute.Info.AttributeFormat = CSSM_DB_ATTRIBUTE_FORMAT_BLOB;
62 predicate.Attribute.Value = const_cast<CSSM_DATA_PTR>(subjectName);
63 predicate.Attribute.NumberOfValues = 1;
68 query.SelectionPredicate = &predicate;
/macosx-10.10.1/ppp-786.1.1/Controller/
H A Dbehaviors.c38 static dispatch_once_t predicate = 0; local
41 dispatch_once(&predicate, ^{
/macosx-10.10.1/emacs-93/emacs/lisp/mail/
H A Drmailsort.el167 (predicate nil) ;< or string-lessp
183 ;; Decide predicate: < or string-lessp
185 (setq predicate (function <))
186 (setq predicate (function string-lessp)))
191 (funcall predicate (car a) (car b))))))

Completed in 171 milliseconds

123456