Widestring/fr
Le type de donnée WideString n'a pas de limite de taille et consiste en un tableau de type WideChar.
Les fonctions de l'unité LCLProc sont là pour faciliter les conversions de types de AnsiString vers WideString et de WideString vers Ansistring.
Définition d'un champ de donnée de type AnsiString :
Var
w: WideString;
a: AnsiString;Les exemples sont pour des systèmes d'exploitation Windows ! Exemples d'affectation correcte d'une AnsiString vers une WideString :
w := UTF8ToUTF16('0123ABCabc456AöU!,.-');
w := w + UTF8ToUTF16(IntToString(45));Exemple d'affectation correcte d'une WideString vers une AnsiString :
a := UTF16ToUTF8(w);From the Free Pascal wiki, page "Widestring/fr", as it stood on 2019-08-19 after a change by Trev, out of the wiki's dump of 2024-05-26. Copyright stays with the author who wrote it, according to the old wiki's Licensing page. If you have concerns about this material, message the admin.
Talk about this page
Nobody has opened a bench for this page yet. Sign in to open one.
