summaryrefslogtreecommitdiff
path: root/src/strings
diff options
context:
space:
mode:
authorBen Longbons <b.r.longbons@gmail.com>2013-12-06 14:15:43 -0800
committerBen Longbons <b.r.longbons@gmail.com>2013-12-06 14:15:49 -0800
commit3eea219548e84efdbc3148ce378fcba865f97a01 (patch)
tree6ece594f60ddff038cf9c1d94b99d8d66a00bc20 /src/strings
parent1458563f00deebbbcf3e8049dc90157fb825fae3 (diff)
downloadtmwa-3eea219548e84efdbc3148ce378fcba865f97a01.tar.gz
tmwa-3eea219548e84efdbc3148ce378fcba865f97a01.tar.bz2
tmwa-3eea219548e84efdbc3148ce378fcba865f97a01.tar.xz
tmwa-3eea219548e84efdbc3148ce378fcba865f97a01.zip
Add basic source formatting tools
Diffstat (limited to 'src/strings')
-rw-r--r--src/strings/all.hpp16
-rw-r--r--src/strings/base.hpp8
-rw-r--r--src/strings/fstring.hpp12
-rw-r--r--src/strings/fwd.hpp2
-rw-r--r--src/strings/mstring.hpp4
-rw-r--r--src/strings/pair.hpp6
-rw-r--r--src/strings/sstring.hpp6
-rw-r--r--src/strings/tstring.hpp6
-rw-r--r--src/strings/vstring.hpp4
-rw-r--r--src/strings/xstring.hpp4
-rw-r--r--src/strings/zstring.hpp6
11 files changed, 37 insertions, 37 deletions
diff --git a/src/strings/all.hpp b/src/strings/all.hpp
index 333cb4b..7fd543f 100644
--- a/src/strings/all.hpp
+++ b/src/strings/all.hpp
@@ -19,13 +19,13 @@
// You should have received a copy of the GNU General Public License
// along with this program. If not, see <http://www.gnu.org/licenses/>.
-#include "base.hpp"
-#include "mstring.hpp"
-#include "fstring.hpp"
-#include "tstring.hpp"
-#include "sstring.hpp"
-#include "zstring.hpp"
-#include "xstring.hpp"
-#include "vstring.hpp"
+# include "base.hpp"
+# include "mstring.hpp"
+# include "fstring.hpp"
+# include "tstring.hpp"
+# include "sstring.hpp"
+# include "zstring.hpp"
+# include "xstring.hpp"
+# include "vstring.hpp"
#endif // TMWA_STRINGS_ALL_HPP
diff --git a/src/strings/base.hpp b/src/strings/base.hpp
index 8c0e924..7461872 100644
--- a/src/strings/base.hpp
+++ b/src/strings/base.hpp
@@ -19,10 +19,10 @@
// You should have received a copy of the GNU General Public License
// along with this program. If not, see <http://www.gnu.org/licenses/>.
-#include "fwd.hpp"
-#include "pair.hpp"
+# include "fwd.hpp"
+# include "pair.hpp"
-#include <iterator>
+# include <iterator>
// It is a common mistake to assume that one string class for everything.
// Because C++ and TMWA have a C legacy, there are a few more here
@@ -192,6 +192,6 @@ namespace strings
auto operator >= (const L& l, const R& r) -> decltype((pair_compare(l, r), true));
} // namespace strings
-#include "base.tcc"
+# include "base.tcc"
#endif // TMWA_STRINGS_BASE_HPP
diff --git a/src/strings/fstring.hpp b/src/strings/fstring.hpp
index 8538b70..b025d74 100644
--- a/src/strings/fstring.hpp
+++ b/src/strings/fstring.hpp
@@ -19,13 +19,13 @@
// You should have received a copy of the GNU General Public License
// along with this program. If not, see <http://www.gnu.org/licenses/>.
-#include <cstdarg>
-#include <cstring>
+# include <cstdarg>
+# include <cstring>
-#include <memory>
-#include <vector>
+# include <memory>
+# include <vector>
-#include "base.hpp"
+# include "base.hpp"
namespace strings
{
@@ -89,6 +89,6 @@ namespace strings
StringConverter convert_for_scanf(FString& s);
} // namespace strings
-#include "fstring.tcc"
+# include "fstring.tcc"
#endif // TMWA_STRINGS_FSTRING_HPP
diff --git a/src/strings/fwd.hpp b/src/strings/fwd.hpp
index 9d71b5f..a865fc4 100644
--- a/src/strings/fwd.hpp
+++ b/src/strings/fwd.hpp
@@ -19,7 +19,7 @@
// You should have received a copy of the GNU General Public License
// along with this program. If not, see <http://www.gnu.org/licenses/>.
-#include "../sanity.hpp"
+# include "../sanity.hpp"
// It is a common mistake to assume that one string class for everything.
// Because C++ and TMWA have a C legacy, there are a few more here
diff --git a/src/strings/mstring.hpp b/src/strings/mstring.hpp
index 9658601..6f257ed 100644
--- a/src/strings/mstring.hpp
+++ b/src/strings/mstring.hpp
@@ -19,9 +19,9 @@
// You should have received a copy of the GNU General Public License
// along with this program. If not, see <http://www.gnu.org/licenses/>.
-#include <deque>
+# include <deque>
-#include "base.hpp"
+# include "base.hpp"
namespace strings
{
diff --git a/src/strings/pair.hpp b/src/strings/pair.hpp
index 2c0061a..a519ddb 100644
--- a/src/strings/pair.hpp
+++ b/src/strings/pair.hpp
@@ -19,11 +19,11 @@
// You should have received a copy of the GNU General Public License
// along with this program. If not, see <http://www.gnu.org/licenses/>.
-#include "../sanity.hpp"
+# include "../sanity.hpp"
-#include <cstring>
+# include <cstring>
-#include "fwd.hpp"
+# include "fwd.hpp"
namespace strings
{
diff --git a/src/strings/sstring.hpp b/src/strings/sstring.hpp
index a9558c9..12fb96d 100644
--- a/src/strings/sstring.hpp
+++ b/src/strings/sstring.hpp
@@ -19,8 +19,8 @@
// You should have received a copy of the GNU General Public License
// along with this program. If not, see <http://www.gnu.org/licenses/>.
-#include "base.hpp"
-#include "fstring.hpp"
+# include "base.hpp"
+# include "fstring.hpp"
namespace strings
{
@@ -54,6 +54,6 @@ namespace strings
};
} // namespace strings
-#include "sstring.tcc"
+# include "sstring.tcc"
#endif // TMWA_STRINGS_SSTRING_HPP
diff --git a/src/strings/tstring.hpp b/src/strings/tstring.hpp
index 5d283fa..49ec4ab 100644
--- a/src/strings/tstring.hpp
+++ b/src/strings/tstring.hpp
@@ -19,8 +19,8 @@
// You should have received a copy of the GNU General Public License
// along with this program. If not, see <http://www.gnu.org/licenses/>.
-#include "base.hpp"
-#include "fstring.hpp"
+# include "base.hpp"
+# include "fstring.hpp"
namespace strings
{
@@ -61,6 +61,6 @@ namespace strings
const char *decay_for_printf(const TString& ts);
} // namespace strings
-#include "tstring.tcc"
+# include "tstring.tcc"
#endif // TMWA_STRINGS_TSTRING_HPP
diff --git a/src/strings/vstring.hpp b/src/strings/vstring.hpp
index 7864b7d..c07c32a 100644
--- a/src/strings/vstring.hpp
+++ b/src/strings/vstring.hpp
@@ -19,7 +19,7 @@
// You should have received a copy of the GNU General Public License
// along with this program. If not, see <http://www.gnu.org/licenses/>.
-#include "base.hpp"
+# include "base.hpp"
namespace strings
{
@@ -64,6 +64,6 @@ namespace strings
int do_vprint(VString<len>& out, const char *fmt, va_list ap);
} // namespace strings
-#include "vstring.tcc"
+# include "vstring.tcc"
#endif // TMWA_STRINGS_VSTRING_HPP
diff --git a/src/strings/xstring.hpp b/src/strings/xstring.hpp
index 72cae1e..e96ef8a 100644
--- a/src/strings/xstring.hpp
+++ b/src/strings/xstring.hpp
@@ -19,7 +19,7 @@
// You should have received a copy of the GNU General Public License
// along with this program. If not, see <http://www.gnu.org/licenses/>.
-#include "base.hpp"
+# include "base.hpp"
namespace strings
{
@@ -56,6 +56,6 @@ namespace strings
};
} // namespace strings
-#include "xstring.tcc"
+# include "xstring.tcc"
#endif // TMWA_STRINGS_XSTRING_HPP
diff --git a/src/strings/zstring.hpp b/src/strings/zstring.hpp
index 358e3bc..72a227c 100644
--- a/src/strings/zstring.hpp
+++ b/src/strings/zstring.hpp
@@ -19,9 +19,9 @@
// You should have received a copy of the GNU General Public License
// along with this program. If not, see <http://www.gnu.org/licenses/>.
-#include <cstring>
+# include <cstring>
-#include "base.hpp"
+# include "base.hpp"
namespace strings
{
@@ -66,6 +66,6 @@ namespace strings
int do_vscan(ZString in, const char *fmt, va_list ap);
} // namespace strings
-#include "zstring.tcc"
+# include "zstring.tcc"
#endif // TMWA_STRINGS_ZSTRING_HPP