Subversion Repositories gelsvn

Rev

Rev 425 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 425 Rev 595
Line -... Line 1...
-
 
1
/* ----------------------------------------------------------------------- *
-
 
2
 * This file is part of GEL, http://www.imm.dtu.dk/GEL
-
 
3
 * Copyright (C) the authors and DTU Informatics
-
 
4
 * For license and list of authors, see ../../doc/intro.pdf
-
 
5
 * ----------------------------------------------------------------------- */
-
 
6
 
1
#include "Parse.h"
7
#include "Parse.h"
2
#include <cstring>
8
#include <cstring>
3
#include <cstdlib>
9
#include <cstdlib>
4
#include <iostream>
10
#include <iostream>
5
 
11
 
6
using namespace std;
12
using namespace std;
7
using namespace CGLA;
13
using namespace CGLA;
8
 
14
 
9
namespace
15
namespace
10
{
16
{
11
	const char seps[]   = " ,\t\n";
17
	const char seps[]   = " ,\t\n\r";
12
 
18
 
13
	inline char* next_etoken(const char* btoken)
19
	inline char* next_etoken(const char* btoken)
14
	{
20
	{
15
		return const_cast<char*>(btoken)+strcspn(btoken, seps);
21
		return const_cast<char*>(btoken)+strcspn(btoken, seps);
16
	}
22
	}