From fe76e63976e2492beb757ebab182768bd00e2765 Mon Sep 17 00:00:00 2001 From: RĂ¼diger Timm Date: Fri, 6 Jul 2007 09:21:01 +0000 Subject: INTEGRATION: CWS oj14 (1.2.6); FILE MERGED 2006/11/07 08:45:27 oj 1.2.6.3: RESYNC: (1.3-1.4); FILE MERGED 2006/07/04 07:30:44 oj 1.2.6.2: RESYNC: (1.2-1.3); FILE MERGED 2006/06/09 11:01:47 oj 1.2.6.1: new helper function existsValue --- comphelper/source/misc/sequence.cxx | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'comphelper/source/misc/sequence.cxx') diff --git a/comphelper/source/misc/sequence.cxx b/comphelper/source/misc/sequence.cxx index 0b9feffbcde5..3bdfe4b5fb67 100644 --- a/comphelper/source/misc/sequence.cxx +++ b/comphelper/source/misc/sequence.cxx @@ -4,9 +4,9 @@ * * $RCSfile: sequence.cxx,v $ * - * $Revision: 1.4 $ + * $Revision: 1.5 $ * - * last change: $Author: obo $ $Date: 2006-09-17 17:14:16 $ + * last change: $Author: rt $ $Date: 2007-07-06 10:21:01 $ * * The Contents of this file are made available subject to * the terms of GNU Lesser General Public License Version 2.1. @@ -100,6 +100,13 @@ staruno::Sequence findValue(const staruno::Sequence< ::rtl::OUString return aRetSeq; } } +// ----------------------------------------------------------------------------- +sal_Bool existsValue(const ::rtl::OUString& Value,const staruno::Sequence< ::rtl::OUString >& _aList) +{ + const ::rtl::OUString * pIter = _aList.getConstArray(); + const ::rtl::OUString * pEnd = pIter + _aList.getLength(); + return ::std::find(pIter,pEnd,Value) != pEnd; +} //......................................................................... } // namespace comphelper -- cgit