Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

CPPredicate suite

#70

Almost complete except: - predicateWithFormat: > relies on CPScanner - Some new 10.5 methods - Some functions in CPExpression_function.j - MATCHES[d] (regex match diacritic insensitive) - expressions constants are not casted

Needs a lot of testing. A basic test case will follow.

Reported by cacaodev · September 23rd, 2008 @ 01:47 PM

State: resolved
Milestone: none
Assigned to: Ross Boucher Ross Boucher

Activity

  1. cacaodev
    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.

    September 23rd, 2008 @ 01:55 PM

  2. cacaodev
    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.

    October 8th, 2008 @ 08:47 AM

  3. cacaodev
    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.

    November 8th, 2008 @ 04:58 AM

  4. cacaodev
    cacaodev

    An updated version of CPPredicate & al with a test case have been pushed into my fork.

    http://github.com/cacaodev/cappu...

    February 11th, 2009 @ 04:22 AM

  5. cacaodev
    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:

    February 14th, 2009 @ 05:04 AM

  6. admin (at 280north)

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.