]> git.lyx.org Git - lyx.git/blob - src/mathed/math_streamstr.C
Fixes for a broken std::count.
[lyx.git] / src / mathed / math_streamstr.C
1 #include <config.h>
2
3 #include "math_streamstr.h"
4 #include "math_mathmlstream.h"
5 #include "support/LOstream.h"
6 #include "support/lstrings.h"
7
8 #include <algorithm>
9
10
11 WriteStream & operator<<(WriteStream & ws, string const & s)
12 {
13         ws.os() << s;
14         ws.addlines(int(countChar(s, '\n')));
15         return ws;
16 }
17
18
19 NormalStream & operator<<(NormalStream & ns, string const & s)
20 {
21         ns.os() << s;
22         return ns;
23 }
24
25
26 MapleStream & operator<<(MapleStream & ms, string const & s)
27 {
28         ms.os() << s;
29         return ms;
30 }
31
32
33 MathMLStream & operator<<(MathMLStream & ms, string const & s)
34 {
35         ms.os() << s;
36         return ms;
37 }
38
39
40 OctaveStream & operator<<(OctaveStream & os, string const & s)
41 {
42         os.os() << s;
43         return os;
44 }