X-Git-Url: https://git.dogcows.com/gitweb?p=chaz%2Fyoink;a=blobdiff_plain;f=src%2Fstlplus%2Fstrings%2Fstring_vector.cpp;h=66868bcca2b15e3b7b78b297c2966048064580c2;hp=bee9b88e39d93b204a190c8fe919123f55adeaca;hb=5846afb00833cc72fe72422ca896d2387c712cb4;hpb=a97500609dc3c1b11f9786d32bc458eb00de4c36 diff --git a/src/stlplus/strings/string_vector.cpp b/src/stlplus/strings/string_vector.cpp index bee9b88..66868bc 100644 --- a/src/stlplus/strings/string_vector.cpp +++ b/src/stlplus/strings/string_vector.cpp @@ -1,27 +1,27 @@ -//////////////////////////////////////////////////////////////////////////////// - -// Author: Andy Rushton -// Copyright: (c) Southampton University 1999-2004 -// (c) Andy Rushton 2004-2009 -// License: BSD License, see ../docs/license.html - -//////////////////////////////////////////////////////////////////////////////// -#include "string_vector.hpp" - -namespace stlplus -{ - - //////////////////////////////////////////////////////////////////////////////// - // special case of vector - - std::string bool_vector_to_string(const std::vector& values) - { - std::string result; - for (size_t i = 0; i < values.size(); i++) - result.append(1, values[i] ? '1' : '0'); - return result; - } - - //////////////////////////////////////////////////////////////////////////////// - -} // end namespace stlplus +//////////////////////////////////////////////////////////////////////////////// + +// Author: Andy Rushton +// Copyright: (c) Southampton University 1999-2004 +// (c) Andy Rushton 2004-2009 +// License: BSD License, see ../docs/license.html + +//////////////////////////////////////////////////////////////////////////////// +#include "string_vector.hpp" + +namespace stlplus +{ + + //////////////////////////////////////////////////////////////////////////////// + // special case of vector + + std::string bool_vector_to_string(const std::vector& values) + { + std::string result; + for (size_t i = 0; i < values.size(); i++) + result.append(1, values[i] ? '1' : '0'); + return result; + } + + //////////////////////////////////////////////////////////////////////////////// + +} // end namespace stlplus