Electroneum
Classes | Functions
Language Namespace Reference

Mnemonic language related namespace. More...

Classes

class  Chinese_Simplified
 
class  Dutch
 
class  English
 
class  EnglishOld
 
class  Esperanto
 
class  French
 
class  German
 
class  Italian
 
class  Japanese
 
struct  WordHash
 
struct  WordEqual
 
class  Base
 A base language class which all languages have to inherit from for Polymorphism. More...
 
class  Lojban
 
class  Portuguese
 
class  Russian
 
class  Singleton
 Single helper class. More...
 
class  Spanish
 

Functions

template<typename T >
T utf8prefix (const T &s, size_t count)
 Returns a string made of (at most) the first count characters in s. Assumes well formedness. No check is made for this. More...
 
template<typename T >
T utf8canonical (const T &s)
 

Detailed Description

Mnemonic language related namespace.

Function Documentation

◆ utf8canonical()

template<typename T >
T Language::utf8canonical ( const T s)
inline

◆ utf8prefix()

template<typename T >
T Language::utf8prefix ( const T s,
size_t  count 
)
inline

Returns a string made of (at most) the first count characters in s. Assumes well formedness. No check is made for this.

Parameters
sThe string from which to return the first count characters.
countHow many characters to return.
Returns
A string consisting of the first count characters in s.