Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-devel / 2008-09

What to expect if FPC fully supports unicode?

6 messages · 4 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Graeme Geldenhuys

Hi,

How far will Unicode support go in FPC when it is one day implemented? Anybody know if the following is allowed in D2009?

Please add to the list... :-)

eg:

1..) My I have the following class names?

     type
        TMyåClaß = class(TObject)
        end;

2..) What about function and parameter names?

     type
        TMyåClaß = class(TObject)
        public
           property Nãàm: unicodestring read ....;
        end;

Regards,
- Graeme -

_______________________________________________
fpGUI - a cross-platform Free Pascal GUI toolkit
http://opensoft.homeip.net/fpgui/

Reply by email

Thaddy
to Graeme Geldenhuys
Graeme Geldenhuys wrote 19 lines
Please add to the list... :-) eg: 1..) My I have the following class names? type TMyåClaß = class(TObject) end; 2..) What about function and parameter names? type TMyåClaß = class(TObject) public property Nãàm: unicodestring read ....; end;

Well, in this case: its not in the language, so no need for it ;) Or it would be for ancient greek to remain Delphi compatible :)

Reply by email

Graeme Geldenhuys
to Graeme Geldenhuys: How far will Unicode support go in FPC when it is one day implemented? Anybody know if…
Graeme Geldenhuys wrote
Anybody know if the following is allowed in D2009?

Oops, as a joke I posted the same message in the Delphi newsgroups. To my *huge* surprise, unicode identifiers _are_ supported in D2009. I guess CodeGear is a bit ahead in some areas. ;-)

Show quoted text 18 lines
Yes, I even extended to this: type TMyåClaß?TManiske = class(TObject) a: integer; public property Nãàm: integer read a; end; var s: TMyåClaß?TManiske; begin s:= TMyåClaß?TManiske.Create; s.a:= 12; showmessage(inttostr(s.Nãàm)); s.free; end; just to show that Rimvydas characters also work here.

Regards,
- Graeme -

_______________________________________________
fpGUI - a cross-platform Free Pascal GUI toolkit
http://opensoft.homeip.net/fpgui/

Reply by email

Graeme Geldenhuys
to Graeme Geldenhuys: How far will Unicode support go in FPC when it is one day implemented? Anybody know if…
Graeme Geldenhuys wrote
Hi, How far will Unicode support go in FPC when it is one day implemented? Anybody know if the following is allowed in D2009?

For those that haven't see it yet, here is D2009's take on this...

http://windemo1.codegear.com/Tiburon/LaunchReplays/ASCIInew/ASCIInew.html

Regards,
- Graeme -

_______________________________________________
fpGUI - a cross-platform Free Pascal GUI toolkit
http://opensoft.homeip.net/fpgui/

Reply by email

Marco van de Voort
to Graeme Geldenhuys

In our previous episode, Graeme Geldenhuys said:

Show quoted text 6 lines
> How far will Unicode support go in FPC when it is one day implemented? > Anybody know if the following is allowed in D2009? For those that haven't see it yet, here is D2009's take on this... http://windemo1.codegear.com/Tiburon/LaunchReplays/ASCIInew/ASCIInew.html

Some observations:
- I'm not entirely sure, but the dialog that he shows to install Eastern Asian support might be Vista+ (XP still having a separate Eastern Asian version)
- The source is in UTF-8. NH says this.
- the showmessage works, which means the -W form is called. THis is probably the reason why w9x is not supported anymore, they simply always do -W.

Reply by email

Daniël Mantione
to Graeme Geldenhuys: How far will Unicode support go in FPC when it is one day implemented? Anybody know if…

Op Thu, 18 Sep 2008, schreef Graeme Geldenhuys:

Show quoted text 8 lines
Hi, How far will Unicode support go in FPC when it is one day implemented? type TMyåClaß = class(TObject) public property Nãàm: unicodestring read ....; end;

Never say never, but the compiler uses shortstrings internally for speed. To do that well we would need a shortwidestring type or something with a large lookup table for case insensitivity.

Daniël

Reply by email