The MASM Forum Archive 2004 to 2012

General Forums => The Workshop => Topic started by: Ghirai on April 10, 2006, 09:11:21 PM

Title: Binsearch case insensistive?
Post by: Ghirai on April 10, 2006, 09:11:21 PM
Hey,

The binsearch algo in the masm lib is case sensistive, is there a case insensitive version?
If not, what do i have to edit?

Thanks.
Title: Re: Binsearch case insensistive?
Post by: hutch-- on April 11, 2006, 12:09:12 AM
Ghirai,

Its probably not the right algo to use for this task. It sounds like you would need a table based algo to handle the characters of either case but I don't immediately have one available.
Title: Re: Binsearch case insensistive?
Post by: Ghirai on April 11, 2006, 08:07:25 AM
I see.

Thanks for the info anyway.
Title: Re: Binsearch case insensistive?
Post by: Mark Jones on April 11, 2006, 04:28:43 PM
I haven't seen the binsearch algo. But generally I tried the "case flip" approach - flip the case of the character being matched and if one of the two matches, continue.
Title: Re: Binsearch case insensistive?
Post by: Ghirai on April 11, 2006, 10:33:46 PM
Yeah, that's what i'm trying to do atm :toothy