return ::atoi (s.c_str());
}
+int32_t
+atol (const string& s)
+{
+ return (int32_t) ::atol (s.c_str());
+}
+
+int64_t
+atoll (const string& s)
+{
+ return (int64_t) ::atoll (s.c_str());
+}
+
double
atof (const string& s)
{
return duration_str;
}
+
static bool
chars_equal_ignore_case(char x, char y)
{
- static std::locale loc;
- return toupper(x, loc) == toupper(y, loc);
+ /* app should have called setlocale() if its wants this comparison to be
+ locale sensitive.
+ */
+ return toupper (x) == toupper (y);
}
bool
std::string short_version (std::string, std::string::size_type target_length);
-int atoi (const std::string&);
-double atof (const std::string&);
-void url_decode (std::string&);
-void url_decode (Glib::ustring&);
+int atoi (const std::string&);
+int32_t atol (const std::string&);
+int64_t atoll (const std::string&);
+double atof (const std::string&);
+void url_decode (std::string&);
+void url_decode (Glib::ustring&);
// std::string length2string (const int32_t frames, const float sample_rate);
std::string length2string (const int64_t frames, const double sample_rate);