mirror of
https://github.com/alliedmodders/hl2sdk.git
synced 2025-09-20 12:36:05 +08:00
Update from SDK 2013
This commit is contained in:

committed by
Nicholas Hastings

parent
e0e01948b8
commit
ebd971b421
@ -1,28 +1,28 @@
|
||||
//========= Copyright <20> 1996-2005, Valve Corporation, All rights reserved. ============//
|
||||
//
|
||||
// Purpose:
|
||||
//
|
||||
//=============================================================================//
|
||||
|
||||
#ifndef UNICODEFILEHELPERS_H
|
||||
#define UNICODEFILEHELPERS_H
|
||||
#ifdef _WIN32
|
||||
#pragma once
|
||||
#endif
|
||||
|
||||
#include <stdlib.h>
|
||||
|
||||
// helper functions for parsing unicode file buffers
|
||||
wchar_t *AdvanceOverWhitespace(wchar_t *start);
|
||||
wchar_t *ReadUnicodeToken(wchar_t *start, wchar_t *token, int tokenBufferSize, bool "ed);
|
||||
wchar_t *ReadUnicodeTokenNoSpecial(wchar_t *start, wchar_t *token, int tokenBufferSize, bool "ed);
|
||||
wchar_t *ReadToEndOfLine(wchar_t *start);
|
||||
|
||||
// writing to unicode files via CUtlBuffer
|
||||
class CUtlBuffer;
|
||||
void WriteUnicodeString(CUtlBuffer &buffer, const wchar_t *string, bool addQuotes = false);
|
||||
void WriteAsciiStringAsUnicode(CUtlBuffer &buffer, const char *string, bool addQuotes = false);
|
||||
|
||||
|
||||
|
||||
#endif // UNICODEFILEHELPERS_H
|
||||
//========= Copyright Valve Corporation, All rights reserved. ============//
|
||||
//
|
||||
// Purpose:
|
||||
//
|
||||
//=============================================================================//
|
||||
|
||||
#ifndef UNICODEFILEHELPERS_H
|
||||
#define UNICODEFILEHELPERS_H
|
||||
#ifdef _WIN32
|
||||
#pragma once
|
||||
#endif
|
||||
|
||||
#include <stdlib.h>
|
||||
|
||||
// helper functions for parsing unicode file buffers
|
||||
ucs2 *AdvanceOverWhitespace(ucs2 *start);
|
||||
ucs2 *ReadUnicodeToken(ucs2 *start, ucs2 *token, int tokenBufferSize, bool "ed);
|
||||
ucs2 *ReadUnicodeTokenNoSpecial(ucs2 *start, ucs2 *token, int tokenBufferSize, bool "ed);
|
||||
ucs2 *ReadToEndOfLine(ucs2 *start);
|
||||
|
||||
// writing to unicode files via CUtlBuffer
|
||||
class CUtlBuffer;
|
||||
void WriteUnicodeString(CUtlBuffer &buffer, const wchar_t *string, bool addQuotes = false);
|
||||
void WriteAsciiStringAsUnicode(CUtlBuffer &buffer, const char *string, bool addQuotes = false);
|
||||
|
||||
|
||||
|
||||
#endif // UNICODEFILEHELPERS_H
|
||||
|
Reference in New Issue
Block a user