 |
Bsoft
2.1.0
Bernard's software package
|
Go to the documentation of this file.
12 case JSstring: cout <<
"JSstring";
break;
13 case JSbool: cout <<
"JSbool";
break;
14 case JSinteger: cout <<
"JSinteger";
break;
15 case JSreal: cout <<
"JSreal";
break;
16 case JSobject: cout <<
"JSobject";
break;
17 case JSarray: cout <<
"JSarray";
break;
18 case JSnull: cout <<
"JSnull";
break;
19 default: cout <<
"undefined";
27 for (
int i=0; i<
indent; ++i ) output <<
"\t";
33 output <<
"\"" << jsv.
value() <<
"\"";
35 output << ((jsv.
boolean())?
"true":
"false");
42 if ( jsv.
size() ) output << endl;
47 output <<
"\"" << it->first <<
"\": " << it->second;
57 if ( jsv.
size() > 1 ) {
62 for (
auto it=jsv.
begin(); it!=jsv.
end(); ++it ) {
63 if ( it != jsv.
begin() ) output <<
", ";
66 if ( jsv.
size() > 1 ) {
map< string, JSvalue >::iterator object_begin()
vector< JSvalue >::iterator begin()
vector< JSvalue >::iterator end()
const JStype & type() const
map< string, JSvalue >::iterator object_end()
ostream & operator<<(ostream &output, JStype t)
void indent_line(ostream &output)