findfile - content

Post here your experiences, comments, suggestions, or bug reports regarding to the DELPHI AREA products. Not-matching topics will be moved or deleted.

findfile - content

by rafael castro » 25/04/10 21:17

hi.

I think I detect an error when searching for content.
specifically in a text file UTF-16 LE
This file contains the word "Database"

well ...
when I search the content "Datatabase" and option is [csoCaseSensitive]
returns True. OK.
when I search the content "datatabase" and options is [csoCaseSensitive]
returns False. OK.

but if the option is []
when I search the content "Datatabase" returns False. ??.
when I search the content "datatabase" returns False. ??.

this is a error?

file here: http://www.rcastro360.com/file.txt

I've tested the component FindFileW and demoW

Thanks.

Delphi 7, XP
rafael castro
Active Member
Active Member
 
Posts: 6
Joined: 28/02/10 02:25

Re: findfile - content

by rafael castro » 28/04/10 13:03

Sorry, before I wrote the wrong word

Datatabase is Database
datatabase is database

anyway ... I have confirmed findfile has a bug in the search for content

well ...
when I search the content "Database" and option is [csoCaseSensitive]
returns True. OK.
when I search the content "database" and options is [csoCaseSensitive]
returns False. OK.

but if the option is []
when I search the content "Database" returns False. ??.
when I search the content "database" returns False. ??.
rafael castro
Active Member
Active Member
 
Posts: 6
Joined: 28/02/10 02:25

Re: findfile - content

by Kambiz » 30/04/10 11:01

Thank you for bringing this bug in my attention.

I fixed the bug and you can download the update from the component's page. The bug was in both Ansi and Unicode versions of the component, and was affecting UTF-8, UTF-16, and ANSI searches.
Kambiz

Donate a cup of food for free: Click to Give @ The Hunger Site
User avatar
Kambiz
Administrator
Administrator
 
Posts: 1968
Joined: 07/03/03 19:10
Location: Tehran, Iran

Re: findfile - content

by rafael castro » 30/04/10 20:25

Thank you for fixing it.
All your components are of high quality.
:-({|=
rafael castro
Active Member
Active Member
 
Posts: 6
Joined: 28/02/10 02:25

Re: findfile - content

by rafael castro » 01/05/10 18:51

hi kambiz

a question:
you assume that if the file is ansi, the search phrase is ansi.
if the file is ansi and search phrase is wide ... search -> '???'

For example:
the search string is 副 档 名 and the file is ansi, if the file contains '???' returns true.

:-k

Thanks.
rafael castro
Active Member
Active Member
 
Posts: 6
Joined: 28/02/10 02:25

Re: findfile - content

by Kambiz » 10/05/10 13:19

Search is based on the file content, and the search phrase may be converted to Ansi, UTF-16, or UTF-8.
Kambiz

Donate a cup of food for free: Click to Give @ The Hunger Site
User avatar
Kambiz
Administrator
Administrator
 
Posts: 1968
Joined: 07/03/03 19:10
Location: Tehran, Iran


Return to DELPHI AREA Products

Who is online

Users browsing this forum: No registered users and 1 guest