Lines Matching refs:newstr
776 PHPAPI zend_ulong mysqlnd_cset_escape_quotes(const MYSQLND_CHARSET * const cset, char *newstr, in mysqlnd_cset_escape_quotes() argument
779 const char *newstr_s = newstr; in mysqlnd_cset_escape_quotes()
780 const char *newstr_e = newstr + 2 * escapestr_len; in mysqlnd_cset_escape_quotes()
793 if ((newstr + len) > newstr_e) { in mysqlnd_cset_escape_quotes()
799 *newstr++ = *escapestr++; in mysqlnd_cset_escape_quotes()
805 if (newstr + 2 > newstr_e) { in mysqlnd_cset_escape_quotes()
809 *newstr++ = '\''; in mysqlnd_cset_escape_quotes()
810 *newstr++ = '\''; in mysqlnd_cset_escape_quotes()
812 if (newstr + 1 > newstr_e) { in mysqlnd_cset_escape_quotes()
816 *newstr++ = *escapestr; in mysqlnd_cset_escape_quotes()
819 *newstr = '\0'; in mysqlnd_cset_escape_quotes()
824 DBG_RETURN((ulong)(newstr - newstr_s)); in mysqlnd_cset_escape_quotes()
830 PHPAPI zend_ulong mysqlnd_cset_escape_slashes(const MYSQLND_CHARSET * const cset, char *newstr, in mysqlnd_cset_escape_slashes() argument
833 const char *newstr_s = newstr; in mysqlnd_cset_escape_slashes()
834 const char *newstr_e = newstr + 2 * escapestr_len; in mysqlnd_cset_escape_slashes()
848 if ((newstr + len) > newstr_e) { in mysqlnd_cset_escape_slashes()
854 *newstr++ = *escapestr++; in mysqlnd_cset_escape_slashes()
883 if (newstr + 2 > newstr_e) { in mysqlnd_cset_escape_slashes()
888 *newstr++ = '\\'; in mysqlnd_cset_escape_slashes()
889 *newstr++ = esc; in mysqlnd_cset_escape_slashes()
891 if (newstr + 1 > newstr_e) { in mysqlnd_cset_escape_slashes()
896 *newstr++ = *escapestr; in mysqlnd_cset_escape_slashes()
899 *newstr = '\0'; in mysqlnd_cset_escape_slashes()
904 DBG_RETURN((ulong)(newstr - newstr_s)); in mysqlnd_cset_escape_slashes()