logo separator

[mkgmap-dev] problem with TYP-compilation

From Steve Ratcliffe steve at parabola.me.uk on Tue Apr 16 13:10:24 BST 2013

Hi Gerd

> Maybe this is to simple, for example, you will not be able to use Strings
> containing a semicolon.
> Could this be the reason why Steve coded it more complex?

The Xpm file part is tricky because semicolons and spaces are
sometimes significant.

You need to be able to handle something like this.

[_polygon]
Type=0x14
Xpm="32 2 4 1"
"; c #7BCA6A"
"# c #7B956A"
"3 c #BDCA8B"
"4 c #BDCA8B"
";;;;;;;;;;;;###;;;;;;;;;;;;;;;;;"
";;;;;;;;;;;#;;##;;;;;;;;;;;;;;;;"


So I think that using setCommentChar() is out. But checking for
comments only at the beginning of the line would be OK I think.
Probably at the end too if it doesn't already.

..Steve


More information about the mkgmap-dev mailing list