| 1 | /* |
| 2 | * Descent 3 |
| 3 | * Copyright (C) 2024 Parallax Software |
| 4 | * |
| 5 | * This program is free software: you can redistribute it and/or modify |
| 6 | * it under the terms of the GNU General Public License as published by |
| 7 | * the Free Software Foundation, either version 3 of the License, or |
| 8 | * (at your option) any later version. |
| 9 | * |
| 10 | * This program is distributed in the hope that it will be useful, |
| 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 13 | * GNU General Public License for more details. |
| 14 | * |
| 15 | * You should have received a copy of the GNU General Public License |
| 16 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
| 17 | |
| 18 | --- HISTORICAL COMMENTS FOLLOW --- |
| 19 | |
| 20 | * $Logfile: /DescentIII/Main/editor/DallasUtilities.h $ |
| 21 | * $Revision: 1.1.1.1 $ |
| 22 | * $Date: 2003-08-26 03:57:37 $ |
| 23 | * $Author: kevinb $ |
| 24 | * |
| 25 | * Header for DALLAS related utility functions |
| 26 | * |
| 27 | * $Log: not supported by cvs2svn $ |
| 28 | * |
| 29 | * 5 2/19/99 5:35p Nate |
| 30 | * Added new types and events |
| 31 | * |
| 32 | * 4 12/16/98 8:45p Nate |
| 33 | * Added loading of Actions |
| 34 | * |
| 35 | * 3 12/15/98 7:48p Nate |
| 36 | * Fixed minor buffering problem |
| 37 | * |
| 38 | * 2 12/14/98 12:45p Nate |
| 39 | * Initial Version |
| 40 | * |
| 41 | * $NoKeywords: $ |
| 42 | */ |
| 43 | |
| 44 | #ifndef _DALLAS_UTILITIES_H_ |
| 45 | #define _DALLAS_UTILITIES_H_ |
| 46 | |
| 47 | #define WHITESPACE_CHARS " \t\r\n" |
| 48 | |
| 49 | // Removes any whitespace padding from the end of a string |
| 50 | void RemoveTrailingWhitespace(char *s); |
| 51 | |
| 52 | // Returns a pointer to the first non-whitespace char in given string |
| 53 | char *SkipInitialWhitespace(char *s); |
| 54 | |
| 55 | bool FindManageFirst(char *buffer, char *wildcard); |
| 56 | bool FindManageNext(char *buffer); |
| 57 | void FindManageClose(void); |
| 58 | bool GamefileExists(char *name); |
| 59 | |
| 60 | #endif /*_DALLAS_UTILITIES_H_*/ |