123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451 |
- #ifndef Text_H
- #define Text_H
- #include "Reader.h"
- #include "ReferenceCounter.h"
- namespace Framework
- {
- class Text;
-
- class Text : public virtual ReferenceCounter
- {
- private:
- char *txt;
- char suchGBeg;
- char suchGEnd;
- int precision;
- public:
-
- DLLEXPORT Text();
-
-
- DLLEXPORT Text( const Text &txt );
-
-
- DLLEXPORT Text( const char *txt );
-
-
- DLLEXPORT Text( int zahl );
-
-
- DLLEXPORT Text( double num );
-
-
- DLLEXPORT Text( float num );
-
- DLLEXPORT ~Text();
-
- DLLEXPORT void toUpperCase();
-
- DLLEXPORT void toLowerCase();
-
-
-
- DLLEXPORT void setSuchGrenzen( char gBeg, char gEnd );
-
-
- DLLEXPORT void setText( const char *t );
-
-
-
- DLLEXPORT void setText( const char *t, int l );
-
-
- DLLEXPORT void setText( Text *t );
-
-
- DLLEXPORT void appendHex( int num );
-
-
- DLLEXPORT void append( char c );
-
-
- DLLEXPORT void append( const char *t );
-
-
-
- DLLEXPORT void append( const char *t, int l );
-
-
- DLLEXPORT void append( Text *t );
-
-
- DLLEXPORT void append( int num );
-
-
- DLLEXPORT void append( __int64 num );
-
-
- DLLEXPORT void append( unsigned int num );
-
-
- DLLEXPORT void append( double num );
-
-
- DLLEXPORT void append( float num );
-
-
-
- DLLEXPORT void insert( int p, char c );
-
-
-
- DLLEXPORT void insert( int p, const char *t );
-
-
-
- DLLEXPORT void insert( int p, Text *t );
-
-
-
-
-
- DLLEXPORT void ersetzen( int p1, int p2, const char *t );
-
-
-
-
-
- DLLEXPORT void ersetzen( int p1, int p2, Text *t );
-
-
-
- DLLEXPORT void ersetzen( char c1, char c2 );
-
-
-
- DLLEXPORT void ersetzen( const char *t1, const char *t2 );
-
-
-
- DLLEXPORT void ersetzen( Text *t1, const char *t2 );
-
-
-
- DLLEXPORT void ersetzen( const char *t1, Text *t2 );
-
-
-
- DLLEXPORT void ersetzen( Text *t1, Text *t2 );
-
-
-
-
- DLLEXPORT void ersetzen( int i, char c1, char c2 );
-
-
-
-
- DLLEXPORT void ersetzen( int i, const char *t1, const char *t2 );
-
-
-
-
- DLLEXPORT void ersetzen( int i, Text *t1, const char *t2 );
-
-
-
-
- DLLEXPORT void ersetzen( int i, const char *t1, Text *t2 );
-
-
-
-
- DLLEXPORT void ersetzen( int i, Text *t1, Text *t2 );
-
-
-
- DLLEXPORT void fillText( char c, int length );
-
-
- DLLEXPORT void remove( int p );
-
-
-
- DLLEXPORT void remove( int p1, int p2 );
-
-
- DLLEXPORT void remove( char c );
-
-
- DLLEXPORT void remove( const char *t );
-
-
- DLLEXPORT void remove( Text *t );
-
-
-
- DLLEXPORT void remove( int i, char c );
-
-
-
- DLLEXPORT void remove( int i, const char *t );
-
-
-
- DLLEXPORT void remove( int i, Text *t );
-
-
- DLLEXPORT void removeWhitespaceAfter( int pos );
-
-
- DLLEXPORT void removeWhitespaceBefore( int pos );
-
-
- DLLEXPORT void setPrecision( int p );
-
- DLLEXPORT int getLength() const;
-
-
- DLLEXPORT int getLKick( int pos ) const;
-
-
- DLLEXPORT int getOKick( int pos ) const;
-
-
- DLLEXPORT int getRKick( int pos ) const;
-
-
- DLLEXPORT int getUKick( int pos ) const;
-
-
-
- DLLEXPORT bool hat( Text *t ) const;
-
-
-
- DLLEXPORT bool hat( const char *t ) const;
-
-
-
-
- DLLEXPORT bool hatAt( int pos, Text *t ) const;
-
-
-
-
- DLLEXPORT bool hatAt( int pos, const char *t ) const;
-
-
-
- DLLEXPORT bool hat( char c ) const;
-
-
-
- DLLEXPORT bool istGleich( const char *t ) const;
-
-
-
- DLLEXPORT bool istGleich( Text *t ) const;
-
- DLLEXPORT char *getText() const;
-
-
-
- DLLEXPORT int anzahlVon( char c ) const;
-
-
-
- DLLEXPORT int anzahlVon( const char *t ) const;
-
-
-
- DLLEXPORT int anzahlVon( Text *t ) const;
-
-
-
- DLLEXPORT int positionVon( char c ) const;
-
-
-
- DLLEXPORT int positionVon( const char *t ) const;
-
-
-
- DLLEXPORT int positionVon( Text *t ) const;
-
-
-
-
- DLLEXPORT int positionVon( char c, int i ) const;
-
-
-
-
- DLLEXPORT int positionVon( const char *t, int i ) const;
-
-
-
-
- DLLEXPORT int positionVon( Text *t, int i ) const;
-
-
-
- DLLEXPORT Text *getTeilText( int p1, int p2 ) const;
-
-
- DLLEXPORT Text *getTeilText( int p ) const;
-
- DLLEXPORT int hashCode() const;
-
- DLLEXPORT Text &operator+=( const int num );
-
- DLLEXPORT Text &operator+=( const __int64 num );
-
- DLLEXPORT Text &operator+=( const double num );
-
- DLLEXPORT Text &operator+=( const float num );
-
- DLLEXPORT Text &operator+=( const char *txt );
-
- DLLEXPORT Text &operator+=( const Text &txt );
-
- DLLEXPORT Text &operator=( const int num );
-
- DLLEXPORT Text &operator=( const double num );
-
- DLLEXPORT Text &operator=( const float num );
-
- DLLEXPORT Text &operator=( const char *txt );
-
- DLLEXPORT Text &operator=( const Text &txt );
-
- DLLEXPORT operator char *( ) const;
-
- DLLEXPORT operator int() const;
-
- DLLEXPORT operator __int64() const;
-
- DLLEXPORT operator double() const;
-
- DLLEXPORT operator float() const;
-
- DLLEXPORT bool operator>( Text &t ) const;
-
- DLLEXPORT bool operator<( Text &t ) const;
-
- DLLEXPORT Text operator+( const Text &t2 ) const;
-
- DLLEXPORT Text operator+( const char *t2 ) const;
-
- DLLEXPORT Text operator+( const int num ) const;
-
- DLLEXPORT Text operator+( const __int64 num ) const;
-
- DLLEXPORT Text operator+( const double num ) const;
-
- DLLEXPORT Text operator+( const float num ) const;
-
- DLLEXPORT bool operator==( const Text &right ) const;
- };
- class TextReader : public Reader, public virtual ReferenceCounter
- {
- private:
- Text *txt;
- __int64 lPos;
- public:
-
-
- DLLEXPORT TextReader( Text *txt );
-
- DLLEXPORT virtual ~TextReader();
-
-
-
- DLLEXPORT void setLPosition( __int64 pos, bool ende ) override;
-
-
-
- DLLEXPORT void lese( char *bytes, int len ) override;
-
-
- DLLEXPORT Text *leseZeile() override;
-
-
- DLLEXPORT bool istEnde() const override;
-
-
- DLLEXPORT __int64 getLPosition() const override;
-
- DLLEXPORT __int64 getSize() const override;
- };
-
-
-
-
-
- DLLEXPORT int stringPositionVonChar( char *string, char c, int num );
-
-
-
-
-
- DLLEXPORT int stringPositionVonString( char *string, char *suche, int sBegPos );
-
-
- DLLEXPORT void TextKopieren( const char *txt );
-
-
- DLLEXPORT char *TextInsert();
-
-
-
-
- DLLEXPORT char smallOrBig( char c, bool big );
-
-
-
- DLLEXPORT bool istSchreibbar( unsigned char zeichen );
-
-
-
-
- DLLEXPORT unsigned int TextZuInt( char *c, int system );
-
-
-
-
-
- DLLEXPORT unsigned int TextZuInt( char *c, char **c_ende, int system );
-
-
-
-
- DLLEXPORT unsigned __int64 TextZuInt64( char *c, int system );
-
-
-
-
-
- DLLEXPORT unsigned __int64 TextZuInt64( char *c, char **c_ende, int system );
-
-
-
- DLLEXPORT double TextZuDouble( char *c );
-
-
-
- DLLEXPORT float TextZuFloat( char *c );
-
-
-
-
- DLLEXPORT double TextZuDouble( char *c, char **c_ende );
-
-
-
-
- DLLEXPORT float TextZuFloat( char *c, char **c_ende );
-
-
-
- DLLEXPORT int textLength( const char *txt );
- }
- #endif
|