CharsetConverter.cpp
461 Bytes
#include <vector>
#include <iterator>
#include "utf8.h"
#include "CharsetConverter.hpp"
using namespace std;
uint32_t UTF8CharsetConverter::peek(const char*& it, const char* end) const {
return utf8::peek_next(it, end);
}
uint32_t UTF8CharsetConverter::next(const char*& it, const char* end) const {
return utf8::next(it, end);
}
void UTF8CharsetConverter::append(uint32_t cp, string& result) const {
utf8::append(cp, back_inserter(result));
}