📄 string.cpp
字号:
/***************************************************************
File: STRING.CPP Copyright 1992 by Dlugosz Software
part of the CMDL package for command-line parsing
cmdl_string class
This version may be used freely, with attribution.
***************************************************************/
#include "usual.h"
#include "cmdl.h"
/* /\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\ */
/* string */
/* /\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\ */
void cmdl_string::report_error()
{
switch (error) {
case NoValue:
foutput ("use:\n@=<string> or @ <string>\nMay use quotes around a string that contains spaces\n");
break;
default:
cmdl::report_error();
}
}
/* /\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\ */
bool cmdl_string::scan (cmdlscan& s)
{
if (!prelude()) return FALSE;
char* newval= getvalue (s);
delete value; //out with the old
value= newval; //in with the new
if (!value) return FALSE;
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -