2 |
// |
// |
3 |
/**************************************************************************** |
/**************************************************************************** |
4 |
Copyright (C) 2004-2007, rncbc aka Rui Nuno Capela. All rights reserved. |
Copyright (C) 2004-2007, rncbc aka Rui Nuno Capela. All rights reserved. |
5 |
|
Copyright (C) 2007, Christian Schoenebeck |
6 |
|
|
7 |
This program is free software; you can redistribute it and/or |
This program is free software; you can redistribute it and/or |
8 |
modify it under the terms of the GNU General Public License |
modify it under the terms of the GNU General Public License |
27 |
#include <stdio.h> |
#include <stdio.h> |
28 |
#include <qregexp.h> |
#include <qregexp.h> |
29 |
|
|
30 |
|
using namespace QSampler; |
31 |
|
|
32 |
namespace qsamplerUtilities { |
namespace qsamplerUtilities { |
33 |
|
|
34 |
static int _hexToNumber(char hex_digit) { |
static int _hexToNumber(char hex_digit) { |
109 |
!(c >= '0' && c <= '9') && |
!(c >= '0' && c <= '9') && |
110 |
!(c >= 'a' && c <= 'z') && |
!(c >= 'a' && c <= 'z') && |
111 |
!(c >= 'A' && c <= 'Z') && |
!(c >= 'A' && c <= 'Z') && |
112 |
|
#if defined(WIN32) |
113 |
|
!(c == ':') && |
114 |
|
#endif |
115 |
!(c == pathSeparator) |
!(c == pathSeparator) |
116 |
) { |
) { |
117 |
// convert the non-basic character into a LSCP escape sequence |
// convert the non-basic character into a LSCP escape sequence |
173 |
{ |
{ |
174 |
lscpVersion_t result = { 0, 0 }; |
lscpVersion_t result = { 0, 0 }; |
175 |
|
|
176 |
qsamplerMainForm *pMainForm = qsamplerMainForm::getInstance(); |
MainForm* pMainForm = MainForm::getInstance(); |
177 |
if (pMainForm == NULL) |
if (pMainForm == NULL) |
178 |
return result; |
return result; |
179 |
if (pMainForm->client() == NULL) |
if (pMainForm->client() == NULL) |
189 |
} |
} |
190 |
|
|
191 |
} // namespace qsamplerUtilities |
} // namespace qsamplerUtilities |
192 |
|
|
193 |
|
|
194 |
|
// end of qsamplerUtilities.cpp |