The InspIRCd Project
Home | Developers | Wiki | Forums | Bug Tracker | SVN | Download
Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members

inspstring.cpp File Reference

#include "inspstring.h"

Include dependency graph for inspstring.cpp:

Go to the source code of this file.

Functions

CoreExport size_t strlcat (char *dst, const char *src, size_t siz)
CoreExport size_t strlcpy (char *dst, const char *src, size_t siz)
CoreExport int charlcat (char *x, char y, int z)
 charlcat() will append one character to a string using the same safety scemantics as strlcat().
CoreExport bool charremove (char *mp, char remove)
 charremove() will remove all instances of a character from a string


Function Documentation

CoreExport int charlcat char *  x,
char  y,
int  z
 

charlcat() will append one character to a string using the same safety scemantics as strlcat().

Parameters:
x The string to operate on
y the character to append to the end of x
z The maximum allowed length for z including null terminator

Definition at line 104 of file inspstring.cpp.

Referenced by Channel::ChanModes().

CoreExport bool charremove char *  mp,
char  remove
 

charremove() will remove all instances of a character from a string

Parameters:
mp The string to operate on
remove The character to remove

Definition at line 121 of file inspstring.cpp.

CoreExport size_t strlcat char *  dst,
const char *  src,
size_t  siz
 

Definition at line 46 of file inspstring.cpp.

Referenced by Channel::ChanModes(), and TreeSocket::Modules().

CoreExport size_t strlcpy char *  dst,
const char *  src,
size_t  siz
 

Definition at line 76 of file inspstring.cpp.

Referenced by BufferedSocket::BufferedSocket(), ServerConfig::ConfValue(), ServerConfig::DirValid(), User::GetIPString(), InspIRCd::HostMatchesEveryone(), InspIRCd::InspIRCd(), InspIRCd::IPMatchesEveryone(), Channel::JoinUser(), ModulePgSQL::ModulePgSQL(), TreeSocket::Modules(), InspIRCd::NickMatchesEveryone(), FileLogStream::OnLog(), NickFlood::OnModeChange(), MsgFlood::OnModeChange(), JoinFlood::OnModeChange(), ModuleAntiBottler::OnPreCommand(), ModuleSpanningTree::ShowMap(), irc::Spacify(), and ValidateSID().