summaryrefslogtreecommitdiff
path: root/common/info_key.h
diff options
context:
space:
mode:
Diffstat (limited to 'common/info_key.h')
-rw-r--r--common/info_key.h24
1 files changed, 24 insertions, 0 deletions
diff --git a/common/info_key.h b/common/info_key.h
new file mode 100644
index 0000000..ab5d2a7
--- /dev/null
+++ b/common/info_key.h
@@ -0,0 +1,24 @@
+//========= Copyright Valve Corporation, All rights reserved. ============//
+//
+// Purpose: Utility functions for parsing info strings
+//
+// $NoKeywords: $
+//=============================================================================//
+
+#ifndef INFO_H
+#define INFO_H
+#ifdef _WIN32
+#pragma once
+#endif
+
+const char *Info_ValueForKey( const char *s, const char *key );
+void Info_RemoveKey( char *s, const char *key );
+void Info_RemovePrefixedKeys( char *start, char prefix );
+bool Info_IsKeyImportant( const char *key );
+char *Info_FindLargestKey( char *s, int maxsize );
+void Info_SetValueForStarKey ( char *s, const char *key, const char *value, int maxsize );
+void Info_SetValueForKey (char *s, const char *key, const char *value, int maxsize);
+
+
+
+#endif // INFO_H