blob: bf7d0e89aa7b8868f79e8c1c29ea21ce68010d29 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
from libcpp.string cimport string
cdef extern from "<istream>" namespace "std" nogil:
cdef cppclass istream:
istream() except +
istream& read (char* s, int n) except +
cdef cppclass ostream:
ostream() except +
ostream& write (char* s, int n) except +
cdef extern from "<sstream>" namespace "std" nogil:
cdef cppclass stringstream:
stringstream()
stringstream(string s)
string str ()
|