Read the comment of odocstream in src/support/docstream.h if you want to
know why this fix is correct.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38335
a592a061-630c-0410-9148-
cb99ea01b6c8
\endcode, not \code
os << c;
\endcode . The latter will not output the character, but the code point
\endcode, not \code
os << c;
\endcode . The latter will not output the character, but the code point
- as number. This is because we can't overload operator<< (our character
- type is not a real type but a typedef). Narrow characters of type char
- can be output as usual.
+ as number if USE_WCHAR_T is not defined. This is because we can't overload
+ operator<< (our character type is not always a real type but sometimes a
+ typedef). Narrow characters of type char can be output as usual.
*/
typedef std::basic_ostream<char_type> odocstream;
*/
typedef std::basic_ostream<char_type> odocstream;
/// replace LaTeX commands in \p s from the unicodesymbols file with their
/// replace LaTeX commands in \p s from the unicodesymbols file with their
docstring convert_unicodesymbols(docstring s)
{
odocstringstream os;
for (size_t i = 0; i < s.size();) {
if (s[i] != '\\') {
docstring convert_unicodesymbols(docstring s)
{
odocstringstream os;
for (size_t i = 0; i < s.size();) {
if (s[i] != '\\') {
continue;
}
s = s.substr(i);
continue;
}
s = s.substr(i);