Main Page | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Class Members | File Members | Related Pages

UWordIterator Class Reference

Inheritance diagram for UWordIterator:

UBreakIterator List of all members.

Public Types

enum  Break {
  None = 0, NoneLimit = 100, Number = 100, NumberLimit = 200,
  Letter = 200, LetterLimit = 300, Kana = 300, KanaLimit = 400,
  Ideo = 400, IdeoLimit = 500
}

Public Member Functions

 this (inout ULocale locale, UText text=null)
void getStatus (inout Break b)

Private Member Functions

 this (Type type, inout ULocale locale, UText text)
void setText (UText text)
uint current ()
uint next (uint offset=uint.max)
uint previous (uint offset=uint.max)
uint first ()
uint last ()
bool isBoundary (uint offset)
void getStatus (inout uint s)

Static Private Member Functions

static this ()

Private Attributes

package Handle handle
const uint Done = uint.max

Static Private Attributes

static FunctionLoader Bind[] targets

Member Enumeration Documentation

enum Break
 

Enumeration values:
None 
NoneLimit 
Number 
NumberLimit 
Letter 
LetterLimit 
Kana 
KanaLimit 
Ideo 
IdeoLimit 

Definition at line 115 of file UBreakIterator.d.


Member Function Documentation

this inout ULocale  locale,
UText  text = null
[inline]
 

Definition at line 133 of file UBreakIterator.d.

void getStatus inout Break  b  )  [inline]
 

Return the status from the break rule that determined the most recently returned break position.

Definition at line 145 of file UBreakIterator.d.

this Type  type,
inout ULocale  locale,
UText  text
[inline, inherited]
 

Open a new UBreakIterator for locating text boundaries for a specified locale. A UBreakIterator may be used for detecting character, line, word, and sentence breaks in text.

Definition at line 344 of file UBreakIterator.d.

References ICU::testError(), ICU::toString(), and type().

static this  )  [inline, static, inherited]
 

Definition at line 551 of file UBreakIterator.d.

void setText UText  text  )  [inline, inherited]
 

Sets an existing iterator to point to a new piece of text

Definition at line 369 of file UBreakIterator.d.

References UText::get(), UText::length(), and ICU::testError().

uint current  )  [inline, inherited]
 

Determine the most recently-returned text boundary

Definition at line 382 of file UBreakIterator.d.

uint next uint  offset = uint.max  )  [inline, inherited]
 

Determine the text boundary following the current text boundary, or UBRK_DONE if all text boundaries have been returned.

If offset is specified, determines the text boundary following the current text boundary: The value returned is always greater than offset, or Done

Definition at line 399 of file UBreakIterator.d.

uint previous uint  offset = uint.max  )  [inline, inherited]
 

Determine the text boundary preceding the current text boundary, or Done if all text boundaries have been returned.

If offset is specified, determines the text boundary preceding the specified offset. The value returned is always smaller than offset, or Done.

Definition at line 417 of file UBreakIterator.d.

uint first  )  [inline, inherited]
 

Determine the index of the first character in the text being scanned. This is not always the same as index 0 of the text.

Definition at line 432 of file UBreakIterator.d.

uint last  )  [inline, inherited]
 

Determine the index immediately beyond the last character in the text being scanned. This is not the same as the last character

Definition at line 445 of file UBreakIterator.d.

bool isBoundary uint  offset  )  [inline, inherited]
 

Returns true if the specfied position is a boundary position. As a side effect, leaves the iterator pointing to the first boundary position at or after "offset".

Definition at line 458 of file UBreakIterator.d.

void getStatus inout uint  s  )  [inline, inherited]
 

Return the status from the break rule that determined the most recently returned break position.

Definition at line 470 of file UBreakIterator.d.

References UBreakIterator::getStatus().


Member Data Documentation

package Handle handle [inherited]
 

Definition at line 305 of file UBreakIterator.d.

Referenced by USearch::setIterator().

const uint Done = uint.max [inherited]
 

Definition at line 308 of file UBreakIterator.d.

FunctionLoader Bind [] targets [static, inherited]
 

Initial value:

 
                [
                {cast(void**) &ubrk_open,               "ubrk_open"}

Definition at line 530 of file UBreakIterator.d.


The documentation for this class was generated from the following file:
Generated on Sat Dec 24 17:28:44 2005 for Mango by  doxygen 1.4.0