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/optparser.h | 56 ++++++++++++++++++++++++++++---------------------------- 1 file changed, 28 insertions(+), 28 deletions(-) (limited to 'src/optparser.h') diff --git a/src/optparser.h b/src/optparser.h index 7ec69e5..9781542 100644 --- a/src/optparser.h +++ b/src/optparser.h @@ -8,7 +8,7 @@ #ifndef BU_OPT_PARSER_H #define BU_OPT_PARSER_H -#include "bu/fstring.h" +#include "bu/string.h" #include "bu/list.h" #include "bu/hash.h" #include "bu/signals.h" @@ -19,7 +19,7 @@ namespace Bu { - typedef Bu::Array StrArray; + typedef Bu::Array StrArray; /** * POSIX/Gnu style command line parser. Handles long and short options in @@ -41,7 +41,7 @@ namespace Bu _ValueProxy(); virtual ~_ValueProxy(); - virtual void setValueFromStr( const Bu::FString & )=0; + virtual void setValueFromStr( const Bu::String & )=0; virtual void setValue( const Bu::Variant &vVar )=0; virtual _ValueProxy *clone()=0; }; @@ -59,7 +59,7 @@ namespace Bu { } - virtual void setValueFromStr( const Bu::FString &sVal ) + virtual void setValueFromStr( const Bu::String &sVal ) { Bu::MemBuf mb( sVal ); Bu::Formatter f( mb ); @@ -72,9 +72,9 @@ namespace Bu { v = vVar.get(); } - else if( vVar.getType() == typeid(Bu::FString) ) + else if( vVar.getType() == typeid(Bu::String) ) { - setValueFromStr( vVar.get() ); + setValueFromStr( vVar.get() ); } else { @@ -101,23 +101,23 @@ namespace Bu virtual ~Option(); char cOpt; - Bu::FString sOpt; - Bu::FString sHelp; + Bu::String sOpt; + Bu::String sHelp; OptionSignal sUsed; _ValueProxy *pProxy; Bu::Variant sOverride; - Bu::FString sHelpDefault; + Bu::String sHelpDefault; }; private: typedef Bu::List