Template Function sequant::diactrics_to_latex(const std::basic_string_view<Char, Traits>&)¶
Defined in File latex.hpp
Function Documentation¶
-
template<typename Char, typename Traits>
std::basic_string<Char, Traits> sequant::diactrics_to_latex(const std::basic_string_view<Char, Traits> &str)¶ replaces certain diactric marks with their (math-mode) LaTeX equivalents
Note
only some combined Unicode characters are currently supported
Warning
if
strcontains non-ASCII charactersCharmust bewchar_t- Template Parameters:
Char – character type
Traits – character traits type
- Parameters:
str – input string
- Throws:
std::invalid_argument – if
Charis narrow andstrcontains non-ASCII characters- Returns:
with some diactrics replaced with their LaTeX equivalents