mirror of
https://github.com/unicode-org/icu.git
synced 2025-04-08 06:53:45 +00:00
ICU-615 Changed the parameter name and tested it.
X-SVN-Rev: 2530
This commit is contained in:
parent
665a37ebec
commit
b589f6be89
2 changed files with 31 additions and 31 deletions
|
@ -15,28 +15,28 @@ UCharCharacterIterator::UCharCharacterIterator()
|
|||
// never default construct!
|
||||
}
|
||||
|
||||
UCharCharacterIterator::UCharCharacterIterator(const UChar* text,
|
||||
int32_t textLength)
|
||||
: CharacterIterator(text != 0 ? textLength : 0),
|
||||
text(text)
|
||||
UCharCharacterIterator::UCharCharacterIterator(const UChar* textPtr,
|
||||
int32_t length)
|
||||
: CharacterIterator(textPtr != 0 ? length : 0),
|
||||
text(textPtr)
|
||||
{
|
||||
}
|
||||
|
||||
UCharCharacterIterator::UCharCharacterIterator(const UChar* text,
|
||||
int32_t textLength,
|
||||
UTextOffset pos)
|
||||
: CharacterIterator(text != 0 ? textLength : 0, pos),
|
||||
text(text)
|
||||
UCharCharacterIterator::UCharCharacterIterator(const UChar* textPtr,
|
||||
int32_t length,
|
||||
UTextOffset position)
|
||||
: CharacterIterator(textPtr != 0 ? length : 0, position),
|
||||
text(textPtr)
|
||||
{
|
||||
}
|
||||
|
||||
UCharCharacterIterator::UCharCharacterIterator(const UChar* text,
|
||||
int32_t textLength,
|
||||
UTextOffset begin,
|
||||
UTextOffset end,
|
||||
UTextOffset pos)
|
||||
: CharacterIterator(text != 0 ? textLength : 0, begin, end, pos),
|
||||
text(text)
|
||||
UCharCharacterIterator::UCharCharacterIterator(const UChar* textPtr,
|
||||
int32_t length,
|
||||
UTextOffset textBegin,
|
||||
UTextOffset textEnd,
|
||||
UTextOffset position)
|
||||
: CharacterIterator(textPtr != 0 ? length : 0, textBegin, textEnd, position),
|
||||
text(textPtr)
|
||||
{
|
||||
}
|
||||
|
||||
|
|
|
@ -26,42 +26,42 @@
|
|||
class U_COMMON_API UCharCharacterIterator : public CharacterIterator {
|
||||
public:
|
||||
/**
|
||||
* Create an iterator over the UChar array referred to by "text".
|
||||
* The iteration range is 0 to <code>len-1</code>.
|
||||
* Create an iterator over the UChar array referred to by "textPtr".
|
||||
* The iteration range is 0 to <code>length-1</code>.
|
||||
* text is only aliased, not adopted (the
|
||||
* destructor will not delete it).
|
||||
* @stable
|
||||
*/
|
||||
UCharCharacterIterator(const UChar* text, int32_t len);
|
||||
UCharCharacterIterator(const UChar* textPtr, int32_t length);
|
||||
|
||||
/**
|
||||
* Create an iterator over the UChar array referred to by "text".
|
||||
* The iteration range is 0 to <code>len-1</code>.
|
||||
* Create an iterator over the UChar array referred to by "textPtr".
|
||||
* The iteration range is 0 to <code>length-1</code>.
|
||||
* text is only aliased, not adopted (the
|
||||
* destructor will not delete it).
|
||||
* The starting
|
||||
* position is specified by "pos". If "pos" is outside the valid
|
||||
* position is specified by "position". If "position" is outside the valid
|
||||
* iteration range, the behavior of this object is undefined.
|
||||
* @stable
|
||||
*/
|
||||
UCharCharacterIterator(const UChar* text, int32_t len,
|
||||
UTextOffset pos);
|
||||
UCharCharacterIterator(const UChar* textPtr, int32_t length,
|
||||
UTextOffset position);
|
||||
|
||||
/**
|
||||
* Create an iterator over the UChar array referred to by "text".
|
||||
* Create an iterator over the UChar array referred to by "textPtr".
|
||||
* The iteration range is 0 to <code>end-1</code>.
|
||||
* text is only aliased, not adopted (the
|
||||
* destructor will not delete it).
|
||||
* The starting
|
||||
* position is specified by "pos". If begin and end do not
|
||||
* form a valid iteration range or "pos" is outside the valid
|
||||
* position is specified by "position". If begin and end do not
|
||||
* form a valid iteration range or "position" is outside the valid
|
||||
* iteration range, the behavior of this object is undefined.
|
||||
* @stable
|
||||
*/
|
||||
UCharCharacterIterator(const UChar* text, int32_t len,
|
||||
UTextOffset begin,
|
||||
UTextOffset end,
|
||||
UTextOffset pos);
|
||||
UCharCharacterIterator(const UChar* textPtr, int32_t length,
|
||||
UTextOffset textBegin,
|
||||
UTextOffset textEnd,
|
||||
UTextOffset position);
|
||||
|
||||
/**
|
||||
* Copy constructor. The new iterator iterates over the same range
|
||||
|
|
Loading…
Add table
Reference in a new issue