mirror of
https://github.com/alliedmodders/hl2sdk.git
synced 2025-09-19 20:16:10 +08:00
Added most recent version of unmodified HL2 SDK for Orange Box engine
This commit is contained in:
28
public/UnicodeFileHelpers.h
Normal file
28
public/UnicodeFileHelpers.h
Normal file
@ -0,0 +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
|
Reference in New Issue
Block a user