Strict Standards: Non-static method utf_normalizer::nfc() should not be called statically in /www/htdocs/w006661d/anddev/includes/utf/utf_tools.php on line 1781
[phpBB Debug] PHP Notice: in file /includes/session.php on line 1007: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /includes/session.php on line 1007: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /includes/session.php on line 1007: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)

Strict Standards: Non-static method utf_normalizer::nfc() should not be called statically in /www/htdocs/w006661d/anddev/includes/utf/utf_tools.php on line 1781
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4362: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4364: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4365: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4366: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
anddev.org • View topic - Do not risk your life with ustl on android

Do not risk your life with ustl on android

Put your problem here if it does not fit any of the other categories.

Do not risk your life with ustl on android

Postby darktemplar216 » Fri Jan 08, 2010 11:18 am

Android contains several files provides the utility of stl . Those Googlers called it ustl(by themselves).
This shit works very differently with standard stl.

1. ustring
char* a = new char[512];
memset
strcpy
string k = new string (a);
delete a;

k shall work perfectly with stl, but on android, k is gone with a;

check out this in ustring.h

/// Links to \p s
string::string (const_pointer s)
: memblock ()
{
if (!s)
s = empty_string;
link (s, strlen(s));
}



2. ulist

#ifdef ANDROID
renderEntityList->insert(it_Temp1,1,*it_Id);
it_Temp1+=2;
#else
renderEntityList->insert(it_Temp1++,1,*it_Id);
#endif

I have to write this kind of code!
darktemplar216
Freshman
Freshman
 
Posts: 4
Joined: Thu Jul 09, 2009 10:42 am

Top

Return to Other Coding-Problems

Who is online

Users browsing this forum: No registered users and 9 guests