bug fixes on mstring and jstring.

This commit is contained in:
barant committed 2024-12-12 15:47:09 -08:00
1 parent 0d60cce8dc
commit 83e9b8ca99
5 files changed
+23 -13

No files matched your search

+4 -4
View File
@@ -56,17 +56,18 @@ namespace coreutils {
friend std::ostream &operator<<(std::ostream &os, const Proxy &proxy);
operator coreutils::ZString () {
// std::cout << "operator to ZString: " << key << std::endl;
return jstring.find(key);
}
operator coreutils::MString () {
// std::cout << "operator to MString: " << key << std::endl;
return jstring.find(key);
}
operator std::string () {
return jstring.find(key).str();
}
Proxy& operator=(coreutils::ZString value) {
// std::cout << "proxy operator=" << value << std::endl;
jstring.set(key, value);
return *this;
}
@@ -77,7 +78,6 @@ namespace coreutils {
};
Proxy operator[](coreutils::ZString key) {
// std::cout << "operator[" << key << "]" << std::endl;
return Proxy(*this, key);
}