Inheritance diagram for UBreakIterator:
Public Member Functions | |
this (Type type, inout ULocale locale, UText text) | |
~this () | |
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 Public Member Functions | |
static | this () |
static | ~this () |
Public Attributes | |
package Handle | handle |
const uint | Done = uint.max |
Static Public Attributes | |
static FunctionLoader Bind[] | targets |
Private Types | |
enum | Type { Character, Word, Line, Sentence, Title } |
typedef void * | Handle |
enum | Error { OK, BufferOverflow = 15 } |
Private Member Functions | |
this () | |
uint | getStatus () |
Static Private Member Functions | |
static bool | isError (Error e) |
static void | testError (Error e, char[] msg) |
static char * | toString (char[] string) |
static wchar * | toString (wchar[] string) |
static uint | length (char *s) |
static uint | length (wchar *s) |
static char[] | toArray (char *s) |
static wchar[] | toArray (wchar *s) |
Static Private Attributes | |
static void * | library |
Line boundary analysis determines where a text string can be broken when line-wrapping. The mechanism correctly handles punctuation and hyphenated words.
Sentence boundary analysis allows selection with correct interpretation of periods within numbers and abbreviations, and trailing punctuation marks such as quotation marks and parentheses.
Word boundary analysis is used by search and replace functions, as well as within text editing applications that allow the user to select words with a double click. Word selection provides correct interpretation of punctuation marks within and following words. Characters that are not part of a word, such as symbols or punctuation marks, have word-breaks on both sides.
Character boundary analysis allows users to interact with characters as they expect to, for example, when moving the cursor through a text string. Character boundary analysis provides correct navigation of through character strings, regardless of how the character is stored. For example, an accented character might be stored as a base character and a diacritical mark. What users consider to be a character can differ between languages.
Title boundary analysis locates all positions, typically starts of words, that should be set to Title Case when title casing the text.
See this page for full details.
Definition at line 303 of file UBreakIterator.d.
|
Use this for the primary argument-type to most ICU functions |
|
internal types passed to C API Definition at line 316 of file UBreakIterator.d. |
|
ICU error codes (the ones which are referenced) |
|
Close a UBreakIterator Definition at line 358 of file UBreakIterator.d. |
|
Definition at line 560 of file UBreakIterator.d. |
|
Internal use only! Definition at line 332 of file UBreakIterator.d. |
|
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(). |
|
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(). |
|
Determine the most recently-returned text boundary Definition at line 382 of file UBreakIterator.d. |
|
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. |
|
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. |
|
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. |
|
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. |
|
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. |
|
Return the status from the break rule that determined the most recently returned break position. Definition at line 470 of file UBreakIterator.d. References getStatus(). |
|
Return the status from the break rule that determined the most recently returned break position. The values appear in the rule source within brackets, {123}, for example. For rules that do not specify a status, a default value of 0 is returned. For word break iterators, the possible values are defined in enum UWordBreak Definition at line 489 of file UBreakIterator.d. Referenced by getStatus(). |
|
Definition at line 551 of file UBreakIterator.d. |
|
Definition at line 156 of file ICU.d. Referenced by UCollator::getLocale(). |
|
|
|
|
|
Definition at line 228 of file ICU.d. References strlen(). Referenced by UConverter::UTranscoder::convert(). |
|
Definition at line 237 of file ICU.d. References wcslen(). |
|
Definition at line 246 of file ICU.d. References strlen(). Referenced by UConverter::detectSignature(), UResourceBundle::getKey(), UResourceBundle::getLocale(), UMessageFormat::getLocale(), UCollator::getLocale(), UConverter::getName(), UChar::getPropertyName(), UChar::getPropertyValueName(), and UConverter::opApply(). |
|
Definition at line 257 of file ICU.d. References wcslen(). |
|
Definition at line 305 of file UBreakIterator.d. Referenced by USearch::setIterator(). |
|
Definition at line 308 of file UBreakIterator.d. |
|
Bind the ICU functions from a shared library. This is complicated by the issues regarding D and DLLs on the Windows platform Definition at line 503 of file UBreakIterator.d. |
|
Initial value: [ {cast(void**) &ubrk_open, "ubrk_open"} Definition at line 530 of file UBreakIterator.d. |