From f5aca1a1b402bd7ebc944dc6e6fe65828d863365 Mon Sep 17 00:00:00 2001 From: Mike Buland Date: Thu, 20 Jan 2011 02:14:08 +0000 Subject: Bu::FString is now String, and there's a shell script to fix any other programs that were using fstring, I hope. --- src/protocoltelnet.h | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'src/protocoltelnet.h') diff --git a/src/protocoltelnet.h b/src/protocoltelnet.h index 253be79..e7a9af1 100644 --- a/src/protocoltelnet.h +++ b/src/protocoltelnet.h @@ -10,7 +10,7 @@ #include "bu/protocol.h" #include "bu/hash.h" -#include "bu/fstring.h" +#include "bu/string.h" // #define __TELNET_DEBUG @@ -88,7 +88,7 @@ namespace Bu * the line or not, the data will be cleared from the buffer when this * function returns, any changes made to the buffer will be destroyed. */ - virtual void gotLine( Bu::FString & /*sLine*/ ){}; + virtual void gotLine( Bu::String & /*sLine*/ ){}; /** * Override this function to be notified of any new data that comes in @@ -98,7 +98,7 @@ namespace Bu * child class in this function, the buffer will never be cleared unless * it happens in this function's override. */ - virtual void gotData( Bu::FString & /*sData*/ ){}; + virtual void gotData( Bu::String & /*sData*/ ){}; /** * Using this function to enable or disable canonical mode only affects @@ -117,11 +117,11 @@ namespace Bu void setCanonical( bool bCon=true ); bool isCanonical(); - void write( const Bu::FString &sData ); + void write( const Bu::String &sData ); void write( const char *pData, int iSize ); void write( char cData ); - const Bu::FString &getBuffer() { return sDataBuf; } + const Bu::String &getBuffer() { return sDataBuf; } public: /** @@ -138,7 +138,7 @@ namespace Bu * sSubBuf, it will be cleared as soon as this function returns anyway. */ virtual void onSubUnknown( char /*cSubOpt*/, - Bu::FString & /*sSubBuf*/ ){}; + Bu::String & /*sSubBuf*/ ){}; private: /** @@ -208,8 +208,8 @@ namespace Bu private: Client *pClient; - Bu::FString sDataBuf; /**< Buffer for regular line data. */ - Bu::FString sSubBuf; /**< Buffer for subnegotiation data. */ + Bu::String sDataBuf; /**< Buffer for regular line data. */ + Bu::String sSubBuf; /**< Buffer for subnegotiation data. */ char cSubOpt; /**< Which suboption are we processing. */ bool bCanonical; /**< Are we canonicalizing incoming data? */ -- cgit v1.2.3