Go Back   Winamp Forums > Developer Center > NSIS Discussion

Reply
Thread Tools Search this Thread Display Modes
Old 6th October 2004, 17:57   #1
Yurik
Member
 
Join Date: Oct 2004
Posts: 89
strcspn - how to?

How can I determine whether string A contains any character of string B?
Yurik is offline   Reply With Quote
Old 6th October 2004, 18:05   #2
Afrow UK
Moderator
 
Afrow UK's Avatar
 
Join Date: Nov 2002
Location: Shropshire, England
Posts: 6,887
So, you want to know if "abcd" contains any of "aefg" (a)?

-Stu
Afrow UK is offline   Reply With Quote
Old 6th October 2004, 18:08   #3
Yurik
Member
 
Join Date: Oct 2004
Posts: 89
Exactly!
The problem is to determine whether password contains incorrect symbols like $-+ etc.

Internet Messengers History and bookmarking tools - http://belkasoft.com
Yurik is offline   Reply With Quote
Old 6th October 2004, 18:13   #4
Afrow UK
Moderator
 
Afrow UK's Avatar
 
Join Date: Nov 2002
Location: Shropshire, England
Posts: 6,887
Ok I will write a function to do this for you.

-Stu
Afrow UK is offline   Reply With Quote
Old 6th October 2004, 18:16   #5
Yurik
Member
 
Join Date: Oct 2004
Posts: 89
It will be really nice!
Thanks!

Internet Messengers History and bookmarking tools - http://belkasoft.com
Yurik is offline   Reply With Quote
Old 6th October 2004, 18:38   #6
Afrow UK
Moderator
 
Afrow UK's Avatar
 
Join Date: Nov 2002
Location: Shropshire, England
Posts: 6,887
Here you go:
http://nsis.sourceforge.net/archive/...b.php?page=628

-Stu
Afrow UK is offline   Reply With Quote
Old 6th October 2004, 18:53   #7
Yurik
Member
 
Join Date: Oct 2004
Posts: 89
Thanks a lot!

Internet Messengers History and bookmarking tools - http://belkasoft.com
Yurik is offline   Reply With Quote
Old 6th October 2004, 19:32   #8
Afrow UK
Moderator
 
Afrow UK's Avatar
 
Join Date: Nov 2002
Location: Shropshire, England
Posts: 6,887
I read your PM. I wrote the other function up, and you can grab it on the same page:
http://nsis.sourceforge.net/archive/...b.php?page=628

Note that I removed some unnecessary Push's and Pop's from the first function, so you might want to update your copy of it.

-Stu
Afrow UK is offline   Reply With Quote
Old 6th October 2004, 19:35   #9
Yurik
Member
 
Join Date: Oct 2004
Posts: 89
Cool, thanks!

Internet Messengers History and bookmarking tools - http://belkasoft.com
Yurik is offline   Reply With Quote
Reply
Go Back   Winamp Forums > Developer Center > NSIS Discussion

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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. The time now is 22:26.