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

123456

/macosx-10.9.5/pyobjc-42/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.9.5/pyobjc-42/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.9.5/libdispatch-339.92.1/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.9.5/objc4-551.1/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.9.5/llvmCore-3425.0.33/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.9.5/kext_tools-326.95.1/
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.9.5/RubyCocoa-80/RubyCocoa/sample/Spotlight/
H A DSpotlight.rb15 attr :predicate, true
24 predicateToRun = NSPredicate.predicateWithFormat(@predicate)
26 p "FIX IT: I haven't find a way to check if the predicate's format is valid"
H A DAppController.rb18 @spotlight.predicate = "kMDItemContentType == 'public.ruby-script'"
/macosx-10.9.5/ruby-104/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.9.5/WebCore-7537.78.1/xml/
H A DXPathStep.cpp58 // E.g., there is no need to build a set of all "foo" nodes to evaluate "foo[@bar]", we can check the predicate while enumerating.
59 // This optimization can be applied to predicates that are not context node list sensitive, or to first predicate that is only context position sensitive, e.g. foo[position() mod 2 = 0].
62 Predicate* predicate = m_predicates[i]; local
63 if ((!predicate->isContextPositionSensitive() || m_nodeTest.mergedPredicates().isEmpty()) && !predicate->isContextSizeSensitive() && remainingPredicates.isEmpty()) {
64 m_nodeTest.mergedPredicates().append(predicate);
66 remainingPredicates.append(predicate);
98 Predicate* predicate = m_predicates[i]; local
99 if (predicate->isContextPositionSensitive() || predicate
104 Predicate* predicate = m_nodeTest.mergedPredicates()[i]; local
121 Predicate* predicate = m_predicates[i]; local
222 Predicate* predicate = mergedPredicates[i]; local
[all...]
/macosx-10.9.5/WebCore-7537.78.1/fileapi/
H A DFileThread.cpp82 SameInstancePredicate predicate(instance);
83 m_queue.removeIf(predicate);
/macosx-10.9.5/emacs-92/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.9.5/emacs-92/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.9.5/Security-55471.14.18/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.9.5/Security-55471.14.18/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.9.5/CF-855.17/
H A DCoreFoundation_Prefix.h176 void dispatch_once(dispatch_once_t *predicate, dispatch_block_t block);
474 CF_INLINE BOOL objc_atomicCompareAndSwapPtr(id predicate, id replacement, volatile id *objectLocation) argument
475 { return OSAtomicCompareAndSwapPtr((void *)predicate, (void *)replacement, (void * volatile *)objectLocation); }
477 CF_INLINE BOOL objc_atomicCompareAndSwapPtrBarrier(id predicate, id replacement, volatile id *objectLocation) argument
478 { return OSAtomicCompareAndSwapPtrBarrier((void *)predicate, (void *)replacement, (void * volatile *)objectLocation); }
480 CF_INLINE BOOL objc_atomicCompareAndSwapGlobal(id predicate, id replacement, volatile id *objectLocation) argument
481 { return OSAtomicCompareAndSwapPtr((void *)predicate, (void *)replacement, (void * volatile *)objectLocation); }
483 CF_INLINE BOOL objc_atomicCompareAndSwapGlobalBarrier(id predicate, id replacement, volatile id *objectLocation) argument
484 { return OSAtomicCompareAndSwapPtrBarrier((void *)predicate, (void *)replacement, (void * volatile *)objectLocation); }
486 CF_INLINE BOOL objc_atomicCompareAndSwapInstanceVariable(id predicate, i argument
489 objc_atomicCompareAndSwapInstanceVariableBarrier(id predicate, id replacement, volatile id *objectLocation) argument
[all...]
/macosx-10.9.5/WebCore-7537.78.1/workers/
H A DWorkerRunLoop.cpp148 MessageQueueWaitResult WorkerRunLoop::runInMode(WorkerContext* context, const ModePredicate& predicate, WaitMode waitMode) argument
156 absoluteTime = (predicate.isDefaultMode() && m_sharedTimer->isActive()) ? m_sharedTimer->fireTime() : MessageQueue<Task>::infiniteTime();
158 OwnPtr<WorkerRunLoop::Task> task = m_messageQueue.waitForMessageFilteredWithTimeout(result, predicate, absoluteTime);
/macosx-10.9.5/emacs-92/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.9.5/Security-55471.14.18/libsecurity_apple_x509_tp/lib/
H A DTPDatabase.cpp51 CSSM_SELECTION_PREDICATE predicate; local
58 predicate.DbOperator = CSSM_DB_EQUAL;
59 predicate.Attribute.Info.AttributeNameFormat =
61 predicate.Attribute.Info.Label.AttributeName = (char*) "Subject";
62 predicate.Attribute.Info.AttributeFormat = CSSM_DB_ATTRIBUTE_FORMAT_BLOB;
63 predicate.Attribute.Value = const_cast<CSSM_DATA_PTR>(subjectName);
64 predicate.Attribute.NumberOfValues = 1;
69 query.SelectionPredicate = &predicate;
/macosx-10.9.5/WebCore-7537.78.1/Modules/webdatabase/
H A DDatabaseThread.cpp183 SameDatabasePredicate predicate(database);
184 m_queue.removeIf(predicate);
/macosx-10.9.5/emacs-92/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))))))
/macosx-10.9.5/llvmCore-3425.0.33/lib/VMCore/
H A DConstantFold.h48 Constant *ConstantFoldCompareInstruction(unsigned short predicate,

Completed in 3398 milliseconds

123456