#include <jem/base/System.h>
#include <jem/base/String.h>
#include <jem/base/CString.h>
int run ()
{
String s1 =
" Hello I am a string ";
idx_t i;
out << endl;
out << s1 << endl << endl;
out << s2 << endl << endl;
out << s1[slice(2,13)] + s3.
toUpper() << endl << endl;
if ( i >= 0 )
{
out << s1[slice(i,END)] << endl << endl;
}
else
{
out << "substring " + s4 + " cannot be found"
<< endl << endl;
}
if ( i >= 0 )
{
out << s1[slice(i,END)] << endl << endl;
}
else
{
out << "substring \"" + s4 + "\" cannot be found"
<< endl << endl;
}
"float : %g\n"
"pointer : %p\n",
i,
1.2,
&s1 )
<< endl;
return 0;
}
int main ()
{
}