Classes | Namespaces | Enumerations | Functions
locale_utils.hxx File Reference

Encoding transformations, private header. More...

#include <locale>
#include <string>
#include <boost/container/small_vector.hpp>
#include <unicode/locid.h>
Include dependency graph for locale_utils.hxx:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.


class  nuspell::Encoding
class  nuspell::Encoding_Converter


 Library main namespace.


enum  nuspell::Casing {
  nuspell::Casing::SMALL, nuspell::Casing::INIT_CAPITAL, nuspell::Casing::ALL_CAPITAL, nuspell::Casing::CAMEL,
 Casing type enum, ignoring neutral case characters. More...


auto nuspell::validate_utf8 (const std::string &s) -> bool
auto nuspell::wide_to_utf8 (const std::wstring &in, std::string &out) -> void
auto nuspell::wide_to_utf8 (const std::wstring &in) -> std::string
auto nuspell::wide_to_utf8 (const std::wstring &in, boost::container::small_vector_base< char > &out) -> void
auto nuspell::utf8_to_wide (const std::string &in, std::wstring &out) -> bool
auto nuspell::utf8_to_wide (const std::string &in) -> std::wstring
auto nuspell::utf8_to_16 (const std::string &in) -> std::u16string
bool nuspell::utf8_to_16 (const std::string &in, std::u16string &out)
auto nuspell::is_ascii (char c) -> bool
auto nuspell::is_all_ascii (const std::string &s) -> bool
auto nuspell::latin1_to_ucs2 (const std::string &s) -> std::u16string
auto nuspell::latin1_to_ucs2 (const std::string &s, std::u16string &out) -> void
auto nuspell::is_all_bmp (const std::u16string &s) -> bool
auto nuspell::to_wide (const std::string &in, const std::locale &loc, std::wstring &out) -> bool
auto nuspell::to_wide (const std::string &in, const std::locale &loc) -> std::wstring
auto nuspell::to_narrow (const std::wstring &in, std::string &out, const std::locale &loc) -> bool
auto nuspell::to_narrow (const std::wstring &in, const std::locale &loc) -> std::string
auto nuspell::is_locale_known_utf8 (const std::locale &loc) -> bool
auto nuspell::wide_to_icu (const std::wstring &in, icu::UnicodeString &out) -> bool
auto nuspell::icu_to_wide (const icu::UnicodeString &in, std::wstring &out) -> bool
auto nuspell::to_upper (const std::wstring &in, const icu::Locale &loc) -> std::wstring
auto nuspell::to_title (const std::wstring &in, const icu::Locale &loc) -> std::wstring
auto nuspell::to_lower (const std::wstring &in, const icu::Locale &loc) -> std::wstring
auto nuspell::classify_casing (const std::wstring &s) -> Casing
 Determines casing (capitalization) type for a word. More...
auto nuspell::has_uppercase_at_compound_word_boundary (const std::wstring &word, size_t i) -> bool
 Check if word[i] or word[i-1] are uppercase. More...

Detailed Description

Encoding transformations, private header.