Re: icu4c api proposal: clone() for public c++ classes where missing

Markus Scherer <[email protected]>
Newsgroups gmane.comp.lib.icu.general
Organization IBM
Message-ID <[email protected]>
I have got a list of classes now -

I propose to add clone() functions (and copy constructors/assignment operators where missing) to the 
following classes and their subclasses:

(common)
- ForwardCharacterIterator
   This one is a base class to CharacterIterator.
   FwdCI has no clone() but CI does, and it returns a CI*.
   I propose to add the one function FwdCI *FwdCI::clone().
- Locale
- ParsePosition
- ResourceBundle
- StringEnumeration

(i18n)
- CollationKey
- FieldPosition
- Formattable
- StringSearch

I propose to _not_ add clone() functions to the following classes because they forbid copying of any 
kind:

(common)
- CanonicalIterator
- UnicodeSetIterator

(i18n)
- RegexMatcher

markus
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.