Accommodate newly introduced source(s) in our MSVC project (libpbd)
[ardour.git] / libs / pbd / pbd / convert.h
index 6580a6e8e7a7f47eaae845e62d865e401d140bbd..5adabe684da13a6a3ba533bb2705da565bf37f99 100644 (file)
@@ -1,5 +1,5 @@
 /*
-    Copyright (C) 2002 Paul Davis 
+    Copyright (C) 2002 Paul Davis
 
     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
@@ -23,8 +23,7 @@
 #include <stdint.h>
 #include <string>
 #include <vector>
-#include <sstream>
-#include <iostream>
+
 #include <glibmm/ustring.h>
 
 #include "pbd/libpbd_visibility.h"
@@ -40,6 +39,8 @@ LIBPBD_API double  atof (const std::string&);
 LIBPBD_API std::string url_decode (std::string const &);
 
 LIBPBD_API std::string capitalize (const std::string&);
+LIBPBD_API std::string downcase (const std::string&);
+LIBPBD_API const char* downcase (const char*);
 
 // std::string length2string (const int32_t frames, const float sample_rate);
 LIBPBD_API std::string length2string (const int64_t frames, const double sample_rate);
@@ -47,16 +48,6 @@ LIBPBD_API std::string length2string (const int64_t frames, const double sample_
 LIBPBD_API std::vector<std::string> internationalize (const char *, const char **);
 LIBPBD_API bool strings_equal_ignore_case (const std::string& a, const std::string& b);
 
-template <class T> std::string /*LIBPBD_API*/ 
-to_string (T t, std::ios_base & (*f)(std::ios_base&))
-{
-       std::ostringstream oss;
-       oss << f << t;
-       return oss.str();
-}
-
-LIBPBD_API bool string_is_affirmative (const std::string&);
-
 LIBPBD_API const char* sgettext (const char *, const char *);
 
 } //namespace PBD