Type Mapping

大体決まってこんな感じ。

UNO Ruby C++ UNO Type Description
void nil void Empty type, used only as method return type and in any.
boolean TrueClass,
FalseClass
sal_Bool Can be true or false.
byte Fixnum sal_Int8 Signed 8-bit integer type (ranging from −128 to 127, inclusive).
short Fixnum sal_Int16 Signed 16-bit integer type (ranging from −32768 to 32767, inclusive).
unsigned short Fixnum sal_uInt16 Unsigned 16-bit integer type (deprecated).
long Bignum sal_Int32 Signed 32-bit integer type (ranging from −2147483648 to 2147483647, inclusive).
unsigned long Bignum sal_uInt32 Unsigned 32-bit integer type (deprecated).
hyper Bignum sal_Int64 Signed 64-bit integer type (ranging from −9223372036854775808 to 9223372036854775807, inclusive).
unsigned hyper Bignum sal_uInt64 Unsigned 64-bit integer type (deprecated).
float Float float IEC 60559 single precision floating point type.
double Float double EC 60559 double precision floating point type.
char Runo::Char sal_Unicode Represents individual Unicode characters (more precisely: individual UTF-16 code units).
string String rtl::OUString Represents Unicode strings (more precisely: strings of Unicode scalar values).
type Runo::Type com::sun::star
::uno::Type
Meta type that describes all UNO types.
any Runo::Any com::sun::star
::uno::Any
Special type that can represent values of all other types.
sequence Array
(byte)
sequence
Runo::
ByteSequence
enum Runo::Enum
struct Runo::
RunoStruct
exception Runo::
RunoException