aboutsummaryrefslogtreecommitdiff
path: root/utf8.h
diff options
context:
space:
mode:
authorDmitry Mikhirev2014-10-23 22:57:51 +0400
committerDmitry Mikhirev2014-10-23 22:57:51 +0400
commit6a6d104f35b57f1dcdd966f354b2beca73310fe4 (patch)
tree4e8d8802baabdcb59713e80fd50375d1e2413fb4 /utf8.h
parent89711b175e318ba17b9e1504382e16c88cafbeea (diff)
downloadbrainuino-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.h9
1 files changed, 6 insertions, 3 deletions
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 <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