From 96759377ae8a4394d325747f597fe5b60afabf6e Mon Sep 17 00:00:00 2001 From: Mike Buland Date: Mon, 11 Nov 2019 05:01:29 -0800 Subject: Working on TextBuilder & Text. Seriously thinking about changing Text to just use full codepoints. It would be much less work, more reliable and predictable, easier to use, but would use twice the memory. --- src/unstable/textcodecutf8.h | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) (limited to 'src/unstable/textcodecutf8.h') diff --git a/src/unstable/textcodecutf8.h b/src/unstable/textcodecutf8.h index e69de29..f565f57 100644 --- a/src/unstable/textcodecutf8.h +++ b/src/unstable/textcodecutf8.h @@ -0,0 +1,26 @@ +/* + * Copyright (C) 2007-2019 Xagasoft, All rights reserved. + * + * This file is part of the libbu++ library and is released under the + * terms of the license contained in the file LICENSE. + */ + +#ifndef TEXT_CODEC_UTF8_H +#define TEXT_CODEC_UTF8_H + +#include "bu/textcodec.h" + +namespace Bu +{ + class TextCodecUtf8 : public TextCodec + { + public: + TextCodecUtf8(); + virtual ~TextCodecUtf8(); + + virtual void encode( BlobBuilder &rTarget, const Text &rSource ); + virtual int32_t decode( TextBuilder &rTarget, const Blob &rSource ); + }; +} + +#endif -- cgit v1.2.3