How to convert the uppercase and lowercase c path of path in svg?

what is the rule of converting lowercase c to uppercase C in path tags in svg?
is it okay to add an initial point just like any other attribute?

            let new_path = "",i=0,j=0,n=0;
            $.each(path_str_other,function(index){
                if(path_str_other[index] === "M" || path_str_other[index] === "L"){
                    path_arr_x[i] = path_arr[n];
                    path_arr_y[j] = path_arr[n];
                    iPP;
                    jPP;
                    n+=2;
                }else if(path_str_other[index] === "H"){
                    path_arr_x[i] = path_arr[n];
                    path_arr_y[j] = path_arr_y[j-1];
                    iPP;
                    jPP;
                    nPP;
                }else if(path_str_other[index] === "V"){
                    path_arr_x[i] = path_arr_x[i-1];
                    path_arr_y[j] = path_arr[n];
                    iPP;
                    jPP;
                    nPP;
                }else if(path_str_other[index] === "C"){
                    path_arr_x[i] = path_arr[n];
                    path_arr_y[j] = path_arr[n];
                    path_arr_x[i+1] = path_arr[n+1];
                    path_arr_y[j+1] = path_arr[n+1];
                    path_arr_x[i+2] = path_arr[n+2];
                    path_arr_y[j+2] = path_arr[n+2];
                    i+=3;
                    j+=3;
                    n+=3;
                }else if(path_str_other[index] === "l"){
                    path_arr_x[i] = path_arr_x[i-1] + path_arr[n];
                    path_arr_y[j] = path_arr_y[j-1] + path_arr[n+2];
                    iPP;
                    jPP;
                    n+=2;
                }else if(path_str_other[index] === "h"){
                    path_arr_x[i] =  path_arr_x[i-1] + path_arr[n];
                    path_arr_y[j] = path_arr_y[j-1];
                    iPP;
                    jPP;
                    nPP;
                }else if(path_str_other[index] === "v"){
                    path_arr_x[i] = path_arr_x[i-1];
                    path_arr_y[j] =  path_arr_y[j-1] + path_arr[n];
                    iPP;
                    jPP;
                    nPP;
                }

the above is the method of converting various path combinations to absolute path M+L+Z combinations I have written. Path_str_other is the extracted symbol, by traversing them to change the relative / absolute value, path_arr_x is the array of x coordinates of the new path points, path_arr_y is the same, I do not know whether it is correct, ask for the advice of the great gods in this respect.

Jul.08,2022
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1ea3c54-47a59.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1ea3c54-47a59.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?