diff options
author | Norbert Thiebaud <nthiebaud@gmail.com> | 2013-07-03 02:35:31 -0500 |
---|---|---|
committer | Norbert Thiebaud <nthiebaud@gmail.com> | 2013-07-03 20:53:12 +0000 |
commit | bb45bdf359c65c174fd557d615f77ceb46fa685c (patch) | |
tree | 1f87575ee1d0471b14f5078a99d3a589d955d56d /rsc/inc/rscpar.hxx | |
parent | 27a4d5597c0757611d0e2e682d0c05441859cc4e (diff) |
module rsc: String, bool and other clean-up.
Change-Id: I2dcde42e6068631a5a643961a764df86dc63dca2
Reviewed-on: https://gerrit.libreoffice.org/4690
Tested-by: LibreOffice gerrit bot <gerrit@libreoffice.org>
Reviewed-by: Norbert Thiebaud <nthiebaud@gmail.com>
Tested-by: Norbert Thiebaud <nthiebaud@gmail.com>
Diffstat (limited to 'rsc/inc/rscpar.hxx')
-rw-r--r-- | rsc/inc/rscpar.hxx | 54 |
1 files changed, 28 insertions, 26 deletions
diff --git a/rsc/inc/rscpar.hxx b/rsc/inc/rscpar.hxx index 0833e224fb6f..98a3944ae360 100644 --- a/rsc/inc/rscpar.hxx +++ b/rsc/inc/rscpar.hxx @@ -30,44 +30,46 @@ class RscTypCont; class RscFileInst { ERRTYPE aFirstError;// Erster Fehler - sal_uInt32 nErrorLine; // Zeile des ersten Fehlers - sal_uInt32 nErrorPos; // Position des ersten Fehlers - sal_uInt32 nLineNo; // Zeile in der Eingabedatei - sal_uLong lFileIndex; // Index auf Eingabedatei - sal_uLong lSrcIndex; // Index auf Basisdatei + sal_uInt32 nErrorLine; // Zeile des ersten Fehlers + sal_uInt32 nErrorPos; // Position des ersten Fehlers + sal_uInt32 nLineNo; // Zeile in der Eingabedatei + sal_uLong lFileIndex; // Index auf Eingabedatei + sal_uLong lSrcIndex; // Index auf Basisdatei FILE * fInputFile; // Eingabedatei char * pInput; // Lesepuffer - sal_uInt32 nInputBufLen; // Laenge des Lesepuffers - sal_uInt32 nInputPos; // Position im Lesepuffer - sal_uInt32 nInputEndPos;// Ende im Lesepuffer + sal_uInt32 nInputBufLen; // Laenge des Lesepuffers + sal_uInt32 nInputPos; // Position im Lesepuffer + sal_uInt32 nInputEndPos;// Ende im Lesepuffer char * pLine; // Zeile - sal_uInt32 nLineBufLen;//Lange des Zeilenpuffres - sal_uInt32 nScanPos; // Position in der Zeile + sal_uInt32 nLineBufLen;//Lange des Zeilenpuffres + sal_uInt32 nScanPos; // Position in der Zeile int cLastChar; - sal_Bool bEof; + bool bEof; public: RscTypCont * pTypCont; - void Init(); // ctor initialisieren - RscFileInst( RscTypCont * pTC, sal_uLong lIndexSrc, + void Init(); // ctor initialisieren + RscFileInst( RscTypCont * pTC, sal_uLong lIndexSrc, sal_uLong lFileIndex, FILE * fFile ); - ~RscFileInst(); - sal_Bool IsEof() const { return bEof; } - void SetFileIndex( sal_uLong lFIndex ) { lFileIndex = lFIndex; } + ~RscFileInst(); + bool IsEof() const { return bEof; } + void SetFileIndex( sal_uLong lFIndex ) { lFileIndex = lFIndex; } sal_uLong GetFileIndex() { return( lFileIndex ); } sal_uLong GetSrcIndex() { return( lSrcIndex ); } - void SetLineNo( sal_uInt32 nLine ) { nLineNo = nLine; } + void SetLineNo( sal_uInt32 nLine ) { nLineNo = nLine; } sal_uInt32 GetLineNo() { return( nLineNo ); } sal_uInt32 GetScanPos() { return( nScanPos ); } - char * GetLine() { return( pLine ); } - int GetChar(); - int GetFastChar() { return pLine[ nScanPos ] ? - pLine[ nScanPos++ ] : GetChar(); - } - void GetNewLine(); - // Fehlerbehandlung - void SetError( ERRTYPE aError ); - ERRTYPE GetError() { return aFirstError; } + char * GetLine() { return( pLine ); } + int GetChar(); + int GetFastChar() + { + return pLine[ nScanPos ] ? + pLine[ nScanPos++ ] : GetChar(); + } + void GetNewLine(); + // Fehlerbehandlung + void SetError( ERRTYPE aError ); + ERRTYPE GetError() { return aFirstError; } sal_uInt32 GetErrorLine() { return nErrorLine; } sal_uInt32 GetErrorPos() { return nErrorPos; } }; |