InspIRCd
3.0
|
Namespaces | |
sockets | |
Classes | |
class | commasepstream |
struct | insensitive |
struct | insensitive_swo |
class | portparser |
class | sepstream |
class | spacesepstream |
struct | StrHashComp |
class | tokenstream |
Functions | |
bool | equals (const std::string &s1, const std::string &s2) |
size_t | find (const std::string &haystack, const std::string &needle) |
The irc namespace contains a number of helper classes.
bool irc::equals | ( | const std::string & | s1, |
const std::string & | s2 | ||
) |
Check if two IRC object (e.g. nick or channel) names are equal. This function uses national_case_insensitive_map to determine equality, which, by default does comparison according to RFC 1459, treating certain otherwise non-identical characters as identical.
s1 | First string to compare |
s2 | Second string to compare |
size_t irc::find | ( | const std::string & | haystack, |
const std::string & | needle | ||
) |
Check whether needle
exists within haystack
.
haystack | The string to search within. |
needle | The string to search for. |
needle
was found or std::string::npos.