Re: [fpc-pascal] What is the size of AnsiChar

2012-11-08 Thread Noah Silva
Hi, Just to go a step further, even in a UTF16 String, the Code Element Size probably returns 2, but there is still no guarantee that every character will be handled by one element. For example, all common characters from European languages, Korean, and Japanese can be handled in 2 bytes in

[fpc-pascal] What is the size of AnsiChar

2012-11-05 Thread ik
Hello, As I understand, AnsiString and AnsiChar contain the environment type of string (it can be ISO8859x, utf-8 etc...). If that so, how can I know the size (in bytes) of AnsiChar ? Thanks, Ido ___ fpc-pascal maillist -

Re: [fpc-pascal] What is the size of AnsiChar

2012-11-05 Thread Tomas Hajny
On Mon, November 5, 2012 11:49, ik wrote: Hello Ido, As I understand, AnsiString and AnsiChar contain the environment type of string (it can be ISO8859x, utf-8 etc...). If that so, how can I know the size (in bytes) of AnsiChar ? As far as I understand it, AnsiChar is always 1 byte, i.e. it

Re: [fpc-pascal] What is the size of AnsiChar

2012-11-05 Thread ik
On Mon, Nov 5, 2012 at 1:18 PM, Tomas Hajny xhaj...@hajny.biz wrote: On Mon, November 5, 2012 11:49, ik wrote: Hello Ido, As I understand, AnsiString and AnsiChar contain the environment type of string (it can be ISO8859x, utf-8 etc...). If that so, how can I know the size (in bytes) of

Re: [fpc-pascal] What is the size of AnsiChar

2012-11-05 Thread LacaK
ik wrote / napĂ­sal(a): On Mon, Nov 5, 2012 at 1:18 PM, Tomas Hajny xhaj...@hajny.biz wrote: On Mon, November 5, 2012 11:49, ik wrote: Hello Ido, As I understand, AnsiString and AnsiChar contain the environment type of string (it can be ISO8859x, utf-8 etc...). If that so, how can I

Re: [fpc-pascal] What is the size of AnsiChar

2012-11-05 Thread Jonas Maebe
On 05 Nov 2012, at 11:49, ik wrote: As I understand, AnsiString and AnsiChar contain the environment type of string (it can be ISO8859x, utf-8 etc...). If that so, how can I know the size (in bytes) of AnsiChar ? The size of the type AnsiChar is always one byte. It is impossible to give