This commit is contained in:
dapan1121 2021-06-04 18:39:05 +08:00
parent b721486890
commit 54c58e85c7
1 changed files with 3 additions and 0 deletions

View File

@ -56,6 +56,9 @@ int32_t strdequote(char *z) {
int32_t strRmquote(char *z, int32_t len){ int32_t strRmquote(char *z, int32_t len){
// delete escape character: \\, \', \" // delete escape character: \\, \', \"
char delim = z[0]; char delim = z[0];
if (delim != '\'' && delim != '\"') {
return len;
}
int32_t cnt = 0; int32_t cnt = 0;
int32_t j = 0; int32_t j = 0;