From 08d9d9e28e0e1b10c08af34cc72f315dccd35f9b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Markus=20Gro=C3=9F?= Date: Tue, 3 Jul 2012 18:42:27 +0200 Subject: [PATCH] Adapt toString to proper naming scheme. --- .../chaiscript/dispatchkit/boxed_number.hpp | 36 +++++++++---------- 1 file changed, 18 insertions(+), 18 deletions(-) diff --git a/include/chaiscript/dispatchkit/boxed_number.hpp b/include/chaiscript/dispatchkit/boxed_number.hpp index 6ad614f..69b4601 100644 --- a/include/chaiscript/dispatchkit/boxed_number.hpp +++ b/include/chaiscript/dispatchkit/boxed_number.hpp @@ -306,7 +306,7 @@ namespace chaiscript } template - std::string toStringAux(const Boxed_Value &v) + std::string to_string_aux(const Boxed_Value &v) { std::ostringstream oss; oss << *static_cast(v.get_const_ptr()); @@ -373,42 +373,42 @@ namespace chaiscript } } - std::string toString() + std::string to_string() { const Type_Info &inp_ = bv.get_type_info(); if (inp_ == typeid(int)) { - return toStringAux(bv); + return to_string_aux(bv); } else if (inp_ == typeid(double)) { - return toStringAux(bv); + return to_string_aux(bv); } else if (inp_ == typeid(float)) { - return toStringAux(bv); + return to_string_aux(bv); } else if (inp_ == typeid(long double)) { - return toStringAux(bv); + return to_string_aux(bv); } else if (inp_ == typeid(char)) { - return toStringAux(Boxed_Value(getAsAux())); + return to_string_aux(Boxed_Value(get_as_aux())); } else if (inp_ == typeid(unsigned int)) { - return toStringAux(bv); + return to_string_aux(bv); } else if (inp_ == typeid(long)) { - return toStringAux(bv); + return to_string_aux(bv); } else if (inp_ == typeid(unsigned long)) { - return toStringAux(bv); + return to_string_aux(bv); } else if (inp_ == typeid(boost::int8_t)) { - return toStringAux(Boxed_Value(getAsAux())); + return to_string_aux(Boxed_Value(get_as_aux())); } else if (inp_ == typeid(boost::int16_t)) { - return toStringAux(bv); + return to_string_aux(bv); } else if (inp_ == typeid(boost::int32_t)) { - return toStringAux(bv); + return to_string_aux(bv); } else if (inp_ == typeid(boost::int64_t)) { - return toStringAux(bv); + return to_string_aux(bv); } else if (inp_ == typeid(boost::uint8_t)) { - return toStringAux(Boxed_Value(getAsAux())); + return to_string_aux(Boxed_Value(get_as_aux())); } else if (inp_ == typeid(boost::uint16_t)) { - return toStringAux(bv); + return to_string_aux(bv); } else if (inp_ == typeid(boost::uint32_t)) { - return toStringAux(bv); + return to_string_aux(bv); } else if (inp_ == typeid(boost::uint64_t)) { - return toStringAux(bv); + return to_string_aux(bv); } else { throw boost::bad_any_cast(); }