flat assembler
Message board for the users of flat assembler.

Index > Windows > search for substring

Author
Thread Post new topic Reply to topic
mario29



Joined: 07 Sep 2010
Posts: 5
mario29
In fasm where can I find a function that does a case insensitive search so that the a string will be checked if a second string is present anywhere in the first string and 1 will be returned if yes and 0 if no.
Post 06 Nov 2010, 19:34
View user's profile Send private message Reply with quote
ouadji



Joined: 24 Dec 2008
Posts: 1081
Location: Belgium
ouadji

maybe build that yourself ? why not ?
Wink

_________________
I am not young enough to know everything (Oscar Wilde)- Image
Post 06 Nov 2010, 19:45
View user's profile Send private message Send e-mail Reply with quote
baldr



Joined: 19 Mar 2008
Posts: 1651
baldr
mario29,

Knuth-Morris-Pratt or Boyer-Moore methods can be useful.
Post 07 Nov 2010, 03:42
View user's profile Send private message Reply with quote
Tyler



Joined: 19 Nov 2009
Posts: 1216
Location: NC, USA
Tyler
vid's Fasmlib has an implementation of Boyer-Moore-Horspool, I've heard.
Post 07 Nov 2010, 04:31
View user's profile Send private message Reply with quote
Picnic



Joined: 05 May 2007
Posts: 1288
Location: behind the arc
Picnic
Windows API StrStrI finds the first occurrence of a substring within a string. The comparison is not case-sensitive.


Last edited by Picnic on 07 Nov 2010, 11:05; edited 1 time in total
Post 07 Nov 2010, 11:02
View user's profile Send private message Reply with quote
vid
Verbosity in development


Joined: 05 Sep 2003
Posts: 7105
Location: Slovakia
vid
Quote:
vid's Fasmlib has an implementation of Boyer-Moore-Horspool, I've heard.

yep, it is pretty easy to implement, once you understand how it works.
Post 07 Nov 2010, 11:04
View user's profile Send private message Visit poster's website AIM Address MSN Messenger ICQ Number Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2020, Tomasz Grysztar.

Powered by rwasa.