diff --git a/uppdev/FindFileSvn/FindFileSvn.cpp b/uppdev/FindFileSvn/FindFileSvn.cpp index 9634183a7..25d66917d 100644 --- a/uppdev/FindFileSvn/FindFileSvn.cpp +++ b/uppdev/FindFileSvn/FindFileSvn.cpp @@ -1,13 +1,17 @@ -#include - -using namespace Upp; - -CONSOLE_APP_MAIN -{ - FindFile ff("u:\\upp.src\\uppdev\\aggdraw\\*.*"); - while(ff) { - DUMP(ff.GetName()); - ff.Next(); - } -} - +#include + +using namespace Upp; + +CONSOLE_APP_MAIN +{ + FindFile ff("/bin/*.*"); + while(ff) { + DUMP(ff.GetName()); + DUMP(ff.IsSymLink()); + DUMP(ff.IsFolder()); + DUMP(ff.GetLength()); + LOG("----------------------"); + ff.Next(); + } +} + diff --git a/uppdev/GlyphBench/main.cpp b/uppdev/GlyphBench/main.cpp index cc5fd76d0..12aabc2f6 100644 --- a/uppdev/GlyphBench/main.cpp +++ b/uppdev/GlyphBench/main.cpp @@ -1,30 +1,33 @@ -#include - -using namespace Upp; - -struct MyApp : TopWindow { - virtual void Paint(Draw& w) - { - w.DrawRect(GetSize(), White()); - Font fnt = Arial(16); - int fcx = fnt['X']; - { - RTIMING("Optimized"); - for(int q = 0; q < 100000; q++) - w.DrawText(0, 0, String('X', 30), fnt); - } - { - RTIMING("One char"); - for(int q = 0; q < 100000; q++) - for(int i = 0; i < 30; i++) - w.DrawText(i * fcx, 40, String('X', 1), fnt); - } - w.DrawText(100, 100, "Finished"); - } -}; - -GUI_APP_MAIN -{ - MyApp().Run(); -} - +#include + +using namespace Upp; + +struct MyApp : TopWindow { + virtual void Paint(Draw& w) + { + w.DrawRect(GetSize(), White()); + Font fnt = Arial(16); + int fcx = fnt['X']; + String txt; + for(int i = 0; i < 30; i++) + txt.Cat(i + 'A'); + { + RTIMING("Optimized"); + for(int q = 0; q < 10000; q++) + w.DrawText(0, 0, txt, fnt); + } + { + RTIMING("One char"); + for(int q = 0; q < 10000; q++) + for(int i = 0; i < 30; i++) + w.DrawText(i * fcx, 40, String('A' + i, 1), fnt); + } + w.DrawText(100, 100, "Finished"); + } +}; + +GUI_APP_MAIN +{ + MyApp().Run(); +} +