Re: [lazarus] String functions on non latin text

2006-02-28 Thread Mattias Gaertner
to be sure. Panagiotis -Original Message- From: Jesus Reyes [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 28, 2006 8:30 AM To: lazarus@miraclec.com Subject: Re: [lazarus] String functions on non latin text - Original Message - From: Mattias Gaertner [EMAIL PROTECTED

RE: [lazarus] String functions on non latin text

2006-02-28 Thread Panagiotis Sidiropoulos
To: lazarus@miraclec.com Subject: Re: [lazarus] String functions on non latin text On Tue, 28 Feb 2006 09:57:09 +0200 Panagiotis Sidiropoulos [EMAIL PROTECTED] wrote: so if there is something wrong with the sample I thought it should be gtk2 and the only problem I found was the position returned

RE: [lazarus] String functions on non latin text

2006-02-28 Thread Panagiotis Sidiropoulos
Lazarus and FPC, just to be sure. Panagiotis -Original Message- From: Jesus Reyes [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 28, 2006 8:30 AM To: lazarus@miraclec.com Subject: Re: [lazarus] String functions on non latin text - Original Message - From: Mattias

Re: [lazarus] String functions on non latin text

2006-02-28 Thread Mattias Gaertner
@miraclec.com Subject: Re: [lazarus] String functions on non latin text On Tue, 28 Feb 2006 09:57:09 +0200 Panagiotis Sidiropoulos [EMAIL PROTECTED] wrote: so if there is something wrong with the sample I thought it should be gtk2 and the only problem I found was the position returned

Re: [lazarus] String functions on non latin text

2006-02-28 Thread Panagiotis Sidiropoulos
on non latin text - Original Message - From: Mattias Gaertner [EMAIL PROTECTED] To: lazarus@miraclec.com Sent: Monday, February 27, 2006 2:45 PM Subject: Re: [lazarus] String functions on non latin text On Mon, 27 Feb 2006 13:41:13 -0600 (CST) Jesus

Re: [lazarus] String functions on non latin text

2006-02-28 Thread Panagiotis Sidiropoulos
] String functions on non latin text - Original Message - From: Mattias Gaertner [EMAIL PROTECTED] To: lazarus@miraclec.com Sent: Monday, February 27, 2006 2:45 PM Subject: Re: [lazarus] String functions on non latin text On Mon, 27 Feb 2006 13:41:13 -0600

[lazarus] String functions on non latin text

2006-02-27 Thread Panagiotis Sidiropoulos
Functions such as POS() and COPY(), return strange result when used with utf8 text. Forr example, if your try pos( 'κ', 'άέύίόήώϊϋΐΰαβγδεζηθικλμνξοπρσςτυφχψωΑΒΓΔΕΖΗΘΙΚΛΜΝΞΟΠΡΣςΤΥΦΧΨΩΆΈΎΊΌΉΏΪΫ-' ) you will get 1, which is incorrect. I know this has to do with utf encoding (2 or more bytes per

RE: [lazarus] String functions on non latin text

2006-02-27 Thread Panagiotis Sidiropoulos
] String functions on non latin text On Mon, 27 Feb 2006 15:17:41 +0200 Panagiotis Sidiropoulos [EMAIL PROTECTED] wrote: Functions such as POS() and COPY(), return strange result when used with utf8 text. Forr example, if your try pos

Re: [lazarus] String functions on non latin text

2006-02-27 Thread Mattias Gaertner
Message- From: Mattias Gaertner [mailto:[EMAIL PROTECTED] Sent: Monday, February 27, 2006 1:27 PM To: lazarus@miraclec.com Subject: Re: [lazarus] String functions on non latin text On Mon, 27 Feb 2006 15:17:41 +0200 Panagiotis Sidiropoulos [EMAIL PROTECTED] wrote: Functions

RE: [lazarus] String functions on non latin text

2006-02-27 Thread Panagiotis Sidiropoulos
Please download sample project at: - www.magentadb.gr/ftp/pos-sample.zip Panagiotis -Original Message- From: Mattias Gaertner [mailto:[EMAIL PROTECTED] Sent: Monday, February 27, 2006 3:10 PM To: lazarus@miraclec.com Subject: Re: [lazarus] String functions on non latin text On Mon

Re: [lazarus] String functions on non latin text

2006-02-27 Thread Mattias Gaertner
Gaertner [mailto:[EMAIL PROTECTED] Sent: Monday, February 27, 2006 3:10 PM To: lazarus@miraclec.com Subject: Re: [lazarus] String functions on non latin text On Mon, 27 Feb 2006 15:03:17 +0200 Panagiotis Sidiropoulos [EMAIL PROTECTED] wrote: Unfortunatelly, even after checking syntax

RE: [lazarus] String functions on non latin text

2006-02-27 Thread Jesus Reyes
--- Panagiotis Sidiropoulos [EMAIL PROTECTED] escribió: Please download sample project at: - www.magentadb.gr/ftp/pos-sample.zip Panagiotis result := Pos(UTF8Decode(SubStr), UTF8Decode(Str)); seems to work, I think Pos(UTF8String,UTF8String) is yet to be implemented. Jesus Reyes A.

Re: [lazarus] String functions on non latin text

2006-02-27 Thread Mattias Gaertner
On Mon, 27 Feb 2006 13:41:13 -0600 (CST) Jesus Reyes [EMAIL PROTECTED] wrote: --- Panagiotis Sidiropoulos [EMAIL PROTECTED] escribió: Please download sample project at: - www.magentadb.gr/ftp/pos-sample.zip Panagiotis result := Pos(UTF8Decode(SubStr), UTF8Decode(Str));

Re: [lazarus] String functions on non latin text

2006-02-27 Thread Jesus Reyes
- Original Message - From: Mattias Gaertner [EMAIL PROTECTED] To: lazarus@miraclec.com Sent: Monday, February 27, 2006 2:45 PM Subject: Re: [lazarus] String functions on non latin text On Mon, 27 Feb 2006 13:41:13 -0600 (CST) Jesus Reyes [EMAIL PROTECTED] wrote

RE: [lazarus] String functions on non latin text

2006-02-27 Thread Panagiotis Sidiropoulos
: Jesus Reyes [mailto:[EMAIL PROTECTED] Sent: Monday, February 27, 2006 9:41 PM To: lazarus@miraclec.com Subject: RE: [lazarus] String functions on non latin text --- Panagiotis Sidiropoulos [EMAIL PROTECTED] escribió: Please download sample project at: - www.magentadb.gr/ftp/pos-sample.zip

Re: [lazarus] String functions on non latin text

2006-02-27 Thread Vincent Snijders
Panagiotis Sidiropoulos wrote: It returns 41. Seems to be correct. I'm using fpc 2.0.2. Greek k suggested when sample project I up, is in position 21 in the string, not 41. When using sample project, I get following relults while search for each character in String to search in edit box: -

RE: [lazarus] String functions on non latin text

2006-02-27 Thread Panagiotis Sidiropoulos
: Mattias Gaertner [mailto:[EMAIL PROTECTED] Sent: Monday, February 27, 2006 10:46 PM To: lazarus@miraclec.com Subject: Re: [lazarus] String functions on non latin text On Mon, 27 Feb 2006 13:41:13 -0600 (CST) Jesus Reyes [EMAIL PROTECTED] wrote: --- Panagiotis Sidiropoulos [EMAIL PROTECTED

RE: [lazarus] String functions on non latin text

2006-02-27 Thread Panagiotis Sidiropoulos
:[EMAIL PROTECTED] Sent: Tuesday, February 28, 2006 8:30 AM To: lazarus@miraclec.com Subject: Re: [lazarus] String functions on non latin text - Original Message - From: Mattias Gaertner [EMAIL PROTECTED] To: lazarus@miraclec.com Sent: Monday, February 27, 2006 2:45 PM Subject: Re: [lazarus