Design Pattern Examples
Overview of object-oriented design patterns
strstri.cpp File Reference

Implementation of the strstri function, case-insensitive string search for narrow character strings. More...

#include <ctype.h>
#include "strstri.h"
Include dependency graph for strstri.cpp:

Go to the source code of this file.

Namespaces

namespace  Helpers
 The namespace containing all the "helper" functions in the C++ code.
 

Functions

char * strstri (const char *s1, const char *s2)
 Do case-insensitive search for string 2 (s2) in string 1 (s1). Similar to the C library's strstr().
 

Detailed Description

Implementation of the strstri function, case-insensitive string search for narrow character strings.

Function to search for one string in another in a case-insensitive way (otherwise this is identical to the standard C library function strstr()).

Definition in file strstri.cpp.