Skip to content
Snippets Groups Projects
  • Nat Goodspeed's avatar
    4e894eb2
    SL-10153: Improve ll_convert_string_to_wide() and its converse. · 4e894eb2
    Nat Goodspeed authored
    Instead of returning a wchar_t* and requiring the caller to delete it later,
    return a std::basic_string<wchar_t> that's self-cleaning. If the caller wants
    a wchar_t*, s/he can call c_str() on the returned string.
    
    Default the code_page parameter to CP_UTF8, since we try to be really
    consistent about using UTF-8 encoding for all our internal std::strings.
    4e894eb2
    History
    SL-10153: Improve ll_convert_string_to_wide() and its converse.
    Nat Goodspeed authored
    Instead of returning a wchar_t* and requiring the caller to delete it later,
    return a std::basic_string<wchar_t> that's self-cleaning. If the caller wants
    a wchar_t*, s/he can call c_str() on the returned string.
    
    Default the code_page parameter to CP_UTF8, since we try to be really
    consistent about using UTF-8 encoding for all our internal std::strings.
Code owners
Assign users and groups as approvers for specific file changes. Learn more.