diff options
author | Rüdiger Timm <rt@openoffice.org> | 2007-07-06 09:21:01 +0000 |
---|---|---|
committer | Rüdiger Timm <rt@openoffice.org> | 2007-07-06 09:21:01 +0000 |
commit | fe76e63976e2492beb757ebab182768bd00e2765 (patch) | |
tree | 28239afce0f8f07b606ddeff9cda6108b1f90fc0 /comphelper/source/misc/sequence.cxx | |
parent | a3e115cb5e3c23623c15313fd57e98f6bfde9be9 (diff) |
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
Diffstat (limited to 'comphelper/source/misc/sequence.cxx')
-rw-r--r-- | comphelper/source/misc/sequence.cxx | 11 |
1 files changed, 9 insertions, 2 deletions
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<sal_Int16> 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 |