JString work.

This commit is contained in:
Brad Arant 2024-02-16 11:24:42 -08:00
parent ab14fb3fcd
commit 2ad0d9a30c
4 changed files with 6 additions and 0 deletions

View File

@ -75,6 +75,10 @@ namespace coreutils {
return Proxy(*this, key); return Proxy(*this, key);
} }
// JString & operator=(coreutils:: ZString value) {
// }
}; };
} }

View File

@ -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.