Files
harbour-core/harbour/samples/cccppc/sreader.prg
1999-11-09 01:37:27 +00:00

41 lines
823 B
Plaintext
Raw Blame History

This file contains invisible Unicode characters
This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
/*
* $Id$
*/
//*******************************************************************
// sreader.prg: Az SREADER oszt ly implement ci¢ja.
// 1999, Csisz r Levente
//*******************************************************************
#include "objgen.ch"
#define _SREADER_PRG_
#define _IMPLEMENT_ONEW_
#include "sreader.och"
//*******************************************************************
implement oinit(str,name,errorStream)
super:oinit(name,errorStream)
this:str:=str
this:istr:=1
return this
//*******************************************************************
implement readItem()
local c
if (this:istr>len(this:str))
return nil
endif
c:=substr(this:str,this:istr,1)
this:istr:=this:istr+1
return c
//*******************************************************************