diff options
author | Mohammed Abdul Azeem <azeemmysore@gmail.com> | 2017-06-29 13:49:18 +0530 |
---|---|---|
committer | Michael Meeks <michael.meeks@collabora.com> | 2017-06-29 17:50:12 +0200 |
commit | b3b6ce3febbf3073dd9e16d908137e41ab473dca (patch) | |
tree | bb1bd13c01468ab103e0427a9c51ad8b1b6b60c8 /include/sax | |
parent | 8a828ee75d4f5d0fd2abcd7d74130e57e5c3bd71 (diff) |
Added find function to FastAttributeList:
It returns a FastAttributeIter, which can be used to
obtain value in different formats directly. Also, avoids
one unnecessary iteration.
Change-Id: Ic28e0177100738bbd71a3a89634cae9f1f7ee996
Reviewed-on: https://gerrit.libreoffice.org/39380
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Michael Meeks <michael.meeks@collabora.com>
Diffstat (limited to 'include/sax')
-rw-r--r-- | include/sax/fastattribs.hxx | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/sax/fastattribs.hxx b/include/sax/fastattribs.hxx index 70ddc4c8bb85..c813fcf6944d 100644 --- a/include/sax/fastattribs.hxx +++ b/include/sax/fastattribs.hxx @@ -164,6 +164,7 @@ public: }; const FastAttributeIter begin() const { return FastAttributeIter(*this, 0); } const FastAttributeIter end() const { return FastAttributeIter(*this, maAttributeTokens.size()); } + const FastAttributeIter find( sal_Int32 nToken ) const; private: sal_Char *mpChunk; ///< buffer to store all attribute values - null terminated strings |