[prev in list] [next in list] [prev in thread] [next in thread] 

List:       jakarta-commons-dev
Subject:    [jira] [Resolved] (JEXL-133) String matching Operator short-hand inspired by CSS3
From:       "Henri Biestro (JIRA)" <jira () apache ! org>
Date:       2012-07-31 14:33:34
Message-ID: 383375676.121589.1343745214747.JavaMail.jiratomcat () issues-vm
[Download RAW message or body]


     [ https://issues.apache.org/jira/browse/JEXL-133?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel \
]

Henri Biestro resolved JEXL-133.
--------------------------------

    Resolution: Fixed


Added 'not startsWith' (^!) and 'not endsWith' (!$) operators

src/main/java/org/apache/commons/jexl3/internal/Debugger.java
src/main/java/org/apache/commons/jexl3/internal/Interpreter.java
src/main/java/org/apache/commons/jexl3/parser/JexlNode.java
src/main/java/org/apache/commons/jexl3/parser/JexlParser.java
src/main/java/org/apache/commons/jexl3/parser/Parser.jjt
src/main/java/org/apache/commons/jexl3/parser/ParserVisitor.java
src/site/xdoc/changes.xml
src/site/xdoc/reference/syntax.xml
src/test/java/org/apache/commons/jexl3/ArithmeticOperatorTest.java

Committed revision 1367576.
Revision: 1367576
Author  : henrib
Date    : Jul 31, 2012 4:30:43 PM
JEXL-133:
                
> String matching Operator short-hand inspired by CSS3
> ----------------------------------------------------
> 
> Key: JEXL-133
> URL: https://issues.apache.org/jira/browse/JEXL-133
> Project: Commons JEXL
> Issue Type: Improvement
> Affects Versions: 2.1.1
> Reporter: Alfred Reibenschuh
> Assignee: Henri Biestro
> Priority: Trivial
> Fix For: 3.0
> 
> 
> like the perl inspired shorthand "=~", css3 also has some nice shorthands 
> http://www.w3.org/TR/2011/REC-css3-selectors-20110929/#attribute-selectors
> for "startsWith" the shorthand could be "expr1 ^= expr2"
> for "endsWith" the shorthand could be "expr1 $= expr2"
> it could be that the "^=" operator already collides with "xor and assign" which i \
> haven't looked at as of now.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: \
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more \
information on JIRA, see: http://www.atlassian.com/software/jira

        


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic