ANUBHAV67 / vqmod

Automatically exported from code.google.com/p/vqmod
0 stars 0 forks source link

Feautred request: ignoreif with index #111

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Would it be possible to index to ignoreif. 

E.g: I would like to do the same thing twice in the same file but in different 
methods.  
[code]
<operation>
    <search position="before" index="1"><![CDATA[ $this->language->get('text_success') ]]></search>
    <ignoreif index="1"><![CDATA[ $this->language->get('text_warning') ]]></ignoreif>
    <add><![CDATA[ 
    $this->language->get('text_warning') ]]></add>
</operation>
<operation>
    <search position="before" index="2"><![CDATA[ $this->language->get('text_success') ]]></search>
    <ignoreif index="2"><![CDATA[ $this->language->get('text_warning') ]]></ignoreif>
    <add><![CDATA[ 
    $this->language->get('text_warning') ]]></add>
</operation>
[/code]

Original issue reported on code.google.com by B.Johnso...@gmail.com on 4 Jul 2013 at 3:29

GoogleCodeExporter commented 9 years ago
Ignore if is for basically detecting if a feature/function exists in a file and 
if not adding it to be honest. I can't really see how this would actually work

Original comment by DJG6...@gmail.com on 4 Jul 2013 at 6:09