dvander@3002: /**
dvander@3002: * vim: set ts=4 sw=4 tw=99 et :
dvander@3002: * =============================================================================
dvander@3002: * SourceMod
dvander@3002: * Copyright (C) 2004-2009 AlliedModders LLC. All rights reserved.
dvander@3002: * =============================================================================
dvander@3002: *
dvander@3002: * This program is free software; you can redistribute it and/or modify it under
dvander@3002: * the terms of the GNU General Public License, version 3.0, as published by the
dvander@3002: * Free Software Foundation.
dvander@3002: *
dvander@3002: * This program is distributed in the hope that it will be useful, but WITHOUT
dvander@3002: * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
dvander@3002: * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
dvander@3002: * details.
dvander@3002: *
dvander@3002: * You should have received a copy of the GNU General Public License along with
dvander@3002: * this program. If not, see .
dvander@3002: *
dvander@3002: * As a special exception, AlliedModders LLC gives you permission to link the
dvander@3002: * code of this program (as well as its derivative works) to "Half-Life 2," the
dvander@3002: * "Source Engine," the "SourcePawn JIT," and any Game MODs that run on software
dvander@3002: * by the Valve Corporation. You must obey the GNU General Public License in
dvander@3002: * all respects for all other code used. Additionally, AlliedModders LLC grants
dvander@3002: * this exception to all derivative works. AlliedModders LLC defines further
dvander@3002: * exceptions, found in LICENSE.txt (as of this writing, version JULY-31-2007),
dvander@3002: * or .
dvander@3002: *
dvander@3002: * Version: $Id$
dvander@3002: */
dvander@3002:
dvander@3002: #ifndef _INCLUDE_SOURCEMOD_COMMON_STRINGUTIL_H_
dvander@3002: #define _INCLUDE_SOURCEMOD_COMMON_STRINGUTIL_H_
dvander@3002:
dvander@3002: const char *stristr(const char *str, const char *substr);
dvander@3004: unsigned int strncopy(char *dest, const char *src, size_t count);
dvander@3005: unsigned int UTIL_ReplaceAll(char *subject, size_t maxlength, const char *search,
dvander@3005: const char *replace, bool caseSensitive = true);
dvander@3005: char *UTIL_ReplaceEx(char *subject, size_t maxLen, const char *search, size_t searchLen,
dvander@3005: const char *replace, size_t replaceLen, bool caseSensitive = true);
dvander@3010: size_t UTIL_DecodeHexString(unsigned char *buffer, size_t maxlength, const char *hexstr);
dvander@3002:
voidedweasel@3929: void UTIL_StripExtension(const char *in, char *out, int outSize);
voidedweasel@3929:
dvander@3002: #endif /* _INCLUDE_SOURCEMOD_COMMON_STRINGUTIL_H_ */
dvander@3002: