"Fossies" - the Fresh Open Source Software Archive

Member "classicu_1_1Locale_1_1ConvertingIterator.html" (3 Oct 2019, 14148 Bytes) of package /linux/misc/icu4c-65_1-docs.zip:


Caution: In this restricted "Fossies" environment the current HTML page may not be correctly presentated and may have some non-functional links. You can here alternatively try to browse the pure source code or just view or download the uninterpreted raw source code. If the rendering is insufficient you may try to find and view the page on the project site itself.

ICU 65.1  65.1
Public Member Functions
icu::Locale::ConvertingIterator< Iter, Conv > Class Template Reference

A generic Locale iterator implementation over Locale input iterators. More...

#include <locid.h>

Inheritance diagram for icu::Locale::ConvertingIterator< Iter, Conv >:
icu::Locale::Iterator icu::UMemory

Public Member Functions

 ConvertingIterator (Iter begin, Iter end, Conv converter)
 Constructs an iterator from a begin/end range. More...
 
UBool hasNext () const override
 
const Localenext () override
 
- Public Member Functions inherited from icu::Locale::Iterator
virtual ~Iterator ()
 

Detailed Description

template<typename Iter, typename Conv>
class icu::Locale::ConvertingIterator< Iter, Conv >

A generic Locale iterator implementation over Locale input iterators.

Calls the converter to convert each *begin to a const Locale &.

Draft:
This API may be changed in the future versions and was introduced in ICU 65

Definition at line 1062 of file locid.h.

Constructor & Destructor Documentation

◆ ConvertingIterator()

template<typename Iter , typename Conv >
icu::Locale::ConvertingIterator< Iter, Conv >::ConvertingIterator ( Iter  begin,
Iter  end,
Conv  converter 
)
inline

Constructs an iterator from a begin/end range.

Each of the iterator parameter values must be an input iterator whose value the converter converts to const Locale &.

Parameters
beginStart of range.
endExclusive end of range.
converterConverter from *begin to const Locale & or compatible.
Draft:
This API may be changed in the future versions and was introduced in ICU 65

Definition at line 1074 of file locid.h.

Member Function Documentation

◆ hasNext()

template<typename Iter , typename Conv >
UBool icu::Locale::ConvertingIterator< Iter, Conv >::hasNext ( ) const
inlineoverridevirtual
Returns
TRUE if next() can be called again.
Draft:
This API may be changed in the future versions and was introduced in ICU 65

Implements icu::Locale::Iterator.

Definition at line 1081 of file locid.h.

◆ next()

template<typename Iter , typename Conv >
const Locale& icu::Locale::ConvertingIterator< Iter, Conv >::next ( void  )
inlineoverridevirtual
Returns
the next locale.
Draft:
This API may be changed in the future versions and was introduced in ICU 65

Implements icu::Locale::Iterator.

Definition at line 1087 of file locid.h.

References icu::locale_available_init(), U_CALLCONV, ULOC_COUNTRY_CAPACITY, ULOC_FULLNAME_CAPACITY, ULOC_LANG_CAPACITY, and ULOC_SCRIPT_CAPACITY.


The documentation for this class was generated from the following file: