mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-05-15 14:16:07 -06:00
.upptst
git-svn-id: svn://ultimatepp.org/upp/trunk@14167 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
2360228c20
commit
d2b6643e44
4 changed files with 68 additions and 0 deletions
36
upptst/PdbAll/PdbAll.cpp
Normal file
36
upptst/PdbAll/PdbAll.cpp
Normal file
|
|
@ -0,0 +1,36 @@
|
|||
#include <CtrlLib/CtrlLib.h>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <map>
|
||||
#include <set>
|
||||
|
||||
using namespace Upp;
|
||||
|
||||
GUI_APP_MAIN
|
||||
{
|
||||
Date date = GetSysDate();
|
||||
Time time = GetSysTime();
|
||||
Color color = LtRed();
|
||||
RGBA rgba = LtRed();
|
||||
Font fnt = Arial();
|
||||
String string = "Hello world!";
|
||||
WString wstring = "Hello world!";
|
||||
Vector<String> vector { "I", "II", "III", "IV", "V" };
|
||||
BiVector<String> bivector { "I", "II", "III", "IV", "V" };
|
||||
Array<String> array { "I", "II", "III", "IV", "V" };
|
||||
BiArray<String> biarray { "I", "II", "III", "IV", "V" };
|
||||
Index<String> index { "I", "II", "III", "IV", "V" };
|
||||
VectorMap<int, String> vectormap { { 1 , "I"}, { 2, "II" }, { 3, "III"}, { 4, "IV"}, { 5, "V" } };
|
||||
ArrayMap<int, String> arraymap { { 1 , "I"}, { 2, "II" }, { 3, "III"}, { 4, "IV"}, { 5, "V" } };
|
||||
ValueArray valuearray { "I", "II", "III", "IV", "V" };
|
||||
ValueMap valuemap { { 1 , "I"}, { 2, "II" }, { 3, "III"}, { 4, "IV"}, { 5, "V" } };
|
||||
Value value = valuemap;
|
||||
|
||||
std::string std_string = "Hello world!";
|
||||
std::wstring std_wstring = wstring.ToStd();
|
||||
std::vector<std::string> std_vector { "I", "II", "III", "IV", "V" };
|
||||
std::set<std::string> std_set { "I", "II", "III", "IV", "V" };
|
||||
std::multiset<std::string> std_multiset { "I", "II", "III", "IV", "V" };
|
||||
std::map<int, std::string> std_map { { 1 , "I"}, { 2, "II" }, { 3, "III"}, { 4, "IV"}, { 5, "V" } };
|
||||
std::multimap<int, std::string> std_multimap { { 1 , "I"}, { 2, "II" }, { 3, "III"}, { 4, "IV"}, { 5, "V" } };
|
||||
}
|
||||
10
upptst/PdbAll/PdbAll.upp
Normal file
10
upptst/PdbAll/PdbAll.upp
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
uses
|
||||
Core,
|
||||
CtrlLib;
|
||||
|
||||
file
|
||||
PdbAll.cpp;
|
||||
|
||||
mainconfig
|
||||
"" = "GUI";
|
||||
|
||||
9
upptst/PdbTests2/PdbTests2.upp
Normal file
9
upptst/PdbTests2/PdbTests2.upp
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
uses
|
||||
Core;
|
||||
|
||||
file
|
||||
main.cpp;
|
||||
|
||||
mainconfig
|
||||
"" = "";
|
||||
|
||||
13
upptst/PdbTests2/main.cpp
Normal file
13
upptst/PdbTests2/main.cpp
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
#include <Core/Core.h>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <map>
|
||||
#include <set>
|
||||
|
||||
using namespace Upp;
|
||||
|
||||
CONSOLE_APP_MAIN
|
||||
{
|
||||
VectorMap<int, String> vectormap { { 1 , "I"}, { 2, "II" }, { 3, "III"}, { 4, "IV"}, { 5, "V" } };
|
||||
std::map<int, std::string> std_map { { 1 , "I"}, { 2, "II" }, { 3, "III"}, { 4, "IV"}, { 5, "V" } };
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue