diff options
author | Dmitry Mikhirev | 2014-10-23 22:57:51 +0400 |
---|---|---|
committer | Dmitry Mikhirev | 2014-10-23 22:57:51 +0400 |
commit | 6a6d104f35b57f1dcdd966f354b2beca73310fe4 (patch) | |
tree | 4e8d8802baabdcb59713e80fd50375d1e2413fb4 /utf8.h | |
parent | 89711b175e318ba17b9e1504382e16c88cafbeea (diff) | |
download | brainuino-6a6d104f35b57f1dcdd966f354b2beca73310fe4.tar.gz brainuino-6a6d104f35b57f1dcdd966f354b2beca73310fe4.tar.bz2 brainuino-6a6d104f35b57f1dcdd966f354b2beca73310fe4.tar.xz brainuino-6a6d104f35b57f1dcdd966f354b2beca73310fe4.zip |
major code revision
Diffstat (limited to 'utf8.h')
-rw-r--r-- | utf8.h | 9 |
1 files changed, 6 insertions, 3 deletions
@@ -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 <avr/pgmspace.h> #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 |