19#ifndef HEADER_UTF_WRITER_HPP
20#define HEADER_UTF_WRITER_HPP
22#include "utils/string_utils.hpp"
45 UTFWriter& operator<< (
const irr::core::stringw& txt);
46 UTFWriter& operator<< (
const wchar_t* txt);
52 return operator<<(irr::core::stringw(txt));
56 m_base.write((
char *)txt, strlen(txt));
62 UTFWriter& operator<< (
const std::string &txt)
65 return operator<<(irr::core::stringw(txt.c_str()));
67 return operator<<(txt.c_str());
72 return operator<<(StringUtils::toString(b));
78 return operator<<(StringUtils::toString<T>(t));
81 bool is_open() {
return m_base.is_open(); }
utility class used to write wide (UTF-16 or UTF-32, depending of size of wchar_t) XML files
Definition: utf_writer.hpp:35
bool m_wide
If true, use utf-16/32 (obsolete)
Definition: utf_writer.hpp:39