From 7af4c5b5c561362cb1135ab504095ae667a9270a Mon Sep 17 00:00:00 2001 From: Ben Longbons Date: Fri, 27 Jun 2014 19:16:45 -0700 Subject: This is more reliable --- src/mmo/strs.hpp | 21 +++++++++------------ 1 file changed, 9 insertions(+), 12 deletions(-) (limited to 'src/mmo/strs.hpp') diff --git a/src/mmo/strs.hpp b/src/mmo/strs.hpp index 16e524a..fea0c98 100644 --- a/src/mmo/strs.hpp +++ b/src/mmo/strs.hpp @@ -1,5 +1,4 @@ -#ifndef TMWA_MMO_STRS_HPP -#define TMWA_MMO_STRS_HPP +#pragma once // strs.hpp - common string types // // Copyright © ????-2004 Athena Dev Teams @@ -21,15 +20,15 @@ // You should have received a copy of the GNU General Public License // along with this program. If not, see . -# include "fwd.hpp" +#include "fwd.hpp" -# include "../strings/vstring.hpp" +#include "../strings/vstring.hpp" namespace tmwa { // affects CharName -# define NAME_IGNORING_CASE 1 +#define NAME_IGNORING_CASE 1 struct AccountName : VString<23> {}; struct AccountPass : VString<23> {}; @@ -39,7 +38,7 @@ struct ServerName : VString<19> {}; struct PartyName : VString<23> {}; struct VarName : VString<31> {}; -# define DEFAULT_EMAIL stringish("a@a.com"_s) +#define DEFAULT_EMAIL stringish("a@a.com"_s) // It is decreed: a mapname shall not contain an extension class MapName : public strings::_crtp_string @@ -94,12 +93,12 @@ public: } VString<23> to__canonical() const { -# if NAME_IGNORING_CASE == 0 +#if NAME_IGNORING_CASE == 0 return to__actual(); -# endif -# if NAME_IGNORING_CASE == 1 +#endif +#if NAME_IGNORING_CASE == 1 return to__lower(); -# endif +#endif } friend bool operator == (const CharName& l, const CharName& r) @@ -125,5 +124,3 @@ CharName stringish(VString<23> iv) return CharName(iv); } } // namespace tmwa - -#endif // TMWA_MMO_STRS_HPP -- cgit v1.2.3-60-g2f50