api2021 part I #4
|
@ -5,7 +5,7 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2012-2013, Tomasz Sowa
|
* Copyright (c) 2012-2021, Tomasz Sowa
|
||||||
* All rights reserved.
|
* All rights reserved.
|
||||||
*
|
*
|
||||||
* Redistribution and use in source and binary forms, with or without
|
* Redistribution and use in source and binary forms, with or without
|
||||||
|
@ -60,17 +60,20 @@ namespace PT
|
||||||
StringType can be either std::string or std::wstring
|
StringType can be either std::string or std::wstring
|
||||||
this class doesn't use UTF-8 in any kind
|
this class doesn't use UTF-8 in any kind
|
||||||
*/
|
*/
|
||||||
template<typename char_type, size_t stack_size, size_t heap_block_size>
|
template<typename CharT, size_t stack_size, size_t heap_block_size>
|
||||||
class TextStreamBase
|
class TextStreamBase
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
|
||||||
TextStreamBase();
|
TextStreamBase();
|
||||||
|
|
||||||
|
typedef CharT char_type;
|
||||||
|
|
||||||
typedef MemBuffer<char_type, stack_size, heap_block_size> buffer_type;
|
typedef MemBuffer<char_type, stack_size, heap_block_size> buffer_type;
|
||||||
typedef typename buffer_type::iterator iterator;
|
typedef typename buffer_type::iterator iterator;
|
||||||
typedef typename buffer_type::const_iterator const_iterator;
|
typedef typename buffer_type::const_iterator const_iterator;
|
||||||
|
|
||||||
|
|
||||||
void clear();
|
void clear();
|
||||||
bool empty() const;
|
bool empty() const;
|
||||||
size_t size() const;
|
size_t size() const;
|
||||||
|
|
Loading…
Reference in New Issue