JString work.
This commit is contained in:
parent
ab14fb3fcd
commit
2ad0d9a30c
@ -75,6 +75,10 @@ namespace coreutils {
|
|||||||
return Proxy(*this, key);
|
return Proxy(*this, key);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// JString & operator=(coreutils:: ZString value) {
|
||||||
|
|
||||||
|
// }
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -31,8 +31,10 @@ int main(int argc, char **argv) {
|
|||||||
// std::cout << "--------" << std::endl;
|
// std::cout << "--------" << std::endl;
|
||||||
// std::cout << "key2: " << test2["key2"] << std::endl;
|
// std::cout << "key2: " << test2["key2"] << std::endl;
|
||||||
|
|
||||||
|
coreutils::MString test0("{\"Number:\"0\",\"id\":\"XXXXX\"}");
|
||||||
coreutils::JString test1;
|
coreutils::JString test1;
|
||||||
coreutils::MString test2;
|
coreutils::MString test2;
|
||||||
|
test1 = test0;
|
||||||
test1["name"] = "Cohen";
|
test1["name"] = "Cohen";
|
||||||
test1["health"] = "100";
|
test1["health"] = "100";
|
||||||
test1["comment"] = "this is a comment";
|
test1["comment"] = "this is a comment";
|
||||||
|
Binary file not shown.
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user