mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-07-11 22:03:01 -06:00
Merge continued
git-svn-id: svn://ultimatepp.org/upp/trunk@10263 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
adf46bd64e
commit
2e4b276e07
3860 changed files with 1161787 additions and 438 deletions
49
uppdev/String/String.cpp
Normal file
49
uppdev/String/String.cpp
Normal file
|
|
@ -0,0 +1,49 @@
|
|||
#include <Core/Core.h>
|
||||
|
||||
#include <string>
|
||||
|
||||
using namespace Upp;
|
||||
using namespace std;
|
||||
|
||||
CONSOLE_APP_MAIN
|
||||
{
|
||||
String z1((char *)NULL);
|
||||
WString z2((char *)NULL);
|
||||
WString z3((wchar *)NULL);
|
||||
|
||||
DUMP(z1.GetLength());
|
||||
DUMP(z2.GetLength());
|
||||
DUMP(z3.GetLength());
|
||||
|
||||
String x = AsString(12345) + "AsString(12345)AsString(12345)AsString(12345)";
|
||||
String y = AsString(12345) + "AsString(12345)AsString(12345)AsString(12345)";
|
||||
// __BREAK__;
|
||||
memcmp(~x, ~y, x.GetLength());
|
||||
if(x == y)
|
||||
RLOG("Match");
|
||||
/*
|
||||
String a = "Hello world!";
|
||||
DUMP(a.StartsWith("Hello"));
|
||||
DUMP(a.StartsWith("Hella"));
|
||||
DUMP(a.StartsWith(x));
|
||||
DUMP(a.EndsWith("ld!"));
|
||||
DUMP(a.EndsWith("."));
|
||||
DUMP(a.EndsWith(x));
|
||||
|
||||
|
||||
std::string sx = a;
|
||||
x = sx;
|
||||
DUMP(x);
|
||||
sx = std::string();
|
||||
sx = y.operator std::string();
|
||||
sx = y;
|
||||
x = sx;
|
||||
DUMP(x);
|
||||
|
||||
WString w = x.ToWString();
|
||||
std::wstring ww = std::wstring(w);
|
||||
WString q = ww;
|
||||
DUMP(q);
|
||||
*/
|
||||
// DUMP(q.ReverseFind('x', q.GetLength() + 1));
|
||||
}
|
||||
7
uppdev/String/String.upp
Normal file
7
uppdev/String/String.upp
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
uses Core;
|
||||
|
||||
file
|
||||
"String.cpp";
|
||||
|
||||
mainconfig
|
||||
"" = "CONSOLE ST";
|
||||
3
uppdev/String/sdfg.tpp/all.i
Normal file
3
uppdev/String/sdfg.tpp/all.i
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
TOPIC("sdfgsdfg$en-us")
|
||||
#include "sdfgsdfg$en-us.tpp"
|
||||
END_TOPIC
|
||||
3
uppdev/String/sdfg.tpp/sdfgsdfg$en-us.tpp
Normal file
3
uppdev/String/sdfg.tpp/sdfgsdfg$en-us.tpp
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
TITLE("")
|
||||
COMPRESSED
|
||||
120,156,139,86,80,81,49,208,49,80,54,32,0,172,92,82,211,18,75,115,74,98,163,171,227,107,85,93,253,116,67,131,21,162,139,13,172,21,212,98,177,83,10,213,213,166,32,125,32,34,195,208,26,162,56,214,202,10,39,163,182,22,151,81,72,84,98,113,74,26,12,19,161,28,74,197,2,0,62,21,61,0,
|
||||
Loading…
Add table
Add a link
Reference in a new issue