<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type"/>
<title></title>
</head>
<body>
<p style="margin: 0px;"><span> </span></p>
<p style="margin: 0px;"></p>
<div style="margin: 5px 0px 5px 0px;">
Michael Schnell <mschnell@lumino.de> hat am 18. Februar 2011 um 11:23 geschrieben:<br/>
<br/>
> On 02/18/2011 11:01 AM, Marc Weustink wrote:<br/>
> ><br/>
> > Nope, from day 1 of lazarus, Length() returned the number of<br/>
> > *physical* elements. Only in some cases this happened to be the number<br/>
> > of *visible* characters.<br/>
> Of course you are right, but inviable characters are no real problem<br/>
> here, visible characters that use up more than one physical element are.
</div>
<p style="margin: 0px;"> </p>
<p style="margin: 0px;">You can not solve visible characters with a simple string type, because for example in arabic some characters are combined depending on the word.</p>
<p style="margin: 0px;">There is simple access to the bytes and with a bit more to code points.</p>
<p style="margin: 0px;"> </p>
<p style="margin: 0px;">Please give more details what problem you need to solve. Otherwise this thread will go endless without a solution.</p>
<p style="margin: 0px;"> </p>
<p style="margin: 0px;">Mattias</p>
<p style="margin: 0px;"> </p>
</body>
</html>