3 * This file is part of LyX, the document processor.
4 * Licence details can be found in the file COPYING.
6 * \author Jean-Marc Lasgouttes
8 * Full author contact details are available in file CREDITS.
13 #include "MathClass.h"
15 #include "support/docstring.h"
16 #include "support/lassert.h"
23 docstring const class_to_string(MathClass const mc)
59 MathClass string_to_class(docstring const &s)
63 else if (s == "mathbin")
65 else if (s == "mathrel")
67 else if (s == "mathopen")
69 else if (s == "mathclose")
71 else if (s == "mathpunct")
73 else if (s == "mathinner")
75 else if (s == "mathord")