CPPredicate suite
-
cacaodev
Very basic Test case for CPPredicate.
Creates various CPExpression (constant, keypath, function, aggregate) Creates a CPCompoundPredicate from 2 CPComparisonPredicate Filters an array with the predicate.
-
cacaodev
Improved version. - fixed bugs in CPComparisonPredicate evaluation for strings - Support for CPMacthPredicateOperatorType (javascript regex) - Partial support for CPDiacriticInsensitive option. Not covering all diacritics. - cleaned code in evaluation of compound predicates. - Added aggregate expression
Coming next: unionset, minusset, subquery expressions. (10.5 new methods in NSPredicate).
Feel free to implement predicateWithFormat: . We need a parser for that so it could be CPScanner or another way to parse (lex ?).
I will post a ojunit test later if needed.
-
cacaodev
- Tag changed from foundation to foundation, patch
- Assigned user changed from Francisco Tolmasky to Ross Boucher
This is the last version with a lot of code style cleaning. Also supports for unionset, intersectset, minusset. predicateWithFormat: still missing.
These are raw files are in a zip. I can also give you a patch against Foundation but anyway you will have to add import directives in Foundation.j yourself because I'm not sure what's the right way.
Included: CPPredicateTest.j importing CPPredicate from Foundation.
If you have any comments, even code style, I prefer that you post it bellow.
-
cacaodev
An updated version of CPPredicate & al with a test case have been pushed into my fork.
-
cacaodev
- Tag changed from foundation, patch to @to-review, foundation, patch
Please forget the previous comment.
Here is the commit url in my fork: http://github.com/cacaodev/cappu...
And attached is a new patch matching this commit:
-
admin (at 280north)
- State changed from new to resolved
(from [70410d63115c8322f1d882ae0c68e79a34df18a5]) Fix the buttonNumber method of CPEvent. Closes #70 CPPredicate suite.
http://github.com/280north/cappuccino/commit/70410d63115c8322f1d882...
Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.
