mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-05-16 06:05:58 -06:00
25 lines
456 B
C++
25 lines
456 B
C++
#include <CppBase/CppBase.h>
|
|
|
|
using namespace Upp;
|
|
|
|
void Error(int line, const String& x)
|
|
{
|
|
RDUMP(line);
|
|
RDUMP(x);
|
|
}
|
|
|
|
CONSOLE_APP_MAIN
|
|
{
|
|
TimeStop tm;
|
|
for(int i = 0; i < 1; i++) {
|
|
{
|
|
CppBase base;
|
|
FileIn in(GetDataFile("test.txt"));
|
|
Parse(in, Vector<String>(), base, "", callback(Error));
|
|
RDUMP(base.GetCount());
|
|
for(int i = 0; i < base.GetCount(); i++)
|
|
RDUMP(base.GetKey(i));
|
|
}
|
|
}
|
|
RDUMP(tm.Elapsed());
|
|
}
|