Struct xpcom::interfaces::mozISpellI18NUtil
[−]
[src]
#[repr(C)]pub struct mozISpellI18NUtil { /* fields omitted */ }
interface mozISpellI18NUtil : nsISupports
/**
* This interface contains various I18N related code used in various places by the spell checker.
*/
Methods
impl mozISpellI18NUtil
[src]
pub fn coerce<T: mozISpellI18NUtilCoerce>(&self) -> &T
[src]
Cast this mozISpellI18NUtil
to one of its base interfaces.
impl mozISpellI18NUtil
[src]
pub const kCheck: i64
kCheck: i64 = 0
pub const kSuggest: i64
kSuggest: i64 = 1
pub unsafe fn GetLanguage(&self, aLanguage: *mut *const int16_t) -> nsresult
[src]
/**
* The language being used to check spelling
*/
readonly attribute wstring language;
pub unsafe fn GetRootForm(
&self,
word: *const int16_t,
type_: uint32_t,
words: *mut *mut *const int16_t,
count: *mut uint32_t
) -> nsresult
[src]
&self,
word: *const int16_t,
type_: uint32_t,
words: *mut *mut *const int16_t,
count: *mut uint32_t
) -> nsresult
/**
* Given a word return a list of possible root forms of that word
*/
void getRootForm (in wstring word, in uint32_t type, [array, size_is (count)] out wstring words, out uint32_t count);
pub unsafe fn FromRootForm(
&self,
word: *const int16_t,
iwords: *mut *const int16_t,
icount: uint32_t,
owords: *mut *mut *const int16_t,
ocount: *mut uint32_t
) -> nsresult
[src]
&self,
word: *const int16_t,
iwords: *mut *const int16_t,
icount: uint32_t,
owords: *mut *mut *const int16_t,
ocount: *mut uint32_t
) -> nsresult
/**
* Given a word return a list of possible root forms of that word
*/
void fromRootForm (in wstring word, [array, size_is (icount)] in wstring iwords, in uint32_t icount, [array, size_is (ocount)] out wstring owords, out uint32_t ocount);
pub unsafe fn FindNextWord(
&self,
word: *const int16_t,
length: uint32_t,
offset: uint32_t,
begin: *mut int32_t,
end: *mut int32_t
) -> nsresult
[src]
&self,
word: *const int16_t,
length: uint32_t,
offset: uint32_t,
begin: *mut int32_t,
end: *mut int32_t
) -> nsresult
/**
* Given a unicode string and an offset, find the beginning and end of the
* next word. begin and end are -1 if there are no words remaining in the
* string. This should really be folded into the Line/WordBreaker.
*/
void findNextWord (in wstring word, in uint32_t length, in uint32_t offset, out int32_t begin, out int32_t end);
Methods from Deref<Target = nsISupports>
pub fn coerce<T: nsISupportsCoerce>(&self) -> &T
[src]
Cast this nsISupports
to one of its base interfaces.
pub unsafe fn QueryInterface(
&self,
uuid: &nsIID,
result: *mut *mut c_void
) -> nsresult
[src]
&self,
uuid: &nsIID,
result: *mut *mut c_void
) -> nsresult
void QueryInterface (in nsIIDRef uuid, [iid_is (uuid), retval] out nsQIResult result);
pub unsafe fn AddRef(&self) -> nsrefcnt
[src]
[noscript,notxpcom] nsrefcnt AddRef ();
pub unsafe fn Release(&self) -> nsrefcnt
[src]
[noscript,notxpcom] nsrefcnt Release ();
Trait Implementations
impl XpCom for mozISpellI18NUtil
[src]
const IID: nsIID
IID: nsIID = nsID(2960512476, 7665, 17434, [190, 191, 104, 13, 140, 170, 161, 156])
fn query_interface<T: XpCom>(&self) -> Option<RefPtr<T>>
[src]
Perform a QueryInterface call on this object, attempting to dynamically cast it to the requested interface type. Returns Some(RefPtr) if the cast succeeded, and None otherwise. Read more
impl RefCounted for mozISpellI18NUtil
[src]
unsafe fn addref(&self)
[src]
Increment the reference count.
unsafe fn release(&self)
[src]
Decrement the reference count, potentially freeing backing memory.
impl Deref for mozISpellI18NUtil
[src]
type Target = nsISupports
The resulting type after dereferencing.
fn deref(&self) -> &nsISupports
[src]
Dereferences the value.