Esempio n. 1
0
void TwoDAFile::read2a(Common::SeekableReadStream &twoda) {
	Common::StreamTokenizer tokenize(Common::StreamTokenizer::kRuleIgnoreAll);

	tokenize.addSeparator(' ');
	tokenize.addSeparator('\t');
	tokenize.addQuote('\"');
	tokenize.addChunkEnd('\n');
	tokenize.addIgnore('\r');

	readDefault2a(twoda, tokenize);
	readHeaders2a(twoda, tokenize);
	readRows2a(twoda, tokenize);
}
Esempio n. 2
0
void TwoDAFile::read2a(Common::SeekableReadStream &twoda) {
	Common::StreamTokenizer tokenize(Common::StreamTokenizer::kRuleIgnoreAll);

	// Spaces and tabs act to separate cells
	tokenize.addSeparator(' ');
	tokenize.addSeparator('\t');
	// We can quote spaces and tabs with "
	tokenize.addQuote('\"');
	// \n ends a whole row
	tokenize.addChunkEnd('\n');
	// We're ignoring \r
	tokenize.addIgnore('\r');

	readDefault2a(twoda, tokenize);
	readHeaders2a(twoda, tokenize);
	readRows2a(twoda, tokenize);
}