convert.h File Reference

This file contains functions for converting between character sets. More...

`#include <string>`
`#include <iterator>`
`#include <exception>`
`#include <glib.h>`
`#include <c++-gtk-utils/shared_handle.h>`
`#include <c++-gtk-utils/cgu_config.h>`

Go to the source code of this file.

## Classes

class | Cgu::Utf8::ConversionError
class | Cgu::Utf8::Iterator
| A class which will iterate through a std::string object by reference to unicode characters rather than by bytes. More...
class | Cgu::Utf8::ReverseIterator
| A class which will iterate in reverse through a std::string object by reference to unicode characters rather than by bytes. More...

## Namespaces

| Cgu
| Cgu::Utf8
| This namespace contains utilities relevant to the use of UTF-8 in programs.

## Constant Groups

| Cgu
| Cgu::Utf8
| This namespace contains utilities relevant to the use of UTF-8 in programs.

## Functions

std::wstring | Cgu::Utf8::uniwide_from_utf8 (const std::string &input)
std::string | Cgu::Utf8::uniwide_to_utf8 (const std::wstring &input)
std::u32string | Cgu::Utf8::utf32_from_utf8 (const std::string &input)
std::string | Cgu::Utf8::utf32_to_utf8 (const std::u32string &input)
std::u16string | Cgu::Utf8::utf16_from_utf8 (const std::string &input)
std::string | Cgu::Utf8::utf16_to_utf8 (const std::u16string &input)
std::wstring | Cgu::Utf8::wide_from_utf8 (const std::string &input)
std::string | Cgu::Utf8::wide_to_utf8 (const std::wstring &input)
std::string | Cgu::Utf8::filename_from_utf8 (const std::string &input)
std::string | Cgu::Utf8::filename_to_utf8 (const std::string &input)
std::string | Cgu::Utf8::locale_from_utf8 (const std::string &input)
std::string | Cgu::Utf8::locale_to_utf8 (const std::string &input)
bool | Cgu::Utf8::validate (const std::string &text)
bool | Cgu::Utf8::operator== (const Iterator &iter1, const Iterator &iter2)
bool | Cgu::Utf8::operator!= (const Iterator &iter1, const Iterator &iter2)
bool | Cgu::Utf8::operator< (const Iterator &iter1, const Iterator &iter2)
bool | Cgu::Utf8::operator<= (const Iterator &iter1, const Iterator &iter2)
bool | Cgu::Utf8::operator> (const Iterator &iter1, const Iterator &iter2)
bool | Cgu::Utf8::operator>= (const Iterator &iter1, const Iterator &iter2)
bool | Cgu::Utf8::operator== (const ReverseIterator &iter1, const ReverseIterator &iter2)
bool | Cgu::Utf8::operator!= (const ReverseIterator &iter1, const ReverseIterator &iter2)
bool | Cgu::Utf8::operator< (const ReverseIterator &iter1, const ReverseIterator &iter2)
bool | Cgu::Utf8::operator<= (const ReverseIterator &iter1, const ReverseIterator &iter2)
bool | Cgu::Utf8::operator> (const ReverseIterator &iter1, const ReverseIterator &iter2)
bool | Cgu::Utf8::operator>= (const ReverseIterator &iter1, const ReverseIterator &iter2)

## Detailed Description

This file contains functions for converting between character sets.

#include <c++-gtk-utils/convert.h>

This file contains functions for converting between character sets. If you want these functions to work, you will generally have needed to have set the locale in the relevant program with either std::locale::global(std::locale("")) (from the C++ standard library) or setlocale(LC_ALL,"") (from the C standard library).