mirror of
https://github.com/pocoproject/poco.git
synced 2025-10-20 22:31:31 +02:00
Add methods that turns a numeric index into a string for getting the element (an array is actually a document)
This commit is contained in:
@@ -51,6 +51,13 @@ Array::~Array()
|
||||
}
|
||||
|
||||
|
||||
Element::Ptr Array::get(int pos) const
|
||||
{
|
||||
std::string name = Poco::NumberFormatter::format(pos);
|
||||
return Document::get(name);
|
||||
}
|
||||
|
||||
|
||||
std::string Array::toString(int indent) const
|
||||
{
|
||||
std::ostringstream oss;
|
||||
|
Reference in New Issue
Block a user