Sign in Join
Wiki copytemporary

New in the 1.9.x rtl (not yet in the docs): what changed

Revision 1 to 2. Removed lines have a minus sign; added lines have a plus sign.

OldNewLine
11The following stuff is new in 1.9.x and is not yet in the docs:
22
33- A lot of integer types are changed to SizeInt/SizeUInt to have common declarations for 32 and 64 Bit targets.
44
55The following routines are new in the 1.9.x rtl and aren't yet documented:
66
7-` function UnicodeToUtf8(Dest: PChar; Source: PWideChar; MaxBytes: SizeInt): SizeInt;`\
8-` function UnicodeToUtf8(Dest: PChar; MaxDestBytes: SizeUInt; Source: PWideChar; SourceChars: SizeUInt): SizeUInt;`\
9-` function Utf8ToUnicode(Dest: PWideChar; Source: PChar; MaxChars: SizeInt): SizeInt;`\
10-` function Utf8ToUnicode(Dest: PWideChar; MaxDestChars: SizeUInt; Source: PChar; SourceBytes: SizeUInt): SizeUInt;`
7+``` pascal
8+ function UnicodeToUtf8(Dest: PChar; Source: PWideChar; MaxBytes: SizeInt): SizeInt;
9+ function UnicodeToUtf8(Dest: PChar; MaxDestBytes: SizeUInt; Source: PWideChar; SourceChars: SizeUInt): SizeUInt;
10+ function Utf8ToUnicode(Dest: PWideChar; Source: PChar; MaxChars: SizeInt): SizeInt;
11+ function Utf8ToUnicode(Dest: PWideChar; MaxDestChars: SizeUInt; Source: PChar; SourceBytes: SizeUInt): SizeUInt;
12+```
1113
1214See also [[Language related articles]] for compiler stuff not yet documented.
1315
1416UPD: Now it documented in [[UTF-8]] page.
1517
1618---
1719*From the Free Pascal wiki, page "New in the 1.9.x rtl (not yet in the docs)", as it stood on 2021-06-06 after a change by Jwdietrich, 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](/wiki-contact).*
1820Category: FPC development
1921Category: Historical
2022Category: Outdated information

Back to history