logo separator

[mkgmap-dev] Substring returns full string

From GerdP gpetermann_muenchen at hotmail.com on Fri Nov 28 13:43:49 GMT 2014

Hi Steve,

I tried it with a few popular styles and saw no error message, so
I think it will not cause problems.

Gerd


Steve Ratcliffe wrote
> Hi Gerd
> 
>> In ValueBuilder
> 
>> we receive the string  " substring:1:14"
>> (with the leading blank) and that is not removed, so we don't match
> 
> OK, so this works if you quote the argument:
>    '${rcnname | substring:"1:14"}'
> 
> but not with the old syntax.
> 
> The attached patch fixes this and I think it is safe against
> breaking existing styles.  If it does break old styles, then
> it will have to be un-applied - in general the old syntax
> is ambiguous.
> 
> I've added an error check for when an unknown filter is seen,
> which should make it obvious when something like this happens.
> 
> ..Steve
> 
> _______________________________________________
> mkgmap-dev mailing list

> mkgmap-dev at .org

> http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev
> 
> Spaces_around__|__fails_with_old_arg_syntax_.patch (2K)
> <http://gis.19327.n5.nabble.com/attachment/5825704/0/Spaces_around__%7C__fails_with_old_arg_syntax_.patch>





--
View this message in context: http://gis.19327.n5.nabble.com/Substring-returns-full-string-tp5825603p5825717.html
Sent from the Mkgmap Development mailing list archive at Nabble.com.


More information about the mkgmap-dev mailing list