美文网首页
字符串处理

字符串处理

作者: 王姚 | 来源:发表于2018-04-10 15:14 被阅读0次
Acad::ErrorStatus acutNewString(
    const ACHAR* pInput, 
    ACHAR*& pOutput);

This function makes a copy of the pInput string and sets pOutput to point to the resulting copy.

Acad::ErrorStatus acutUpdString(
    const ACHAR* pInput, 
    ACHAR*& pOutput);

This function makes a copy of the pInput string and sets pOutput to point to the resulting copy. If pOutput is currently pointing to any allocated memory, then that memory is deallocated even if pInput is NULL.

inline void acutDelString(
    wchar_t *& pString);

This function is designed to be used on memory allocated via acutNewString(), acutNewBuffer(), and acutUpdString(). It deallocates the memory pointed to by pString and sets pString to NULL.

相关文章

网友评论

      本文标题:字符串处理

      本文链接:https://www.haomeiwen.com/subject/udhnhftx.html