hi, i need to know how to compare two strings S1 and S2 , i've found fuction is_iequal and is_equal but i dont understand how use it =(, can anyone give me a example? thanks http://www.boost.org/doc/libs/1_41_0/doc/html/boost/algorithm/is_iequal.html -- Ing Pedro Alonso Chaparro Valero Ciudad Politecnica de la Innovación iTEAM - Mobile Communications Group Polytechnic University of Valencia C\ Camino de Vera S/N, Edificio 8G 46022 Valencia, Spain
2009/11/30 pedro chaparro
hi, i need to know how to compare two strings S1 and S2 , i've found fuction is_iequal and is_equal but i dont understand how use it =(, can anyone give me a example? thanks
#include
Christoph Gysin wrote:
2009/11/30 pedro chaparro
: hi, i need to know how to compare two strings S1 and S2 , i've found fuction is_iequal and is_equal but i dont understand how use it =(, can anyone give me a example? thanks
#include
boost::iequals(s1, s2) Chris
I'm sorry but why wouldn't you use std::string::compare() ? -- Claudio Martella Digital Technologies Unit Research & Development - Analyst TIS innovation park Via Siemens 19 | Siemensstr. 19 39100 Bolzano | 39100 Bozen Tel. +39 0471 068 123 Fax +39 0471 068 129 claudio.martella@tis.bz.it http://www.tis.bz.it Short information regarding use of personal data. According to Section 13 of Italian Legislative Decree no. 196 of 30 June 2003, we inform you that we process your personal data in order to fulfil contractual and fiscal obligations and also to send you information regarding our services and events. Your personal data are processed with and without electronic means and by respecting data subjects' rights, fundamental freedoms and dignity, particularly with regard to confidentiality, personal identity and the right to personal data protection. At any time and without formalities you can write an e-mail to privacy@tis.bz.it in order to object the processing of your personal data for the purpose of sending advertising materials and also to exercise the right to access personal data and other rights referred to in Section 7 of Decree 196/2003. The data controller is TIS Techno Innovation Alto Adige, Siemens Street n. 19, Bolzano. You can find the complete information on the web site www.tis.bz.it.
I'm sorry but why wouldn't you use std::string::compare() ?
Please enlighten me how to do case insensitive string comparison with std::string::compare(). For case sensitive comparison operator== is my preferred way. Chris -- echo mailto: NOSPAM !#$.'<*>'|sed 's. ..'|tr "<*> !#:2" org@fr33z3
Please enlighten me how to do case insensitive string comparison with std::string::compare().
boost::iequals(std::string s1, std::string s2)
Your not following the thread. This is exactly what I suggested to the OP. Chris -- echo mailto: NOSPAM !#$.'<*>'|sed 's. ..'|tr "<*> !#:2" org@fr33z3
participants (4)
-
Christoph Gysin
-
Claudio Martella
-
Patrick Horgan
-
pedro chaparro