Difference between revisions of "FR/Documentation/LanguageCpp"

From Apache OpenOffice Wiki
Jump to: navigation, search
m (New page: Le but de ce chapitre est d'expliquer les particularités du langage C++ dans un environnement UNO et pas d'expliquer ce qu'est le C++. = Types= Les types UNO sont répertoriés dans le ta...)
 
m (Types)
Line 2: Line 2:
 
= Types=
 
= Types=
 
Les types UNO sont répertoriés dans le tableau ci-dessous :
 
Les types UNO sont répertoriés dans le tableau ci-dessous :
 +
; Types UNO
 +
{| border cellspacing="0" width="550"
 +
|- style = "background:#b3e2d1;text-align:center"
 +
| |UNO||Type description||Java||C++||Basic
 +
|- style="text-align:center"
 +
| char||16-bit unicode character type||char||sal_Unicode || -
 +
|- style="text-align:center"
 +
|boolean ||boolean type; true and false ||boolean ||sal_Bool||Boolean
 +
|- style="text-align:center"
 +
|byte ||8-bit ordinal type||byte ||sal_Int8 ||Integer
 +
|- style="text-align:center"
 +
|short ||signed 16-bit ordinal type||short ||sal_Int16 ||Integer
 +
|- style="text-align:center"
 +
|unsigned short||unsigned 16-bit ordinal type||- ||sal_uInt16 ||-
 +
|- style="text-align:center"
 +
|long ||signed 32-bit ordinal type||int ||sal_Int32 ||Long
 +
|- style="text-align:center"
 +
|unsigned long ||unsigned 32-bit type ||- ||sal_uInt32  ||-
 +
|- style="text-align:center"
 +
|hyper||signed 64-bit ordinal type||long  ||sal_Int64  ||-
 +
|- style="text-align:center"
 +
|unsigned hyper ||unsigned 64-bit ordinal type||- ||sal_uInt64  ||-
 +
|- style="text-align:center"
 +
|float  ||processor dependent float||float  ||float (IEEE float) ||Single
 +
|- style="text-align:center"
 +
|double  ||processor dependent double||double||double (IEEE double)||Double
 +
|}

Revision as of 15:11, 2 July 2008

Le but de ce chapitre est d'expliquer les particularités du langage C++ dans un environnement UNO et pas d'expliquer ce qu'est le C++.

Types

Les types UNO sont répertoriés dans le tableau ci-dessous :

Types UNO
UNO Type description Java C++ Basic
char 16-bit unicode character type char sal_Unicode -
boolean boolean type; true and false boolean sal_Bool Boolean
byte 8-bit ordinal type byte sal_Int8 Integer
short signed 16-bit ordinal type short sal_Int16 Integer
unsigned short unsigned 16-bit ordinal type - sal_uInt16 -
long signed 32-bit ordinal type int sal_Int32 Long
unsigned long unsigned 32-bit type - sal_uInt32 -
hyper signed 64-bit ordinal type long sal_Int64 -
unsigned hyper unsigned 64-bit ordinal type - sal_uInt64 -
float processor dependent float float float (IEEE float) Single
double processor dependent double double double (IEEE double) Double
Personal tools