More skip_whitespace -> Common::ltrim(). For real now.

svn-id: r25577
This commit is contained in:
Eugene Sandulenko 2007-02-14 00:36:06 +00:00
parent 75ae7cdb73
commit d910b545c5
5 changed files with 7 additions and 8 deletions

View File

@ -313,7 +313,7 @@ int16 scriptFillBuffers(ArchivedFile *file) {
vCE = readArchivedFileText(vCA, 200, file);
if (vCE == 0) return 0;
skip_whitespace(vCE);
Common::ltrim(vCE);
} while (strlen(vCE) == 0 || vCE[0] == '#');
while (strlen(vCE) > 0 && _si < 20) {
@ -327,7 +327,7 @@ int16 scriptFillBuffers(ArchivedFile *file) {
}
vCE = skip_whitespace(vCE);
vCE = Common::ltrim(vCE);
_si++;
}

View File

@ -99,7 +99,6 @@ void memFree(void *m);
void errorFileNotFound(const char*);
void beep();
char *skip_whitespace(char *s);
enum {
kDebugDisk = 1 << 0,

View File

@ -182,7 +182,7 @@ char *parseDialogueString() {
vD0 = parseNextLine(vC8, 200);
if (vD0 == 0) return NULL;
vD0 = skip_whitespace(vD0);
vD0 = Common::ltrim(vD0);
} while (strlen(vD0) == 0);

View File

@ -724,7 +724,7 @@ bool Graphics::displayWrappedString(char *text, uint16 x, uint16 y, uint16 maxwi
rx += getStringWidth(token) + getStringWidth(" ");
linewidth += getStringWidth(" ");
text = skip_whitespace(text);
text = Common::ltrim(text);
}
// printf("done\n");
@ -781,7 +781,7 @@ void Graphics::getStringExtent(char *text, uint16 maxwidth, int16* width, int16*
}
w += getStringWidth(" ");
text = skip_whitespace(text);
text = Common::ltrim(text);
}
if (*width < w) *width = w;

View File

@ -46,7 +46,7 @@ uint16 tableFillBuffers(Common::SeekableReadStream &stream) {
line = stream.readLine(buf, 200);
if (line == NULL) return 0;
line = skip_whitespace(line);
line = Common::ltrim(line);
} while (strlen(line) == 0 || line[0] == '#');
uint16 count = 0;
@ -61,7 +61,7 @@ uint16 tableFillBuffers(Common::SeekableReadStream &stream) {
}
line = skip_whitespace(line);
line = Common::ltrim(line);
count++;
}