Rudiments
iconvert.h
1// Copyright (c) 1999-2018 David Muse
2// See the COPYING file for more information.
3
4#ifndef RUDIMENTS_ICONVERT_H
5#define RUDIMENTS_ICONVERT_H
6
7#include <rudiments/private/iconvertincludes.h>
8
10class RUDIMENTS_DLLSPEC iconvert : public object {
11 public:
12
15
19
23
25 virtual ~iconvert();
26
30 void setFromEncoding(const char *fromencoding);
31
35 const char *getFromEncoding();
36
40 void setToEncoding(const char *fromencoding);
41
45 const char *getToEncoding();
46
51 void setFromBuffer(const byte_t *buffer);
52
55 const byte_t *getFromBuffer();
56
60 void setFromBufferSize(size_t buffersize);
61
65
68 void setToBuffer(byte_t *buffer);
69
72 byte_t *getToBuffer();
73
76 void setToBufferSize(size_t buffersize);
77
81
120 bool convert();
121
124 const byte_t *getFromBufferPosition();
125
130
133 const byte_t *getToBufferPosition();
134
139
145 static uint16_t getMaxMultiByteSize();
146
151 static bool getNeedsMutex();
152
153 #include <rudiments/private/iconvert.h>
154};
155
156#endif
Definition iconvert.h:10
void setToEncoding(const char *fromencoding)
virtual ~iconvert()
iconvert(iconvert &i)
const byte_t * getFromBuffer()
const char * getFromEncoding()
const char * getToEncoding()
void setToBufferSize(size_t buffersize)
size_t getToBufferRemaining()
const byte_t * getToBufferPosition()
size_t getToBufferSize()
size_t getFromBufferSize()
bool convert()
const byte_t * getFromBufferPosition()
void setFromEncoding(const char *fromencoding)
static uint16_t getMaxMultiByteSize()
void setFromBufferSize(size_t buffersize)
static bool getNeedsMutex()
size_t getFromBufferRemaining()
void setToBuffer(byte_t *buffer)
void setFromBuffer(const byte_t *buffer)
iconvert & operator=(iconvert &i)
byte_t * getToBuffer()
Definition object.h:10