[Libreoffice-commits] core.git: xmlreader/inc
Chr. Rossmanith
ChrRossmanith at gmx.de
Tue Feb 19 07:33:37 PST 2013
xmlreader/inc/xmlreader/span.hxx | 5 +++++
1 file changed, 5 insertions(+)
New commits:
commit a062799bd6902061895e19cace0099fadf696bb4
Author: Chr. Rossmanith <ChrRossmanith at gmx.de>
Date: Tue Feb 19 12:41:55 2013 +0100
add equals(OString const &text) to Span
useful when removing RTL_CONST_STRINGPARAM
Change-Id: Ic131876a3fb38e69185342c4c7a46d536d60c8e5
Reviewed-on: https://gerrit.libreoffice.org/2256
Reviewed-by: Caolán McNamara <caolanm at redhat.com>
Tested-by: Caolán McNamara <caolanm at redhat.com>
diff --git a/xmlreader/inc/xmlreader/span.hxx b/xmlreader/inc/xmlreader/span.hxx
index 6233b5b..58266e9 100644
--- a/xmlreader/inc/xmlreader/span.hxx
+++ b/xmlreader/inc/xmlreader/span.hxx
@@ -53,6 +53,11 @@ struct OOO_DLLPUBLIC_XMLREADER Span {
return equals(Span(textBegin, textLength));
}
+ inline bool equals(rtl::OString const & text) const {
+ return rtl_str_compare_WithLength(
+ begin, length, text.getStr(), text.getLength()) == 0;
+ }
+
rtl::OUString convertFromUtf8() const;
};
More information about the Libreoffice-commits
mailing list