From 452aa80dc06e01efd7e95413cd4bf34a66f480fa Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Wed, 30 Jul 2025 10:15:16 +1000 Subject: [PATCH] Tools: include UTF8 string functions in code_clean utility --- tools/utils_maintenance/code_clean.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tools/utils_maintenance/code_clean.py b/tools/utils_maintenance/code_clean.py index 1c5c0ed9592..aa39a297e39 100755 --- a/tools/utils_maintenance/code_clean.py +++ b/tools/utils_maintenance/code_clean.py @@ -1183,6 +1183,11 @@ class edit_generators: ("BLI_snprintf_rlen", "SNPRINTF_RLEN"), ("BLI_vsnprintf", "VSNPRINTF"), ("BLI_vsnprintf_rlen", "VSNPRINTF_RLEN"), + + ("BLI_snprintf_utf8", "SNPRINTF_UTF8"), + ("BLI_snprintf_utf8_rlen", "SNPRINTF_UTF8_RLEN"), + ("BLI_vsnprintf_utf8", "VSNPRINTF_UTF8"), + ("BLI_vsnprintf_utf8_rlen", "VSNPRINTF_UTF8_RLEN"), ): for match in re.finditer( r"\b" + src + r"\(([^,]+),\s+([^,]+),",