/usr/share/yacas/include/stringio.h is in yacas 1.3.3-2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 | /** \file stringio.h
* definitions of input output classes that read and write from string.
*/
#ifndef __stringio_h__
#define __stringio_h__
#include "yacasbase.h"
#include "lispio.h"
#include "lispstring.h"
class StringInput : public LispInput
{
public:
StringInput(LispString& aString,InputStatus& aStatus);
virtual LispChar Next();
virtual LispChar Peek();
virtual LispBoolean EndOfStream();
virtual LispChar * StartPtr();
virtual LispInt Position();
virtual void SetPosition(LispInt aPosition);
protected:
LispString iString;
LispInt iCurrent;
};
class StringOutput : public LispOutput
{
public:
StringOutput(LispString& aString);
virtual ~StringOutput();
virtual void PutChar(LispChar aChar);
public:
LispString& iString;
};
#endif
|