From 89711b175e318ba17b9e1504382e16c88cafbeea Mon Sep 17 00:00:00 2001 From: Dmitry Mikhirev Date: Fri, 4 Jan 2013 15:53:08 +0400 Subject: better encapsulation in utf8 class --- utf8.h | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'utf8.h') diff --git a/utf8.h b/utf8.h index d10557d..9bab45b 100644 --- a/utf8.h +++ b/utf8.h @@ -1,7 +1,7 @@ /* Brainuino Aleph - Copyright (C) 2012 Dmitry Mikhirev + Copyright (C) 2012, 2013 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 @@ -26,13 +26,15 @@ class utf8 { public: utf8(char* string); ~utf8(void); - uint16_t chars; - uint16_t bytes; int32_t get(); - char* string; + uint16_t chars(); + uint16_t bytes(); private: uint16_t _index; + uint16_t _chars; + uint16_t _bytes; + char* _string; }; #endif -- cgit v1.2.1