Back to index

lightning-sunbird  0.9+nobinonly
Public Member Functions
nsISemanticUnitScanner Interface Reference

Provides a language independent way to break UNICODE text into meaningful semantic units (e.g. More...

import "nsISemanticUnitScanner.idl";

Inheritance diagram for nsISemanticUnitScanner:
Inheritance graph
[legend]
Collaboration diagram for nsISemanticUnitScanner:
Collaboration graph
[legend]

List of all members.

Public Member Functions

void start (in string characterSet)
 start()
boolean next (in wstring text, in long length, in long pos, in boolean isLastBuffer, out long begin, out long end)
 next() Get the begin / end offset of the next unit in the current text

Detailed Description

Provides a language independent way to break UNICODE text into meaningful semantic units (e.g.

words).

Definition at line 52 of file nsISemanticUnitScanner.idl.


Member Function Documentation

boolean nsISemanticUnitScanner::next ( in wstring  text,
in long  length,
in long  pos,
in boolean  isLastBuffer,
out long  begin,
out long  end 
)

next() Get the begin / end offset of the next unit in the current text

Parameters:
textthe text to be scanned
lengththe number of characters in the text to be processed
posthe current position
isLastBuffer,thebuffer is the last one
beginthe begin offset of the next unit
beginthe end offset of the next unit
Returns:
has more unit in the current text

start()

Starts up the semantic unit scanner with an optional character set, which acts as a hint to optimize the heuristics used to determine the language(s) of the processed text.

Parameters:
characterSetthe character set the text was originally encoded in (can be NULL)

The documentation for this interface was generated from the following file: