[[project @ 2005-01-13 20:07:01 by unknown_lamer] unknown_lamer**20050113200701 Utils is now a namespace instead of a class ] { hunk ./source/Bot.H 50 -#define COPYRIGHT_STRING PACKAGE" version "VERSION", Copyright (C) 1997-2000 Etienne BERNARD\nCopyright (C) 2002,2003,2004 Clinton Ebadi" +#define COPYRIGHT_STRING PACKAGE" version "VERSION", Copyright (C) 1997-2000 Etienne BERNARD\nCopyright (C) 2002,2003,2004,2005 Clinton Ebadi\nCopyright (C) 2005 Michael Wilson" hunk ./source/Bot.H 60 -class Utils; hunk ./source/Bot.H 147 - friend class Utils; hunk ./source/ChannelList.H 28 -class Utils; hunk ./source/ChannelList.H 49 - friend class Utils; hunk ./source/User.H 25 -class Utils; hunk ./source/User.H 70 - friend class Utils; hunk ./source/UserListItem.H 29 -class Utils; hunk ./source/UserListItem.H 72 - friend class User; - friend class Utils; hunk ./source/UserListItem.H 74 + friend class User; hunk ./source/Utils.H 35 -class Utils { -public: - static std::string get_nick (std::string); - static std::string get_userhost (std::string); - static std::string get_key(); - - static int get_level (Bot *, std::string); - static int get_level (Bot *, std::string, std::string); - - static std::string make_wildcard (std::string); - +namespace Utils { + std::string get_nick (std::string); + std::string get_userhost (std::string); + std::string get_key(); + + int get_level (Bot *, std::string); + int get_level (Bot *, std::string, std::string); + + std::string make_wildcard (std::string); + hunk ./source/Utils.H 46 - static bool channel_p (std::string); - static bool wildcard_p (std::string); - static bool valid_channel_name_p (std::string); - static bool valid_nickname_p (std::string); - static bool IP_p (std::string); - - static std::string level2str (int); - static std::string prot2str (int); - static std::string bool2str (bool); - static std::string long2str (long); - - static std::time_t str2time(std::string); - + bool channel_p (std::string); + bool wildcard_p (std::string); + bool valid_channel_name_p (std::string); + bool valid_nickname_p (std::string); + bool IP_p (std::string); + + std::string level2str (int); + std::string prot2str (int); + std::string bool2str (bool); + std::string long2str (long); + + std::time_t str2time(std::string); + hunk ./source/Utils.H 60 - static std::string to_lower (std::string); - static std::string to_upper (std::string); - - static std::string trim_str (std::string); + std::string to_lower (std::string); + std::string to_upper (std::string); + + std::string trim_str (std::string); hunk ./source/Utils.H 66 - static std::string scm2str (SCM); - static SCM str2scm (std::string); + std::string scm2str (SCM); + SCM str2scm (std::string); hunk ./source/Utils.H 69 -}; +} }