mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-12-02 19:24:46 +01:00
lazutf8: docs
git-svn-id: trunk@46780 -
This commit is contained in:
parent
b3bae2ee14
commit
9928fb1647
@ -314,7 +314,7 @@ end;
|
||||
|
||||
function UTF8CharacterToUnicode(p: PChar; out CharLen: integer): Cardinal;
|
||||
{ if p=nil then CharLen=0 otherwise CharLen>0
|
||||
If there is an encoding error the Result is undefined.
|
||||
If there is an encoding error the Result is 0 and CharLen=1.
|
||||
Use UTF8FixBroken to fix UTF-8 encoding.
|
||||
It does not check if the codepoint is defined in the Unicode tables.
|
||||
}
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
<?xml version="1.0"?>
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<fpdoc-descriptions>
|
||||
<package name="lazutils">
|
||||
<!--
|
||||
@ -103,7 +103,7 @@
|
||||
<element name="UTF8CharacterToUnicode">
|
||||
<short>Returns the codepoint at p and the number of bytes to skip.</short>
|
||||
<descr>If p=nil then CharLen and result are 0 otherwise CharLen>0.
|
||||
If there is an encoding error the Result is not defined, but CharLen is still>0 to skip forward. It is safe to do:
|
||||
If there is an encoding error the Result is 0 and CharLen=1 to skip forward. It is safe to do:
|
||||
|
||||
var s: string;
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user