Lines Matching refs:last
76 NS_COUNT( InputIterator& first, const InputIterator& last, const T& value )
79 for ( ; first != last; ++first )
88 copy_string( InputIterator& first, const InputIterator& last, OutputIterator& result )
93 while ( first != last )
95 PRInt32 count_copied = PRInt32(sink_traits::write(result, source_traits::read(first), source_traits::readable_distance(first, last)));
105 copy_string_backward( const InputIterator& first, InputIterator& last, OutputIterator& result )
107 while ( first != last )
109 last.normalize_backward();
111 PRUint32 lengthToCopy = PRUint32( NS_MIN(last.size_backward(), result.size_backward()) );
112 if ( first.fragment().mStart == last.fragment().mStart )
113 lengthToCopy = NS_MIN(lengthToCopy, PRUint32(last.get() - first.get()));
119 nsCharTraits<OutputIterator::value_type>::move(result.get()-lengthToCopy, last.get()-lengthToCopy, lengthToCopy);
121 nsCharTraits<typename OutputIterator::value_type>::move(result.get()-lengthToCopy, last.get()-lengthToCopy, lengthToCopy);
124 last.advance( -PRInt32(lengthToCopy) );