core/logic/stringutil.h
author Ruben Gonzalez <drifter01620@gmail.com>
Thu May 22 09:49:27 2014 -0400 (2014-05-22)
changeset 4378 568f4497ef4a
parent 3929 0bc0ffdb2eba
permissions -rw-r--r--
Update CS:GO team score gamedata.
dvander@3002
     1
/**
dvander@3002
     2
 * vim: set ts=4 sw=4 tw=99 et :
dvander@3002
     3
 * =============================================================================
dvander@3002
     4
 * SourceMod
dvander@3002
     5
 * Copyright (C) 2004-2009 AlliedModders LLC.  All rights reserved.
dvander@3002
     6
 * =============================================================================
dvander@3002
     7
 *
dvander@3002
     8
 * This program is free software; you can redistribute it and/or modify it under
dvander@3002
     9
 * the terms of the GNU General Public License, version 3.0, as published by the
dvander@3002
    10
 * Free Software Foundation.
dvander@3002
    11
 * 
dvander@3002
    12
 * This program is distributed in the hope that it will be useful, but WITHOUT
dvander@3002
    13
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
dvander@3002
    14
 * FOR A PARTICULAR PURPOSE.  See the GNU General Public License for more
dvander@3002
    15
 * details.
dvander@3002
    16
 *
dvander@3002
    17
 * You should have received a copy of the GNU General Public License along with
dvander@3002
    18
 * this program.  If not, see <http://www.gnu.org/licenses/>.
dvander@3002
    19
 *
dvander@3002
    20
 * As a special exception, AlliedModders LLC gives you permission to link the
dvander@3002
    21
 * code of this program (as well as its derivative works) to "Half-Life 2," the
dvander@3002
    22
 * "Source Engine," the "SourcePawn JIT," and any Game MODs that run on software
dvander@3002
    23
 * by the Valve Corporation.  You must obey the GNU General Public License in
dvander@3002
    24
 * all respects for all other code used.  Additionally, AlliedModders LLC grants
dvander@3002
    25
 * this exception to all derivative works.  AlliedModders LLC defines further
dvander@3002
    26
 * exceptions, found in LICENSE.txt (as of this writing, version JULY-31-2007),
dvander@3002
    27
 * or <http://www.sourcemod.net/license.php>.
dvander@3002
    28
 *
dvander@3002
    29
 * Version: $Id$
dvander@3002
    30
 */
dvander@3002
    31
dvander@3002
    32
#ifndef _INCLUDE_SOURCEMOD_COMMON_STRINGUTIL_H_
dvander@3002
    33
#define _INCLUDE_SOURCEMOD_COMMON_STRINGUTIL_H_
dvander@3002
    34
dvander@3002
    35
const char *stristr(const char *str, const char *substr);
dvander@3004
    36
unsigned int strncopy(char *dest, const char *src, size_t count);
dvander@3005
    37
unsigned int UTIL_ReplaceAll(char *subject, size_t maxlength, const char *search,
dvander@3005
    38
                             const char *replace, bool caseSensitive = true);
dvander@3005
    39
char *UTIL_ReplaceEx(char *subject, size_t maxLen, const char *search, size_t searchLen,
dvander@3005
    40
                     const char *replace, size_t replaceLen, bool caseSensitive = true);
dvander@3010
    41
size_t UTIL_DecodeHexString(unsigned char *buffer, size_t maxlength, const char *hexstr);
dvander@3002
    42
voidedweasel@3929
    43
void UTIL_StripExtension(const char *in, char *out, int outSize);
voidedweasel@3929
    44
dvander@3002
    45
#endif /* _INCLUDE_SOURCEMOD_COMMON_STRINGUTIL_H_ */
dvander@3002
    46