LibreOffice
LibreOffice 24.2 SDK API Reference
|
provides access to locale specific ordinal suffix systems. More...
import"XOrdinalSuffix.idl";
Public Member Functions | |
sequence< string > | getOrdinalSuffix ([in] long nNumber, [in] com::sun::star::lang::Locale aLocale) |
Returns all the possible ordinal suffixes for the number. More... | |
Public Member Functions inherited from XInterface | |
any | queryInterface ([in] type aType) |
queries for a new interface to an existing UNO object. More... | |
void | acquire () |
increases the reference counter by one. More... | |
void | release () |
decreases the reference counter by one. More... | |
provides access to locale specific ordinal suffix systems.
sequence< string > getOrdinalSuffix | ( | [in] long | nNumber, |
[in] com::sun::star::lang::Locale | aLocale | ||
) |
Returns all the possible ordinal suffixes for the number.
This method will provide "<b>st</b>", "<b>nd</b>", "<b>rd</b>", "<b>th</b>" for an English locale, depending on the provided number. In some locales like French, Italian or Spanish it ca return several suffixes for one number.
Examples: for the number '1', the values will be st in English, but er and re in French. All these values may depend on the underlying version of ICU.