[webkit-dev] Question about StringImpl::create

谢愈挺 xytsoft at gmail.com
Thu Dec 16 21:45:36 PST 2010


I have a question about "StringImpl::create()". Is it can only input latin1 data? 
 If it can only input the latin1 data, the following code maybe incrorect:
  
 In WTFString.cpp :
 String String::format(const char *format, ...)
 {
  ...
     Vector<char, 256> buffer;
 ...
   return StringImpl::create(buffer.data(), len);
 }
  
 The buffer.data() maybe utf8 data!
  
 Thanks.
  
 pattin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-dev/attachments/20101217/daccdcc2/attachment.html>


More information about the webkit-dev mailing list