Raised This Month: $32 Target: $400
 8% 

Compare strings library


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
ghostdlr
Senior Member
Join Date: Aug 2010
Old 08-23-2010 , 18:27   Compare strings library
Reply With Quote #1

Is there a library that implements this function ?
ghostdlr is offline
nikhilgupta345
Veteran Member
Join Date: Aug 2009
Location: Virginia
Old 08-23-2010 , 18:37   Re: Compare strings library
Reply With Quote #2

It's included in the amxmodx include.

Code:
if(equali(string1, string2))
{

//do this

}
or

Code:
if(containi(string1, string2))
{

//do this

}
You can use equal, equali, contain, or contani. the "i" at the end means case-insensitive, otherwise, obviously, it is.

equal: http://www.amxmodx.org/funcwiki.php?go=func&id=53
equali: http://www.amxmodx.org/funcwiki.php?...uali&go=search
contain:http://www.amxmodx.org/funcwiki.php?go=func&id=45
containi:http://www.amxmodx.org/funcwiki.php?...aini&go=search

Last edited by nikhilgupta345; 08-23-2010 at 18:44.
nikhilgupta345 is offline
Send a message via ICQ to nikhilgupta345 Send a message via Yahoo to nikhilgupta345
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 08-23-2010 , 19:15   Re: Compare strings library
Reply With Quote #3

string.inc
__________________
fysiks is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 04:27.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode