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

Implementation of the stricmp function, case-insensitive string comparison for narrow character strings. More...

#include <string>
#include <cstring>
#include "stricmp.h"
Include dependency graph for stricmp.cpp:

Go to the source code of this file.

Namespaces

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

Functions

int stricmp (const char *first, const char *second)
 Compare two strings in a case-insensitive manner to determine their alphabetical order relative to each other.
 
int stricmp (const std::string &first, const std::string &second)
 Compare two strings in a case-insensitive manner to determine their alphabetical order relative to each other.
 

Detailed Description

Implementation of the stricmp function, case-insensitive string comparison for narrow character strings.

Function to compare two strings in a case-insensitive way. Handles const char* and std::string as arguments.

Definition in file stricmp.cpp.