Lines Matching refs:newstr
774 PHPAPI zend_ulong mysqlnd_cset_escape_quotes(const MYSQLND_CHARSET * const cset, char * newstr, in mysqlnd_cset_escape_quotes() argument
777 const char *newstr_s = newstr; in mysqlnd_cset_escape_quotes()
778 const char *newstr_e = newstr + 2 * escapestr_len; in mysqlnd_cset_escape_quotes()
791 if ((newstr + len) > newstr_e) { in mysqlnd_cset_escape_quotes()
797 *newstr++ = *escapestr++; in mysqlnd_cset_escape_quotes()
803 if (newstr + 2 > newstr_e) { in mysqlnd_cset_escape_quotes()
807 *newstr++ = '\''; in mysqlnd_cset_escape_quotes()
808 *newstr++ = '\''; in mysqlnd_cset_escape_quotes()
810 if (newstr + 1 > newstr_e) { in mysqlnd_cset_escape_quotes()
814 *newstr++ = *escapestr; in mysqlnd_cset_escape_quotes()
817 *newstr = '\0'; in mysqlnd_cset_escape_quotes()
822 DBG_RETURN((zend_ulong)(newstr - newstr_s)); in mysqlnd_cset_escape_quotes()
828 PHPAPI zend_ulong mysqlnd_cset_escape_slashes(const MYSQLND_CHARSET * const cset, char *newstr, in mysqlnd_cset_escape_slashes() argument
831 const char *newstr_s = newstr; in mysqlnd_cset_escape_slashes()
832 const char *newstr_e = newstr + 2 * escapestr_len; in mysqlnd_cset_escape_slashes()
846 if ((newstr + len) > newstr_e) { in mysqlnd_cset_escape_slashes()
852 *newstr++ = *escapestr++; in mysqlnd_cset_escape_slashes()
881 if (newstr + 2 > newstr_e) { in mysqlnd_cset_escape_slashes()
886 *newstr++ = '\\'; in mysqlnd_cset_escape_slashes()
887 *newstr++ = esc; in mysqlnd_cset_escape_slashes()
889 if (newstr + 1 > newstr_e) { in mysqlnd_cset_escape_slashes()
894 *newstr++ = *escapestr; in mysqlnd_cset_escape_slashes()
897 *newstr = '\0'; in mysqlnd_cset_escape_slashes()
902 DBG_RETURN((zend_ulong)(newstr - newstr_s)); in mysqlnd_cset_escape_slashes()