copy on write
Posted blog-yejy
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了copy on write相关的知识,希望对你有一定的参考价值。
1 yl::string CBaseAutopProcessor::AddAuthorizedInfo(const yl::string & strOriginalUrl, 2 const yl::string & strUserName, const yl::string & strPassword) 3 { 4 yl::string strUrl = strOriginalUrl;//cow exist error 5 6 if (strOriginalUrl.empty() 7 || strUserName.empty()) 8 { 9 return strUrl; 10 } 11 12 char * pBuf = (char *) strUrl.c_str(); 13 char * pTemp = NULL; 14 if ((pTemp = strstr(pBuf, "://")) != NULL) 15 { 16 *pTemp = ‘