HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

SLK format quick question

01-10-2007, 01:32 AM#1
Vexorian
Does it have a char escaping system? As in I want to have a cell with a " inside it.

C;X11;K"\"NoiseScale\"" seems unlikely since \ is allowed normally.

Edit: I tested saving from excel and it did something like this: C;Y29;X2;K""aaa""

anyone has got a way to actually test wc3's slk parser ?
01-10-2007, 02:12 PM#2
Zoxc
It is just a " in the start and a " in the end of line. Haven't seen anything else in wc3's slk files.
01-10-2007, 05:15 PM#3
Vexorian
You terribly missunderstood the question it seems.
01-10-2007, 10:18 PM#4
wyrmlord
I just opened up a spreadsheet program and typed in "Test". The output for that line was:
C;X1;Y1;K"""Test"""
My guess is "" means " but that's only a guess, you'd have to test it in some way.
01-11-2007, 01:05 AM#5
Vexorian
What it seems is that the SLK format is retarded and the quotes after the K are "for decoration" cause what it actually considers is the line break. So K""a"" means a cell with "a" as value
01-11-2007, 10:15 AM#6
Zoxc
Quote:
Originally Posted by Vexorian
You terribly missunderstood the question it seems.

...or you missunderstood the answer =P
01-11-2007, 03:08 PM#7
Magos
The cell value is assumed to have enclosing ":s. Inside them " is just the "-character. Thus:

C;Y1;X1;K"Hello" gives: Hello
C;Y1;X1;K""Hello"" gives: "Hello"
C;Y1;X1;K""Hi" "Hey" and "Hello"" gives: "Hi" "Hey" and "Hello"

And for your original question:

C;Y1;X1;K""" gives: "