2005/5/9

     
 

class StringIterator

artefaktur
Modules   Namespace List   Class Hierarchy   Alphabetical List   Compound List   Namespace Members   Compound Members   Related Pages  

acdk::lang::String::StringIterator Class Reference

#include <String.h>

List of all members.


Detailed Description

iterator of uc2chars of this string.

Note:
this implementation may be slower, depending of the CharacterClass of the string.


Public Member Functions

 StringIterator (IN(RString) str, int offset)
 StringIterator (const String *str, int offset)
 StringIterator (const String *str, int offset, char *cit, uc2char *uccit)
int operator- (const StringIterator &other) const
StringIterator operator+ (int offset) const
StringIterator operator- (int offset) const
StringIteratoroperator++ ()
StringIterator operator++ (int)
StringIteratoroperator-- ()
StringIterator operator-- (int)
StringIteratoroperator+= (int offset)
StringIteratoroperator-= (int offset)
bool operator== (const StringIterator &other) const
bool operator!= (const StringIterator &other) const
bool operator< (const StringIterator &other) const
bool operator<= (const StringIterator &other) const
bool operator> (const StringIterator &other) const
bool operator>= (const StringIterator &other) const
uc2char operator * ()
RString substr (StringIterator &other) const
 Requirements this < other.

StringgetString () const
int getIndex () const

Private Member Functions

void _initPtrIt ()

Private Attributes

String_str
int _idx
char * _cit
 in case it stores char* (ASCII) the _begin pointer

uc2char_uccit
 in case it stores ucchar* (UCS2) the _begin pointer


Constructor & Destructor Documentation

acdk::lang::String::StringIterator::StringIterator IN(RString str,
int  offset
[inline]
 

acdk::lang::String::StringIterator::StringIterator const String str,
int  offset
[inline]
 

acdk::lang::String::StringIterator::StringIterator const String str,
int  offset,
char *  cit,
uc2char uccit
[inline]
 


Member Function Documentation

void acdk::lang::String::StringIterator::_initPtrIt  )  [inline, private]
 

int acdk::lang::String::StringIterator::getIndex  )  const [inline]
 

String* acdk::lang::String::StringIterator::getString  )  const [inline]
 

uc2char acdk::lang::String::StringIterator::operator *  )  [inline]
 

bool acdk::lang::String::StringIterator::operator!= const StringIterator other  )  const [inline]
 

StringIterator acdk::lang::String::StringIterator::operator+ int  offset  )  const [inline]
 

StringIterator acdk::lang::String::StringIterator::operator++ int   )  [inline]
 

StringIterator& acdk::lang::String::StringIterator::operator++  )  [inline]
 

StringIterator& acdk::lang::String::StringIterator::operator+= int  offset  )  [inline]
 

StringIterator acdk::lang::String::StringIterator::operator- int  offset  )  const [inline]
 

int acdk::lang::String::StringIterator::operator- const StringIterator other  )  const [inline]
 

StringIterator acdk::lang::String::StringIterator::operator-- int   )  [inline]
 

StringIterator& acdk::lang::String::StringIterator::operator--  )  [inline]
 

StringIterator& acdk::lang::String::StringIterator::operator-= int  offset  )  [inline]
 

bool acdk::lang::String::StringIterator::operator< const StringIterator other  )  const [inline]
 

bool acdk::lang::String::StringIterator::operator<= const StringIterator other  )  const [inline]
 

bool acdk::lang::String::StringIterator::operator== const StringIterator other  )  const [inline]
 

bool acdk::lang::String::StringIterator::operator> const StringIterator other  )  const [inline]
 

bool acdk::lang::String::StringIterator::operator>= const StringIterator other  )  const [inline]
 

RString acdk::lang::String::StringIterator::substr StringIterator other  )  const [inline]
 

Requirements this < other.


Member Data Documentation

char* acdk::lang::String::StringIterator::_cit [private]
 

in case it stores char* (ASCII) the _begin pointer

int acdk::lang::String::StringIterator::_idx [private]
 

String* acdk::lang::String::StringIterator::_str [private]
 

uc2char* acdk::lang::String::StringIterator::_uccit [private]
 

in case it stores ucchar* (UCS2) the _begin pointer