#include "CompressMan.hpp"Go to the source code of this file.
Functions | |
| char * | FindEndOfParamString (char *str, char *endptr) |
Variables | |
| CompressMan | compressman |
| UserCompressorFactory * | constantcompressfactoryptr |
|
||||||||||||
|
Definition at line 69 of file CompressMan.cpp. 00073 {
00074 int parenthesiscount=0;
00075 char *startptr=str;
00076 char *saveptr;
00077
00078 while(str<endptr)
00079 {
00080 switch(*str)
00081 {
00082 case '"':
00083 saveptr=str;
00084 str++;
00085 while(str<endptr)
00086 {
00087 if(*str=='\\')
00088 {
00089 str++;
00090 continue;
00091 }
00092 if(*str=='"')
00093 break;
00094 str++;
00095 }
00096 if(str==endptr)
00097 {
00098 Error("Could not find closing '\"' in string '");
00099 ErrorCont(saveptr,endptr-saveptr);
00100 ErrorCont("'");
00101 Exit();
00102 }
00103 break;
00104
00105 case '(':
00106 parenthesiscount++;
00107 break;
00108
00109 case ')':
00110 if(parenthesiscount==0) // We found the closing bracket ?
00111 return str;
00112 parenthesiscount--;
00113 break;
00114 }
00115 str++;
00116 }
00117 Error("Could not find closing parenthesis for parameter '");
00118 ErrorCont(startptr,endptr-startptr);
00119 ErrorCont("'");
00120 Exit();
00121 return NULL;
00122 }
|
|
|
Definition at line 39 of file CompressMan.cpp. |
|
|
Definition at line 126 of file CompressMan.cpp. |
1.2.11.1 written by Dimitri van Heesch,
© 1997-2001