diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2013-01-27 14:42:14 -0800 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2013-01-27 14:42:14 -0800 |
commit | 546fecd850a6e7342a41925b895c1e4275dc7aca (patch) | |
tree | 7edde5e87ab7c686d5540371298a7d414d2895d9 /dive.h | |
parent | 0a91669efe9f3ad217c5cdd220d0d71eba0caf8b (diff) | |
download | subsurface-546fecd850a6e7342a41925b895c1e4275dc7aca.tar.gz |
UTF8 aware parser for some more GPS formats
I'm sure there are better ways to do this, but this appears to grok most
rational formats I was able to find. NSEW or positive/negative numbers.
Decimal degrees (WGS84) or degrees and decimal minutes (that's what most
GPSs seem to provide). I'm sure there are still corner cases that confuse
it, but it seemed reasonably robust in testing.
I don't really love the ';' as separator but that solves the obvious
problem with locales that use a decimal comma.
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'dive.h')
-rw-r--r-- | dive.h | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -548,6 +548,7 @@ const char *weekday(int wday); const char *monthname(int mon); #define UTF8_DEGREE "\xc2\xb0" +#define UCS4_DEGREE 0xb0 #define UTF8_SUBSCRIPT_2 "\xe2\x82\x82" #define UTF8_WHITESTAR "\xe2\x98\x86" #define UTF8_BLACKSTAR "\xe2\x98\x85" |