/// Information about a single UCS4 character
class CharInfo {
public:
- CharInfo() {}
+ CharInfo() : flags_(0) {}
CharInfo(
- docstring const textcommand, docstring const mathcommand,
- std::string const textpreamble, std::string const mathpreamble,
- std::string const tipashortcut, unsigned int flags);
+ docstring const & textcommand, docstring const & mathcommand,
+ std::string const & textpreamble, std::string const & mathpreamble,
+ std::string const & tipashortcut, unsigned int flags);
// we assume that at least one command is nonempty when using unicodesymbols
bool isUnicodeSymbol() const { return !textcommand_.empty() || !mathcommand_.empty(); }
/// LaTeX command (text mode) for this character
/// Represent any of the above packages
static int const any;
///
- Encoding() {}
+ Encoding() : fixedwidth_(true), unsafe_(false), complete_(false) {}
///
Encoding(std::string const & n, std::string const & l,
std::string const & g, std::string const & i,
* \p dryrun specifies whether the string is used within source
* preview (which yields a special warning).
*/
- std::pair<docstring, docstring> latexString(docstring const input,
+ std::pair<docstring, docstring> latexString(docstring const & input,
bool dryrun = false) const;
/// Which LaTeX package handles this encoding?
Package package() const { return package_; }
///
const_iterator end() const { return encodinglist.end(); }
- ///
- enum LetterForm {
- ///
- FORM_ISOLATED,
- ///
- FORM_FINAL,
- ///
- FORM_INITIAL,
- ///
- FORM_MEDIAL
- };
- ///
- static bool isHebrewComposeChar(char_type c);
- ///
- static bool isArabicComposeChar(char_type c);
- ///
- static bool isArabicSpecialChar(char_type c);
- ///
- static bool isArabicChar(char_type c);
/// Accessor for the unicode information table.
static CharInfo const & unicodeCharInfo(char_type c);
- ///
- static char_type transformChar(char_type c, LetterForm form);
/// Is this a combining char?
static bool isCombiningChar(char_type c);
/// Return the TIPA shortcut