1
0
Fork 0

Add Get_arglength, make trim(string a bit more flexible with whitespace so that configfiles from windows can be used on linux without converting

Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3316
This commit is contained in:
Peter Veenstra 2009-03-11 20:18:37 +00:00
parent 2fd9c8f349
commit 48edfe5409
2 changed files with 13 additions and 4 deletions

View file

@ -16,7 +16,7 @@
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
/* $Id: programs.h,v 1.17 2008-07-26 19:06:26 qbix79 Exp $ */
/* $Id: programs.h,v 1.18 2009-03-11 20:18:37 qbix79 Exp $ */
#ifndef DOSBOX_PROGRAMS_H
#define DOSBOX_PROGRAMS_H
@ -54,6 +54,8 @@ public:
bool GetStringRemain(std::string & value);
unsigned int GetCount(void);
void Shift(unsigned int amount=1);
Bit16u Get_arglength();
private:
typedef std::list<std::string>::iterator cmd_it;
std::list<std::string> cmds;