logo separator

[mkgmap-dev] Commit: r2668: PartFilter extract 1) from end, 2) initial and final ranges.

From svn commit svn at mkgmap.org.uk on Tue Aug 13 14:33:46 BST 2013

Version 2668 was committed by steve on Tue, 13 Aug 2013

PartFilter extract 1) from end, 2) initial and final ranges.

Use negative numbers to take a part from the tail of the value list.  Use
the "<" or ">" operator (in addition to ":") in order to return a
concatenation of all the parts before or after a certain part. The
default behavior is not changed and this come at the expense of just 2
logical "IF" more when no operators are specified.

Example, if the value is "Aa#Bb#Cc#Dd#Ee"
part:#:1  returns Aa
part:#:-1 returns Ee
part:#:-2 returns Dd
part:#>1  returns Bb#Cc#Dd#Ee#
part:#<5  returns Aa#Bb#Cc#Dd#
part:#<-1 returns Aa#Bb#Cc#Dd#

- Enrico Liboni


More information about the mkgmap-dev mailing list