firemail

标题: 字符串相关转换 [打印本页]

作者: hechengjin    时间: 2016-3-4 14:27
标题: 字符串相关转换

  #include "nsMsgI18N.h"
----  nsString > nsCAutoString------
nsCAutoString utfNewName;
  nsresult rv = CopyUTF16toMUTF7(PromiseFlatString(folderName), utfNewName);
  NS_ENSURE_SUCCESS(rv, rv);
  nsCString escapedFolderName;
  MsgEscapeString(utfNewName, nsINetUtil::ESCAPE_URL_PATH, escapedFolderName);
----nsCAutoString > nsString ------
   nsString unicodeNewName;
  CopyMUTF7toUTF16(escapedFolderName, unicodeNewName);



NS_LITERAL_STRING("888 left on Server");







欢迎光临 firemail (http://firemail.wang:8088/) Powered by Discuz! X3