46 size_t length =
strlen(str);
47 for (
size_t i = 0; i < length; i++) {
48 if (str[i] ==
'}' && str[i + 1] ==
'}') {
51 }
else if (str[i] ==
'}' && str[i + 1] !=
'\0') {
81 return (
strlen(in_str) * 2) + 3;
95 while (out_str_size > 2) {
96 if (*in_str ==
'\0') {
98 }
else if (*in_str ==
'}' && out_str_size - 1 > 2) {
101 *out_str++ = *in_str++;
103 }
else if (*in_str ==
'}') {
107 *out_str++ = *in_str++;
strpbrk(string $string, string $characters)
PHPAPI size_t php_odbc_connstr_estimate_quote_length(const char *in_str)
PHPAPI bool php_odbc_connstr_is_quoted(const char *str)
PHPAPI size_t php_odbc_connstr_quote(char *out_str, const char *in_str, size_t out_str_size)
PHPAPI bool php_odbc_connstr_should_quote(const char *str)