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

Encoding transformations, private header. More...

#include <locale>
#include <string>
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.

Classes

class  nuspell::Encoding
 

Namespaces

 nuspell
 Library main namespace.
 

Enumerations

enum  Encoding_Details {
  EXTERNAL_U8_INTERNAL_U8, EXTERNAL_OTHER_INTERNAL_U8, EXTERNAL_U8_INTERNAL_OTHER, EXTERNAL_OTHER_INTERNAL_OTHER,
  EXTERNAL_SAME_INTERNAL_AND_SINGLEBYTE
}
 
enum  nuspell::Casing {
  nuspell::Casing::SMALL, nuspell::Casing::INIT_CAPITAL, nuspell::Casing::ALL_CAPITAL, nuspell::Casing::CAMEL,
  nuspell::Casing::PASCAL
}
 Casing type enum, ignoring neutral case characters. More...
 

Functions

auto nuspell::utf8_to_32_alternative (const std::string &s) -> std::u32string
 
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::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_32 (const std::string &in) -> std::u32string
 
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_bmp (char32_t c) -> bool
 
auto nuspell::is_all_bmp (const std::u32string &s) -> bool
 
auto nuspell::u32_to_ucs2_skip_non_bmp (const std::u32string &s) -> std::u16string
 
auto nuspell::u32_to_ucs2_skip_non_bmp (const std::u32string &s, std::u16string &out) -> void
 
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::install_ctype_facets_inplace (std::locale &boost_loc) -> void
 
auto nuspell::analyze_encodings (const std::locale &external, const std::locale &internal) -> Encoding_Details
 
template<class CharT >
auto nuspell::classify_casing (const std::basic_string< CharT > &s, const std::locale &loc) -> Casing
 Determines casing (capitalization) type for a word. More...
 
template<class CharT >
auto nuspell::has_uppercase_at_compound_word_boundary (const std::basic_string< CharT > &word, size_t i, const std::locale &loc) -> bool
 Check if word[i] or word[i-1] are uppercase. More...
 

Detailed Description

Encoding transformations, private header.