Last change
on this file since 64 was
64,
checked in by Maciej Komosinski, 15 years ago
|
a lot of minor fixes
|
File size:
1.0 KB
|
Rev | Line | |
---|
[64] | 1 | // This file is a part of the Framsticks GDK library.
|
---|
| 2 | // Copyright (C) 2002-2011 Szymon Ulatowski. See LICENSE.txt for details.
|
---|
| 3 | // Refer to http://www.framsticks.com/ for further information.
|
---|
| 4 |
|
---|
| 5 | #ifndef _SSTRINGUTILS_H_
|
---|
| 6 | #define _SSTRINGUTILS_H_
|
---|
| 7 |
|
---|
| 8 | #include "sstring.h"
|
---|
| 9 | #include "virtfile.h"
|
---|
| 10 |
|
---|
| 11 | /// return: 1=ok 0=error
|
---|
| 12 | int loadSString(const char* filename,SString& s,const char* framsgmodule=0,const char* error=0);
|
---|
| 13 | void loadSString(VirtFILE *f,SString& s);
|
---|
| 14 |
|
---|
| 15 | int quoteTilde(SString &target);
|
---|
| 16 | int unquoteTilde(SString &target);
|
---|
| 17 |
|
---|
| 18 | bool strContainsOneOf(const char* str,const char* chars);
|
---|
| 19 | bool sstringQuote(SString& target);
|
---|
| 20 | const char* skipQuoteString(const char* txt, const char* limit);
|
---|
| 21 | int sstringUnquote(SString &target);
|
---|
| 22 |
|
---|
| 23 | int strFindField(const SString& txt,const SString& name,int &end);
|
---|
| 24 | SString strGetField(const SString& txt,const SString& name);
|
---|
| 25 | void strSetField(SString& txt,const SString& name,const SString& value);
|
---|
| 26 |
|
---|
| 27 | SString trim(SString& s); //remove leading/trailing whitespace
|
---|
| 28 |
|
---|
| 29 | #endif
|
---|
| 30 |
|
---|
Note: See
TracBrowser
for help on using the repository browser.