<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=UTF-8" http-equiv="Content-Type">
  <title></title>
</head>
<body bgcolor="#cccccc" text="#000000">
Florian Klaempfl wrote:
<blockquote cite="mid:48C7B3CE.3000304@freepascal.org" type="cite">
  <pre wrap="">Graeme Geldenhuys schrieb:
  </pre>
  <blockquote type="cite">
    <pre wrap="">Remember, Unicode support is much more that simply storing and
displaying text. You have various encodings, RTL or LTR direction etc.
 I can't see how a simple type can keep track of all such information
- but then, I don't know the internals of FPC either.  ;-)
    </pre>
  </blockquote>
  <pre wrap=""><!---->
How would an OOP approach solve this? The problem isn't the tracking of
things like encoding or directions but handling all these information.
_______________________________________________
fpc-devel maillist  -  <a class="moz-txt-link-abbreviated" href="mailto:fpc-devel@lists.freepascal.org">fpc-devel@lists.freepascal.org</a>
<a class="moz-txt-link-freetext" href="http://lists.freepascal.org/mailman/listinfo/fpc-devel">http://lists.freepascal.org/mailman/listinfo/fpc-devel</a>

  </pre>
</blockquote>
<font size="-1"><font face="Helvetica, Arial, sans-serif">procedure
TLabel.Paint(...)<br>
begin<br>
  if <b>Caption.IsRTL </b>then<br>
    DrawCaptionRTL(0,0,<b>Caption.AsUTF8</b>, flags)<br>
 else<br>
    </font></font><font size="-1"><font
 face="Helvetica, Arial, sans-serif">DrawCaption(0,0,<b>Caption.AsUTF8</b>,
flags);<br>
end;<br>
<br>
Is not that enough?<br>
<br>
<br>
</font></font>
</body>
</html>