summaryrefslogtreecommitdiff
path: root/src/strings
diff options
context:
space:
mode:
authorBen Longbons <b.r.longbons@gmail.com>2014-04-09 16:51:51 -0700
committerBen Longbons <b.r.longbons@gmail.com>2014-04-09 18:16:28 -0700
commit313b592639aa6aaa342ca34b9b6a8a77a299621a (patch)
treeb1e193927e7158cee09c53a3c832ad5cddc6f609 /src/strings
parent312e4d37cc964bbc5bd4e20fd25500b08dc70268 (diff)
downloadtmwa-313b592639aa6aaa342ca34b9b6a8a77a299621a.tar.gz
tmwa-313b592639aa6aaa342ca34b9b6a8a77a299621a.tar.bz2
tmwa-313b592639aa6aaa342ca34b9b6a8a77a299621a.tar.xz
tmwa-313b592639aa6aaa342ca34b9b6a8a77a299621a.zip
Add all the missing copyright headers
Diffstat (limited to 'src/strings')
-rw-r--r--src/strings/all.hpp2
-rw-r--r--src/strings/astring.hpp2
-rw-r--r--src/strings/base.hpp4
-rw-r--r--src/strings/base_test.cpp20
-rw-r--r--src/strings/mstring.hpp2
-rw-r--r--src/strings/rstring.hpp2
-rw-r--r--src/strings/sstring.hpp2
-rw-r--r--src/strings/strings2_test.cpp21
-rw-r--r--src/strings/strings_test.cpp20
-rw-r--r--src/strings/tstring.hpp2
-rw-r--r--src/strings/vstring.hpp2
-rw-r--r--src/strings/xstring.hpp2
-rw-r--r--src/strings/zstring.hpp2
13 files changed, 82 insertions, 1 deletions
diff --git a/src/strings/all.hpp b/src/strings/all.hpp
index 46d5366..26079ed 100644
--- a/src/strings/all.hpp
+++ b/src/strings/all.hpp
@@ -19,6 +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 "../sanity.hpp"
+
# include "base.hpp"
# include "mstring.hpp"
# include "rstring.hpp"
diff --git a/src/strings/astring.hpp b/src/strings/astring.hpp
index e682ef0..aab14cf 100644
--- a/src/strings/astring.hpp
+++ b/src/strings/astring.hpp
@@ -19,6 +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 "../sanity.hpp"
+
# include <cstdarg>
# include <cstring>
diff --git a/src/strings/base.hpp b/src/strings/base.hpp
index c5181da..ee7480b 100644
--- a/src/strings/base.hpp
+++ b/src/strings/base.hpp
@@ -1,6 +1,6 @@
#ifndef TMWA_STRINGS_BASE_HPP
#define TMWA_STRINGS_BASE_HPP
-// strings/base.cls.hpp - CRTP base for string implementations.
+// strings/base.hpp - CRTP base for string implementations.
//
// Copyright © 2013 Ben Longbons <b.r.longbons@gmail.com>
//
@@ -19,6 +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 "../sanity.hpp"
+
# include "fwd.hpp"
# include "pair.hpp"
diff --git a/src/strings/base_test.cpp b/src/strings/base_test.cpp
index 3f9900e..52c44dc 100644
--- a/src/strings/base_test.cpp
+++ b/src/strings/base_test.cpp
@@ -1,4 +1,22 @@
#include "base.hpp"
+// strings/base_test.cpp - Testsuite for CRTP base for string implementations.
+//
+// Copyright © 2013 Ben Longbons <b.r.longbons@gmail.com>
+//
+// This file is part of The Mana World (Athena server)
+//
+// This program is free software: you can redistribute it and/or modify
+// it under the terms of the GNU General Public License as published by
+// the Free Software Foundation, either version 3 of the License, or
+// (at your option) any later version.
+//
+// This program is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU General Public License for more details.
+//
+// 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 <gtest/gtest.h>
@@ -6,6 +24,8 @@
#include "xstring.hpp"
#include "rstring.hpp"
+#include "../poison.hpp"
+
using namespace strings;
struct _test : VString<1> {};
diff --git a/src/strings/mstring.hpp b/src/strings/mstring.hpp
index 6f257ed..8225d9e 100644
--- a/src/strings/mstring.hpp
+++ b/src/strings/mstring.hpp
@@ -19,6 +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 "../sanity.hpp"
+
# include <deque>
# include "base.hpp"
diff --git a/src/strings/rstring.hpp b/src/strings/rstring.hpp
index b79c7f6..7cb19d6 100644
--- a/src/strings/rstring.hpp
+++ b/src/strings/rstring.hpp
@@ -19,6 +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 "../sanity.hpp"
+
# include <cstdarg>
# include <cstring>
diff --git a/src/strings/sstring.hpp b/src/strings/sstring.hpp
index 1836d69..7166e94 100644
--- a/src/strings/sstring.hpp
+++ b/src/strings/sstring.hpp
@@ -19,6 +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 "../sanity.hpp"
+
# include "base.hpp"
# include "rstring.hpp"
diff --git a/src/strings/strings2_test.cpp b/src/strings/strings2_test.cpp
index 24bfc0c..e5d5281 100644
--- a/src/strings/strings2_test.cpp
+++ b/src/strings/strings2_test.cpp
@@ -1,7 +1,28 @@
#include "all.hpp"
+// strings2_test.cpp - Testsuite part 2 for strings.
+//
+// Copyright © 2013 Ben Longbons <b.r.longbons@gmail.com>
+//
+// This file is part of The Mana World (Athena server)
+//
+// This program is free software: you can redistribute it and/or modify
+// it under the terms of the GNU General Public License as published by
+// the Free Software Foundation, either version 3 of the License, or
+// (at your option) any later version.
+//
+// This program is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU General Public License for more details.
+//
+// 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 <gtest/gtest.h>
+#include "../poison.hpp"
+
TEST(StringTests, traits2)
{
ZString print_non = "\t\e";
diff --git a/src/strings/strings_test.cpp b/src/strings/strings_test.cpp
index 55a2ffa..dca463d 100644
--- a/src/strings/strings_test.cpp
+++ b/src/strings/strings_test.cpp
@@ -1,9 +1,29 @@
#include "all.hpp"
+// strings_test.cpp - Testsuite part 1 for strings.
+//
+// Copyright © 2013 Ben Longbons <b.r.longbons@gmail.com>
+//
+// This file is part of The Mana World (Athena server)
+//
+// This program is free software: you can redistribute it and/or modify
+// it under the terms of the GNU General Public License as published by
+// the Free Software Foundation, either version 3 of the License, or
+// (at your option) any later version.
+//
+// This program is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU General Public License for more details.
+//
+// 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 <algorithm>
#include <gtest/gtest.h>
+#include "../poison.hpp"
+
template<typename T>
class StringTest : public ::testing::Test
{
diff --git a/src/strings/tstring.hpp b/src/strings/tstring.hpp
index 700ec3d..7003d37 100644
--- a/src/strings/tstring.hpp
+++ b/src/strings/tstring.hpp
@@ -19,6 +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 "../sanity.hpp"
+
# include "base.hpp"
# include "rstring.hpp"
diff --git a/src/strings/vstring.hpp b/src/strings/vstring.hpp
index c467b64..9952ff9 100644
--- a/src/strings/vstring.hpp
+++ b/src/strings/vstring.hpp
@@ -19,6 +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 "../sanity.hpp"
+
# include "base.hpp"
namespace strings
diff --git a/src/strings/xstring.hpp b/src/strings/xstring.hpp
index 2766810..8f6eac5 100644
--- a/src/strings/xstring.hpp
+++ b/src/strings/xstring.hpp
@@ -19,6 +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 "../sanity.hpp"
+
# include "base.hpp"
namespace strings
diff --git a/src/strings/zstring.hpp b/src/strings/zstring.hpp
index 96aadc0..717da88 100644
--- a/src/strings/zstring.hpp
+++ b/src/strings/zstring.hpp
@@ -19,6 +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 "../sanity.hpp"
+
# include <cstring>
# include "base.hpp"