$Id$
*/
+#include <stdlib.h>
+
#include <pbd/enumwriter.h>
#include <pbd/error.h>
#include <pbd/compose.h>
bool found = false;
string::size_type comma;
+ /* catch old-style hex numerics */
+
+ if (str.length() > 2 && str[0] == '0' && str[1] == 'x') {
+ return strtol (str.c_str(), (char **) 0, 16);
+ }
+
do {
comma = str.find_first_of (',');
vector<int>::iterator i;
vector<string>::iterator s;
+ /* catch old-style hex numerics */
+
+ if (str.length() > 2 && str[0] == '0' && str[1] == 'x') {
+ return strtol (str.c_str(), (char **) 0, 16);
+ }
+
for (i = er.values.begin(), s = er.names.begin(); i != er.values.end(); ++i, ++s) {
if (str == (*s)) {
return (*i);