Move the core of NS_ConvertUCS2toUTF8 into character sinks in nsUTF8Utils.h, and use them to make ToNewUTF8String faster. Fix bug in surrogate handling in the moved code. Fix null-termination bug in UTF8ToNewUnicode. b=206682 r=jag sr=alecf a=brendan
git-svn-id: svn://10.0.0.236/trunk@142764 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -54,8 +54,10 @@
|
||||
#include "prdtoa.h"
|
||||
#endif
|
||||
|
||||
#ifdef DEBUG
|
||||
static const char* kPossibleNull = "Error: possible unintended null in string";
|
||||
static const char* kNullPointerError = "Error: unexpected null ptr";
|
||||
#endif
|
||||
static const char* kWhitespace="\b\t\r\n ";
|
||||
|
||||
const nsBufferHandle<PRUnichar>*
|
||||
|
||||
Reference in New Issue
Block a user