Fonts: ImFontConfig::GlyphExcludeRanges is owner and copied.

This commit is contained in:
ocornut
2025-03-06 18:39:32 +01:00
parent da51485e17
commit c98e3c0eff
4 changed files with 24 additions and 10 deletions

View File

@@ -2011,6 +2011,12 @@ char* ImStrdup(const char* str)
return (char*)memcpy(buf, (const void*)str, len + 1);
}
void* ImMemdup(const void* src, size_t size)
{
void* dst = IM_ALLOC(size);
return memcpy(dst, src, size);
}
char* ImStrdupcpy(char* dst, size_t* p_dst_size, const char* src)
{
size_t dst_buf_size = p_dst_size ? *p_dst_size : ImStrlen(dst) + 1;