#include <cstdio> /* for sprintf */
#include <cmath>
#include <cctype>
-#include <string>
+#include <cstring>
#include <cerrno>
#include <iostream>
#include <sys/types.h>
ustring::size_type pos;
ustring legal_chars = "abcdefghijklmnopqrtsuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_+=: ";
ustring legal;
-
+
legal = str;
pos = 0;
{
double step;
- step = 1.0/nframes;
+ step = 1.0/(nframes-1);
in[0] = 0.0f;
return "";
}
+bool
+string_is_affirmative (const std::string& str)
+{
+ /* to be used only with XML data - not intended to handle user input */
+
+ return str == "1" || str == "y" || str == "Y" || (!g_strncasecmp(str.c_str(), "yes", str.length()));
+}
+
extern "C" {
void c_stacktrace() { stacktrace (cerr); }
}