Lines Matching refs:rVal

57 static void printValue( const Any & rVal )  in printValue()  argument
60 …OString aStr( OUStringToOString( rVal.getValueType().getTypeName(), RTL_TEXTENCODING_ISO_8859_1 ) … in printValue()
63 switch (rVal.getValueTypeClass()) in printValue()
69 if (rVal.hasValue()) in printValue()
70 printValue( *(Any *)rVal.getValue() ); in printValue()
73 printf( "%s", (*(sal_Bool *)rVal.getValue() ? "true" : "false") ); in printValue()
78 ar[0] = (char)*(sal_Unicode *)rVal.getValue(); in printValue()
84 printf( "%x", (int)*(sal_Int8 *)rVal.getValue() ); in printValue()
87 printf( "%x", *(sal_Int16 *)rVal.getValue() ); in printValue()
90 printf( "%x", *(sal_uInt16 *)rVal.getValue() ); in printValue()
93 printf( "%lx", static_cast<long>(*(sal_Int32 *)rVal.getValue()) ); in printValue()
96 printf( "%lx", static_cast<unsigned long>(*(sal_uInt32 *)rVal.getValue()) ); in printValue()
99 printf( "%lx", (long)*(sal_Int64 *)rVal.getValue() ); in printValue()
102 printf( "%lx", (unsigned long)*(sal_uInt64 *)rVal.getValue() ); in printValue()
105 printf( "%f", *(float *)rVal.getValue() ); in printValue()
108 printf( "%g", *(double *)rVal.getValue() ); in printValue()
112 OString aStr2( OUStringToOString( *(OUString *)rVal.getValue(), RTL_TEXTENCODING_ISO_8859_1 ) ); in printValue()
119 TYPELIB_DANGER_GET( (typelib_TypeDescription **)&pEnumTD, rVal.getValueTypeRef() ); in printValue()
123 if (pEnumTD->pEnumValues[nPos] == *(int *)rVal.getValue()) in printValue()
136 uno_Sequence * pSeq = *(uno_Sequence **)rVal.getValue(); in printValue()
138 TYPELIB_DANGER_GET( &pSeqTD, rVal.getValueTypeRef() ); in printValue()
169 static sal_Bool convertTo( const Type & rDestType, const Any & rVal, sal_Bool bExpectSuccess ) in convertTo() argument
178 aRet = s_xConverter->convertTo( rVal, rDestType ); in convertTo()
189 printValue( rVal ); in convertTo()
195 aRet = s_xConverter->convertTo( rVal, rDestType ); in convertTo()
200 aRet = s_xConverter->convertTo( rVal, rDestType ); in convertTo()
211 printValue( rVal ); in convertTo()
217 aRet = s_xConverter->convertTo( rVal, rDestType ); in convertTo()
232 aRet2 = s_xConverter->convertTo( aRet, rVal.getValueType() ); in convertTo()
242 if (rVal != aRet2) in convertTo()
245 printValue( rVal ); in convertTo()
258 printf( rVal.getValueType().getTypeName().getStr() ); in convertTo()
633 const Any & rVal = rBlock._value; in test_Conversion() local
635 convertTo( ::getCppuType( (const OUString *)0 ), rVal, rBlock._toString ); in test_Conversion()
636 convertTo( ::getCppuType( (const float *)0 ), rVal, rBlock._toFloat ); in test_Conversion()
637 convertTo( ::getCppuType( (const double *)0 ), rVal, rBlock._toDouble ); in test_Conversion()
638 convertTo( ::getCppuType( (const sal_uInt32 *)0 ), rVal, rBlock._toUINT32 ); in test_Conversion()
639 convertTo( ::getCppuType( (const sal_Int32 *)0 ), rVal, rBlock._toINT32 ); in test_Conversion()
640 convertTo( ::getCppuType( (const sal_uInt16 *)0 ), rVal, rBlock._toUINT16 ); in test_Conversion()
641 convertTo( ::getCppuType( (const sal_Int16 *)0 ), rVal, rBlock._toINT16 ); in test_Conversion()
642 convertTo( ::getCppuType( (const sal_Int8 *)0 ), rVal, rBlock._toBYTE ); in test_Conversion()
643 convertTo( ::getBooleanCppuType(), rVal, rBlock._toBOOL ); in test_Conversion()
644 convertTo( ::getCharCppuType(), rVal, rBlock._toChar ); in test_Conversion()
645 convertTo( ::getCppuType( (const TypeClass *)0 ), rVal, rBlock._toTypeClass ); in test_Conversion()
646 convertTo( ::getCppuType( (const Sequence< sal_Int16 > *)0 ), rVal, rBlock._toSeqINT16 ); in test_Conversion()
647 convertTo( ::getCppuType( (const Sequence< Any > *)0 ), rVal, rBlock._toSeqAny ); in test_Conversion()
649 convertTo( ::getVoidCppuType(), rVal, sal_True ); // anything converts to void in test_Conversion()