lazutf8: docs

git-svn-id: trunk@46780 -
This commit is contained in:
mattias 2014-11-07 16:12:32 +00:00
parent b3bae2ee14
commit 9928fb1647
2 changed files with 3 additions and 3 deletions

View File

@ -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.
}

View File

@ -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&gt;0.
If there is an encoding error the Result is not defined, but CharLen is still&gt;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;