aboutsummaryrefslogtreecommitdiff
path: root/sp/src/public/filesystem_helpers.h
diff options
context:
space:
mode:
authorJørgen P. Tjernø <[email protected]>2013-12-02 19:31:46 -0800
committerJørgen P. Tjernø <[email protected]>2013-12-02 19:46:31 -0800
commitf56bb35301836e56582a575a75864392a0177875 (patch)
treede61ddd39de3e7df52759711950b4c288592f0dc /sp/src/public/filesystem_helpers.h
parentMark some more files as text. (diff)
downloadsource-sdk-2013-f56bb35301836e56582a575a75864392a0177875.tar.xz
source-sdk-2013-f56bb35301836e56582a575a75864392a0177875.zip
Fix line endings. WHAMMY.
Diffstat (limited to 'sp/src/public/filesystem_helpers.h')
-rw-r--r--sp/src/public/filesystem_helpers.h72
1 files changed, 36 insertions, 36 deletions
diff --git a/sp/src/public/filesystem_helpers.h b/sp/src/public/filesystem_helpers.h
index 62c2e7a9..070e779a 100644
--- a/sp/src/public/filesystem_helpers.h
+++ b/sp/src/public/filesystem_helpers.h
@@ -1,36 +1,36 @@
-//========= Copyright Valve Corporation, All rights reserved. ============//
-//
-// Purpose:
-//
-// $NoKeywords: $
-//===========================================================================//
-
-#ifndef FILESYSTEM_HELPERS_H
-#define FILESYSTEM_HELPERS_H
-
-#ifdef _WIN32
-#pragma once
-#endif
-
-struct characterset_t;
-
-// Don't call this directly. You should (as long as your destination is an array) be
-// able to call ParseFile, which is safer as it infers your array size for you.
-const char* ParseFileInternal( const char* pFileBytes, OUT_Z_CAP(nMaxTokenLen) char* pTokenOut, bool* pWasQuoted, characterset_t *pCharSet, size_t nMaxTokenLen );
-
-// Call until it returns NULL. Each time you call it, it will parse out a token.
-
-template <size_t count>
-const char* ParseFile( const char* pFileBytes, OUT_Z_ARRAY char (&pTokenOut)[count], bool* pWasQuoted, characterset_t *pCharSet = NULL, unsigned int nMaxTokenLen = (unsigned int)-1 )
-{
- (void*)nMaxTokenLen; // Avoid unreferenced variable warnings.
- return ParseFileInternal( pFileBytes, pTokenOut, pWasQuoted, pCharSet, count );
-}
-
-template <size_t count>
-char* ParseFile( char* pFileBytes, OUT_Z_ARRAY char (&pTokenOut)[count], bool* pWasQuoted ) // (same exact thing as the const version)
-{
- return const_cast<char*>( ParseFileInternal( pFileBytes, pTokenOut, pWasQuoted, NULL, count ) );
-}
-
-#endif // FILESYSTEM_HELPERS_H
+//========= Copyright Valve Corporation, All rights reserved. ============//
+//
+// Purpose:
+//
+// $NoKeywords: $
+//===========================================================================//
+
+#ifndef FILESYSTEM_HELPERS_H
+#define FILESYSTEM_HELPERS_H
+
+#ifdef _WIN32
+#pragma once
+#endif
+
+struct characterset_t;
+
+// Don't call this directly. You should (as long as your destination is an array) be
+// able to call ParseFile, which is safer as it infers your array size for you.
+const char* ParseFileInternal( const char* pFileBytes, OUT_Z_CAP(nMaxTokenLen) char* pTokenOut, bool* pWasQuoted, characterset_t *pCharSet, size_t nMaxTokenLen );
+
+// Call until it returns NULL. Each time you call it, it will parse out a token.
+
+template <size_t count>
+const char* ParseFile( const char* pFileBytes, OUT_Z_ARRAY char (&pTokenOut)[count], bool* pWasQuoted, characterset_t *pCharSet = NULL, unsigned int nMaxTokenLen = (unsigned int)-1 )
+{
+ (void*)nMaxTokenLen; // Avoid unreferenced variable warnings.
+ return ParseFileInternal( pFileBytes, pTokenOut, pWasQuoted, pCharSet, count );
+}
+
+template <size_t count>
+char* ParseFile( char* pFileBytes, OUT_Z_ARRAY char (&pTokenOut)[count], bool* pWasQuoted ) // (same exact thing as the const version)
+{
+ return const_cast<char*>( ParseFileInternal( pFileBytes, pTokenOut, pWasQuoted, NULL, count ) );
+}
+
+#endif // FILESYSTEM_HELPERS_H