Lines Matching refs:str_copy
345 char *str_copy; in PGTYPESdate_defmt_asc() local
444 str_copy = pgtypes_alloc(strlen(str) + 1 + 2); in PGTYPESdate_defmt_asc()
445 if (!str_copy) in PGTYPESdate_defmt_asc()
492 strncpy(str_copy + target_pos, str + start_pos, in PGTYPESdate_defmt_asc()
497 str_copy[target_pos] = ' '; in PGTYPESdate_defmt_asc()
501 str_copy[target_pos] = '\0'; in PGTYPESdate_defmt_asc()
505 str_copy = pgtypes_strdup(str); in PGTYPESdate_defmt_asc()
506 if (!str_copy) in PGTYPESdate_defmt_asc()
510 for (i = 0; str_copy[i]; i++) in PGTYPESdate_defmt_asc()
511 str_copy[i] = (char) pg_tolower((unsigned char) str_copy[i]); in PGTYPESdate_defmt_asc()
517 for (i = 0; i < strlen(str_copy); i++) in PGTYPESdate_defmt_asc()
519 if (!isdigit((unsigned char) str_copy[i]) && reading_digit) in PGTYPESdate_defmt_asc()
526 else if (isdigit((unsigned char) str_copy[i]) && !reading_digit) in PGTYPESdate_defmt_asc()
551 free(str_copy); in PGTYPESdate_defmt_asc()
572 free(str_copy); in PGTYPESdate_defmt_asc()
587 if ((start_pos = strstr(str_copy, month_lower_tmp))) in PGTYPESdate_defmt_asc()
589 offset = start_pos - str_copy; in PGTYPESdate_defmt_asc()
640 free(str_copy); in PGTYPESdate_defmt_asc()
667 *(str_copy + token[i][1] + 1) = '\0'; in PGTYPESdate_defmt_asc()
672 token_values[i] = strtol(str_copy + token[i][0], (char **) NULL, 10); in PGTYPESdate_defmt_asc()
684 free(str_copy); in PGTYPESdate_defmt_asc()