Tag: insensitive
Implementing a Case Insensitive string::find in C++
In this article we will discuss how to find a Case Insensitive Sub String in a given string in C++ using, STL Boost Library std::string provides a method std::string::find to search for the sub string inside a given string, but this function is case sensitive i.e. Advertisements std::string data = “Hi this is a sample …
Implementing a Case Insensitive string::find in C++Read More
Find all occurrences of a sub string in a string | C++ | Both Case Sensitive & InSensitive
In this article we will discuss how to find all occurrences / Positions of a sub string in a given string in both case sensitive & case insensitive manner. Find All Case Sensitive Occurrences of a Sub String in a given String Logic: Use std::string::find to search the first occurrence and then go on searching using …
Find all occurrences of a sub string in a string | C++ | Both Case Sensitive & InSensitiveRead More
Python : Check if a String contains a sub string & find it’s index | case insensitive
In this article we will discuss different ways to check if a sub-string exists in another string and if yes then find it’s index. Will also explore ways to check the existence of sub-string in case in-sensitive manner by ignoring case. Check if a String contains another string or character using “in” and “not in” …
Python : Check if a String contains a sub string & find it’s index | case insensitiveRead More