cmSystemTools: Factor out a cm_isspace helper
Extract the logic added by commit v3.1.0-rc1~386^2 (Encoding: Fix debug asserts ... with non-ascii chars, 2014-06-16) into a helper function so we can re-use it.
This commit is contained in:
parent
ac77a56994
commit
87a9061d57
|
@ -68,6 +68,11 @@
|
||||||
# include "cmMachO.h"
|
# include "cmMachO.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
static bool cm_isspace(char c)
|
||||||
|
{
|
||||||
|
return ((c & 0x80) == 0) && isspace(c);
|
||||||
|
}
|
||||||
|
|
||||||
class cmSystemToolsFileTime
|
class cmSystemToolsFileTime
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
@ -496,7 +501,7 @@ void cmSystemTools::ParseWindowsCommandLine(const char* command,
|
||||||
{
|
{
|
||||||
arg.append(backslashes, '\\');
|
arg.append(backslashes, '\\');
|
||||||
backslashes = 0;
|
backslashes = 0;
|
||||||
if(((*c & 0x80) == 0 ) && isspace(*c))
|
if (cm_isspace(*c))
|
||||||
{
|
{
|
||||||
if(in_quotes)
|
if(in_quotes)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue