Inquiry about Blender's "x - mirror" function

In pose mode of Blender, “Apply changes to matching bone on opposite side of X - Axis.” cannot recognize names like bip01 L hand. I’ve tried to add processing for more naming rules in the source code, but it doesn’t seem to work. Can your help me? In the “BLI_string_flip_side_name” function at line 267 in the [string_utils] file, code has been added from lines 385 to 460 at the end.

this is my code
/Add new intermediate delimiter processing logic/
if (!is_set && len > 4) {
/Detect space - enclosed identifiers, such as " L " or “-L-”/
for (int pos = 1; pos < len - 2; pos++) {
if (is_char_sep(name_dst[pos]) && is_char_sep(name_dst[pos + 2])) {
switch (name_dst[pos + 1]) {
case ‘l’:
case ‘L’:
BLI_strncpy(prefix, name_dst, pos + 1);
BLI_strncpy(suffix, name_dst + pos + 2, name_dst_maxncpy);
replace = (name_dst[pos + 1] == ‘l’) ? “r” : “R”;
is_set = true;
break;
case ‘r’:
case ‘R’:
BLI_strncpy(prefix, name_dst, pos + 1);
BLI_strncpy(suffix, name_dst + pos + 2, name_dst_maxncpy);
replace = (name_dst[pos + 1] == ‘r’) ? “l” : “L”;
is_set = true;
break;
}
if (is_set) {
prefix[pos + 1] = ‘\0’;
break;
}
}

Welcome,
please format your code properly with indentations, this way it’s easier to read.