Search
 
SCRIPT & CODE EXAMPLE
 

CPP

c++ compare strings ignore case

#include <boost/algorithm/string.hpp>
// Or, for fewer header dependencies:
//#include <boost/algorithm/string/predicate.hpp>

std::string str1 = "hello, world!";
std::string str2 = "HELLO, WORLD!";

if (boost::iequals(str1, str2))
{
    // Strings are identical
}
Comment

PREVIOUS NEXT
Code Example
Cpp :: c++ enum rand 
Cpp :: cpp random in range 
Cpp :: max element in vector c++ 
Cpp :: c++ read file to char buffer 
Cpp :: c++ check open processes 
Cpp :: use regex replace in c++ 
Cpp :: how to writt array in c++ 
Cpp :: size of 2d array in c++ 
Cpp :: check if c++ is installed 
Cpp :: cout char32_t c++ 
Cpp :: go through std vector 
Cpp :: std string to const char * c++ 
Cpp :: how to delete a certain amount of numbers of the same value in multiset c++ 
Cpp :: how to write a hello world program in c++ 
Cpp :: clang cpp compile command 
Cpp :: replace komma with space C++ 
Cpp :: tic toc toe c++ 
Cpp :: cpp map iterate over keys 
Cpp :: typedef vector c++ 
Cpp :: convert long int to binary string c++ 
Cpp :: cpp macro 
Cpp :: c++ code for quicksort 
Cpp :: cpp unions 
Cpp :: for in c++ 
Cpp :: how to make a list in c++ 
Cpp :: string to long integer c++ 
Cpp :: round up 2 digits float c++ 
Cpp :: convert string toupper and tolower in cpp 
Cpp :: coordinate in 1d array 
Cpp :: declaring 2d dynamic array c++ 
ADD CONTENT
Topic
Content
Source link
Name
7+9 =