X-Git-Url: https://git.dogcows.com/gitweb?p=chaz%2Fyoink;a=blobdiff_plain;f=src%2Fstlplus%2Fstrings%2Fstring_bool.cpp;fp=src%2Fstlplus%2Fstrings%2Fstring_bool.cpp;h=0000000000000000000000000000000000000000;hp=9c70090b52e3ac1008964a135785b8313006fa48;hb=574af38ed616d1adfa5e6ce35f67cda1f707f89d;hpb=6c9943707d4f33035830eba0587a61a34eaecbc2 diff --git a/src/stlplus/strings/string_bool.cpp b/src/stlplus/strings/string_bool.cpp deleted file mode 100644 index 9c70090..0000000 --- a/src/stlplus/strings/string_bool.cpp +++ /dev/null @@ -1,35 +0,0 @@ -//////////////////////////////////////////////////////////////////////////////// - -// Author: Andy Rushton -// Copyright: (c) Southampton University 1999-2004 -// (c) Andy Rushton 2004-2009 -// License: BSD License, see ../docs/license.html - -// use the unsigned short representation for bool - -//////////////////////////////////////////////////////////////////////////////// -#include "string_bool.hpp" -#include "string_int.hpp" - -namespace stlplus -{ - - //////////////////////////////////////////////////////////////////////////////// - - std::string bool_to_string(bool i, unsigned radix, radix_display_t display, unsigned width) - throw(std::invalid_argument) - { - return unsigned_short_to_string((unsigned short)i, radix, display, width); - } - - //////////////////////////////////////////////////////////////////////////////// - - bool string_to_bool(const std::string& str, unsigned radix) - throw(std::invalid_argument) - { - return string_to_unsigned_short(str, radix) != 0; - } - - //////////////////////////////////////////////////////////////////////////////// - -} // end namespace stlplus