Language

The Free and Open Productivity Suite
Released: Apache OpenOffice 4.1.15

API

SDK

Tips ‘n’ Tricks

Miscellaneous


:: com :: sun :: star :: i18n ::

interface XExtendedTransliteration
Base Interfaces
XExtendedTransliterationXTransliteration

XTransliteration
(referenced interface's summary:)
Character conversions like case folding or Hiragana to Katakana.
Description
This interface provides character conversions like case folding or Hiragana to Katakana.

It is derived from XTransliteration and provides additional functionality for character to character and string to string without offset parameter transliteration. These should be used for performance reason if their full-blown counterparts aren't neded.

Since
OOo 1.1.2

Methods' Summary
transliterateString2String Transliterate a substring. The functionality is the same as XTransliteration::transliterate() but omits the offset prameter to improve performance.  
transliterateChar2String Transliterate a character to a string.  
transliterateChar2Char Transliterate a character to a character.  
Methods' Details
transliterateString2String
string
transliterateString2String( [in] string  aStr,
[in] long  nStartPos,
[in] long  nCount );

Description
Transliterate a substring. The functionality is the same as XTransliteration::transliterate() but omits the offset prameter to improve performance.
Parameter aStr
The input string.
Parameter nStartPos
Start position within aStr from where transliteration starts.
Parameter nCount
Number of codepoints to be transliterated.
transliterateChar2String
string
transliterateChar2String( [in] char  cChar );

Description
Transliterate a character to a string.
Parameter cChar
The input character.
transliterateChar2Char
char
transliterateChar2Char( [in] char  cChar )
raises( MultipleCharsOutputException );

Description
Transliterate a character to a character.

If the output contains multiple characters, for example when transliterating German sharp 's' (the one that looks like a Greek Beta) to upper case "SS", MultipleCharsOutputException will be thrown, the caller must catch the exception and then call XTransliteration::transliterateChar2String() to obtain the correct result.

Parameter cChar
The input character.
Top of Page

Apache Software Foundation

Copyright & License | Privacy | Contact Us | Donate | Thanks

Apache, OpenOffice, OpenOffice.org and the seagull logo are registered trademarks of The Apache Software Foundation. The Apache feather logo is a trademark of The Apache Software Foundation. Other names appearing on the site may be trademarks of their respective owners.