]> git.lyx.org Git - lyx.git/blobdiff - src/Encoding.h
use enchant exception message accessor
[lyx.git] / src / Encoding.h
index 63aa93b545c3e92d0238faa3a7744b21e43816cd..33919281d1322c7d42061c9c7757c6774c83a106 100644 (file)
@@ -59,9 +59,9 @@ class CharInfo {
 public:
        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
@@ -164,7 +164,7 @@ public:
         * \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_; }
@@ -255,31 +255,8 @@ public:
        ///
        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 isHebrewChar(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