mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-07 21:38:00 +02:00
docs: lazutils: fixed invalid fpdoc elements
git-svn-id: trunk@54517 -
This commit is contained in:
parent
37f2d73f0a
commit
b7c45f8ce4
@ -71,11 +71,10 @@ Otherwise it returns a number 2..4.
|
||||
It does not check for malicious codepoints like #$c0#$80, nor for non defined codepoints like #$f3#$a0#$87#$b9.
|
||||
|
||||
Use UTF8CharacterLength to step through a string with a simple loop:
|
||||
<p><code>while p^<>#0 do begin
|
||||
inc(p,UTF8CharacterLength(p));
|
||||
end;
|
||||
</code>
|
||||
</p>
|
||||
<br/>
|
||||
while p^<>#0 do begin<br/>
|
||||
inc(p,UTF8CharacterLength(p));<br/>
|
||||
end;<br/>
|
||||
|
||||
Even if p contains invalid UTF-8 it will run through the string without overflow.</descr>
|
||||
<errors/>
|
||||
|
Loading…
Reference in New Issue
Block a user