diff options
author | John Wiegley <johnw@newartisans.com> | 2007-05-07 10:25:15 +0000 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2008-04-13 03:38:39 -0400 |
commit | a07e20c14e5ba3597a855276ad9a195343aee42f (patch) | |
tree | 2148a9a8e3038993cca6865a025a582e95f9caac /src/xpath.h | |
parent | 8aada79971b772fda92131053fa03021cfbc625a (diff) | |
download | fork-ledger-a07e20c14e5ba3597a855276ad9a195343aee42f.tar.gz fork-ledger-a07e20c14e5ba3597a855276ad9a195343aee42f.tar.bz2 fork-ledger-a07e20c14e5ba3597a855276ad9a195343aee42f.zip |
Changed write methods to print.
Diffstat (limited to 'src/xpath.h')
-rw-r--r-- | src/xpath.h | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/xpath.h b/src/xpath.h index 638ec482..7d1f1f44 100644 --- a/src/xpath.h +++ b/src/xpath.h @@ -475,7 +475,7 @@ public: static op_t * defer_sequence(value_t::sequence_t& result_seq); - bool write(std::ostream& out, + bool print(std::ostream& out, const bool relaxed = true, const op_t * op_to_find = NULL, unsigned long * start_pos = NULL, @@ -597,13 +597,13 @@ public: return parse_expr(string(p), tflags); } - bool write(std::ostream& out, + bool print(std::ostream& out, const bool relaxed, const op_t * op_to_find, unsigned long * start_pos, unsigned long * end_pos) const { if (ptr) - ptr->write(out, relaxed, op_to_find, start_pos, end_pos); + ptr->print(out, relaxed, op_to_find, start_pos, end_pos); return true; } @@ -739,8 +739,8 @@ public: return temp.calc(document, scope); } - void write(std::ostream& out) const { - write(out, true, NULL, NULL, NULL); + void print(std::ostream& out) const { + print(out, true, NULL, NULL, NULL); } void dump(std::ostream& out) const { if (ptr) @@ -751,7 +751,7 @@ public: }; inline std::ostream& operator<<(std::ostream& out, const xpath_t::op_t& op) { - op.write(out); + op.print(out); return out; }; @@ -774,7 +774,7 @@ class xml_command : public xml::xpath_t::functor_t std::ostream * out = get_ptr<std::ostream>(locals, 0); xml::document_t * doc = get_ptr<xml::document_t>(locals, 1); - doc->write(*out); + doc->print(*out); } }; |