summaryrefslogtreecommitdiffstats
path: root/dive.h
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2013-01-27 14:42:14 -0800
committerGravatar Dirk Hohndel <dirk@hohndel.org>2013-01-27 14:42:14 -0800
commit546fecd850a6e7342a41925b895c1e4275dc7aca (patch)
tree7edde5e87ab7c686d5540371298a7d414d2895d9 /dive.h
parent0a91669efe9f3ad217c5cdd220d0d71eba0caf8b (diff)
downloadsubsurface-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.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/dive.h b/dive.h
index 02e6a9e73..c9f43d81e 100644
--- a/dive.h
+++ b/dive.h
@@ -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"