Lines Matching refs:newstr
866 PHPAPI zend_ulong mysqlnd_cset_escape_quotes(const MYSQLND_CHARSET * const cset, char * newstr, in mysqlnd_cset_escape_quotes() argument
869 const char *newstr_s = newstr; in mysqlnd_cset_escape_quotes()
870 const char *newstr_e = newstr + 2 * escapestr_len; in mysqlnd_cset_escape_quotes()
880 ZEND_ASSERT(newstr + len <= newstr_e); in mysqlnd_cset_escape_quotes()
883 *newstr++ = *escapestr++; in mysqlnd_cset_escape_quotes()
889 ZEND_ASSERT(newstr + 2 <= newstr_e); in mysqlnd_cset_escape_quotes()
890 *newstr++ = '\''; in mysqlnd_cset_escape_quotes()
891 *newstr++ = '\''; in mysqlnd_cset_escape_quotes()
893 ZEND_ASSERT(newstr + 1 <= newstr_e); in mysqlnd_cset_escape_quotes()
894 *newstr++ = *escapestr; in mysqlnd_cset_escape_quotes()
897 *newstr = '\0'; in mysqlnd_cset_escape_quotes()
899 DBG_RETURN((zend_ulong)(newstr - newstr_s)); in mysqlnd_cset_escape_quotes()
905 PHPAPI zend_ulong mysqlnd_cset_escape_slashes(const MYSQLND_CHARSET * const cset, char *newstr, in mysqlnd_cset_escape_slashes() argument
908 const char *newstr_s = newstr; in mysqlnd_cset_escape_slashes()
909 const char *newstr_e = newstr + 2 * escapestr_len; in mysqlnd_cset_escape_slashes()
922 ZEND_ASSERT(newstr + len <= newstr_e); in mysqlnd_cset_escape_slashes()
925 *newstr++ = *escapestr++; in mysqlnd_cset_escape_slashes()
955 ZEND_ASSERT(newstr + 2 <= newstr_e); in mysqlnd_cset_escape_slashes()
957 *newstr++ = '\\'; in mysqlnd_cset_escape_slashes()
958 *newstr++ = esc; in mysqlnd_cset_escape_slashes()
960 ZEND_ASSERT(newstr + 1 <= newstr_e); in mysqlnd_cset_escape_slashes()
962 *newstr++ = *escapestr; in mysqlnd_cset_escape_slashes()
965 *newstr = '\0'; in mysqlnd_cset_escape_slashes()
967 DBG_RETURN((zend_ulong)(newstr - newstr_s)); in mysqlnd_cset_escape_slashes()