From 6a6d104f35b57f1dcdd966f354b2beca73310fe4 Mon Sep 17 00:00:00 2001 From: Dmitry Mikhirev Date: Thu, 23 Oct 2014 22:57:51 +0400 Subject: major code revision --- utf8.h | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'utf8.h') diff --git a/utf8.h b/utf8.h index 9bab45b..213042d 100644 --- a/utf8.h +++ b/utf8.h @@ -1,7 +1,7 @@ /* Brainuino Aleph - Copyright (C) 2012, 2013 Dmitry Mikhirev + Copyright (C) 2012-2014 Dmitry Mikhirev This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -20,13 +20,15 @@ #ifndef utf8_h #define utf8_h +#include #include "Arduino.h" class utf8 { public: - utf8(char* string); + utf8(const char* string); + utf8 (const __FlashStringHelper* flashString); ~utf8(void); - int32_t get(); + wchar_t get(); uint16_t chars(); uint16_t bytes(); @@ -35,6 +37,7 @@ class utf8 { uint16_t _chars; uint16_t _bytes; char* _string; + char* _string_p; }; #endif -- cgit v1.2.1