Lines Matching refs:p
35 xub_Unicode ImpGetChar( const SbxValues* p ) in ImpGetChar() argument
40 switch( +p->eType ) in ImpGetChar()
47 nRes = p->nChar; break; in ImpGetChar()
49 nRes = (xub_Unicode) p->nByte; in ImpGetChar()
53 if( p->nInteger < SbxMINCHAR ) in ImpGetChar()
58 nRes = (xub_Unicode) p->nInteger; in ImpGetChar()
62 nRes = (xub_Unicode) p->nUShort; in ImpGetChar()
65 if( p->nLong > SbxMAXCHAR ) in ImpGetChar()
69 else if( p->nLong < SbxMINCHAR ) in ImpGetChar()
74 nRes = (xub_Unicode) p->nLong; in ImpGetChar()
77 if( p->nULong > SbxMAXCHAR ) in ImpGetChar()
82 nRes = (xub_Unicode) p->nULong; in ImpGetChar()
85 if( p->nInt64 > SbxMAXCHAR ) in ImpGetChar()
89 else if( p->nInt64 < SbxMINCHAR ) in ImpGetChar()
94 nRes = (xub_Unicode) p->nInt64; in ImpGetChar()
97 if( p->uInt64 > SbxMAXCHAR ) in ImpGetChar()
102 nRes = (xub_Unicode) p->uInt64; in ImpGetChar()
105 if( p->nSingle > SbxMAXCHAR ) in ImpGetChar()
109 else if( p->nSingle < SbxMINCHAR ) in ImpGetChar()
114 nRes = (xub_Unicode) ImpRound( p->nSingle ); in ImpGetChar()
125 if( p->eType == SbxCURRENCY ) in ImpGetChar()
126 dVal = ImpCurrencyToDouble( p->nLong64 ); in ImpGetChar()
127 else if( p->eType == SbxLONG64 ) in ImpGetChar()
128 dVal = ImpINT64ToDouble( p->nLong64 ); in ImpGetChar()
129 else if( p->eType == SbxULONG64 ) in ImpGetChar()
130 dVal = ImpUINT64ToDouble( p->nULong64 ); in ImpGetChar()
131 else if( p->eType == SbxDECIMAL ) in ImpGetChar()
134 if( p->pDecimal ) in ImpGetChar()
135 p->pDecimal->getDouble( dVal ); in ImpGetChar()
138 dVal = p->nDouble; in ImpGetChar()
155 if ( p->pOUString ) in ImpGetChar()
159 if( ImpScan( *p->pOUString, d, t, NULL ) != SbxERR_OK ) in ImpGetChar()
175 SbxValue* pVal = PTR_CAST(SbxValue,p->pObj); in ImpGetChar()
186 nRes = *p->pChar; break; in ImpGetChar()
189 aTmp.nByte = *p->pByte; goto ref; in ImpGetChar()
192 aTmp.nInteger = *p->pInteger; goto ref; in ImpGetChar()
194 aTmp.nLong = *p->pLong; goto ref; in ImpGetChar()
196 aTmp.nULong = *p->pULong; goto ref; in ImpGetChar()
199 aTmp.nUShort = *p->pUShort; goto ref; in ImpGetChar()
201 aTmp.nSingle = *p->pSingle; goto ref; in ImpGetChar()
204 aTmp.nDouble = *p->pDouble; goto ref; in ImpGetChar()
206 aTmp.nULong64 = *p->pULong64; goto ref; in ImpGetChar()
209 aTmp.nLong64 = *p->pLong64; goto ref; in ImpGetChar()
211 aTmp.nInt64 = *p->pnInt64; goto ref; in ImpGetChar()
213 aTmp.uInt64 = *p->puInt64; goto ref; in ImpGetChar()
215 aTmp.eType = SbxDataType( p->eType & 0x0FFF ); in ImpGetChar()
216 p = &aTmp; goto start; in ImpGetChar()
224 void ImpPutChar( SbxValues* p, xub_Unicode n ) in ImpPutChar() argument
228 switch( +p->eType ) in ImpPutChar()
231 p->nChar = n; break; in ImpPutChar()
234 p->nInteger = n; break; in ImpPutChar()
236 p->nLong = n; break; in ImpPutChar()
238 p->nSingle = n; break; in ImpPutChar()
241 p->nDouble = n; break; in ImpPutChar()
243 p->nInt64 = n; break; in ImpPutChar()
245 p->uInt64 = n; break; in ImpPutChar()
247 p->nULong64 = ImpDoubleToUINT64( (double)n ); break; in ImpPutChar()
249 p->nLong64 = ImpDoubleToINT64( (double)n ); break; in ImpPutChar()
251 p->nLong64 = ImpDoubleToCurrency( (double)n ); break; in ImpPutChar()
253 ImpCreateDecimal( p )->setChar( n ); in ImpPutChar()
258 aTmp.pByte = &p->nByte; goto direct; in ImpPutChar()
260 aTmp.pULong = &p->nULong; goto direct; in ImpPutChar()
263 aTmp.pUShort = &p->nUShort; goto direct; in ImpPutChar()
265 aTmp.eType = SbxDataType( p->eType | SbxBYREF ); in ImpPutChar()
266 p = &aTmp; goto start; in ImpPutChar()
271 if ( !p->pOUString ) in ImpPutChar()
272 p->pOUString = new ::rtl::OUString( n ); in ImpPutChar()
274 *p->pOUString = ::rtl::OUString( n ); in ImpPutChar()
278 SbxValue* pVal = PTR_CAST(SbxValue,p->pObj); in ImpPutChar()
286 *p->pChar = n; break; in ImpPutChar()
288 *p->pByte = (sal_uInt8) n; break; in ImpPutChar()
291 *p->pInteger = n; break; in ImpPutChar()
294 *p->pUShort = (sal_uInt16) n; break; in ImpPutChar()
296 *p->pLong = (sal_Int32) n; break; in ImpPutChar()
298 *p->pULong = (sal_uInt32) n; break; in ImpPutChar()
300 *p->pSingle = (float) n; break; in ImpPutChar()
303 *p->pDouble = (double) n; break; in ImpPutChar()
305 *p->pnInt64 = n; break; in ImpPutChar()
307 *p->puInt64 = n; break; in ImpPutChar()
309 *p->pULong64 = ImpDoubleToUINT64( (double)n ); break; in ImpPutChar()
311 *p->pLong64 = ImpDoubleToINT64( (double)n ); break; in ImpPutChar()
313 *p->pLong64 = ImpDoubleToCurrency( (double)n ); break; in ImpPutChar()