B2026-025_Unicode_removed_from_RO_menu_titles_in_treeview #729

Merged
jjenko merged 5 commits from B2026-025_Unicode_removed_from_RO_menu_titles_in_treeview into Development 2026-03-10 13:23:59 -04:00
Showing only changes of commit 13b03f4f89 - Show all commits

View File

@@ -518,8 +518,7 @@ namespace RODBInterface
strtmp.Append(" ");
cnt++;
}
// string sym = symbcode < 256 ? ((char)symbcode).ToString() : string.Format(@"\u{0}", symbcode);
text = Regex.Replace(text, @"\\u([0-9]{1,4})\?", m => Convert.ToChar(int.Parse(m.Groups[1].Value)).ToString()); //B2026-025 Unicode removed from RO menu titles in treeview.
text = Regex.Replace(text, @"\\u([0-9]{1,4})\?", m => int.TryParse(m?.Groups[1]?.Value, out int result) ? Convert.ToChar(result).ToString() : ""); //B2026-025 Unicode removed from RO menu titles in treeview.
mschill marked this conversation as resolved Outdated

Should commented out code be removed?

Should commented out code be removed?
if ((cnt + text.Length) > frmt2) // longer than the field length?
mschill marked this conversation as resolved
Review

Does there need to be a null check / try parse here?

Does there need to be a null check / try parse here?
strtmp.Append(text.Substring(0,frmt2-cnt));
else