| 2123 | */ |
| 2124 | |
| 2125 | static int add_keyword_string(String *str, const char *keyword, |
| 2126 | bool quoted, const char *keystr) |
| 2127 | { |
| 2128 | int err= str->append(' '); |
| 2129 | err+= str->append(keyword, strlen(keyword)); |
| 2130 | |
| 2131 | str->append(STRING_WITH_LEN(" = ")); |
| 2132 | if (quoted) |
| 2133 | { |
| 2134 | err+= str->append('\''); |
| 2135 | err+= str->append_for_single_quote(keystr, strlen(keystr)); |
| 2136 | err+= str->append('\''); |
| 2137 | } |
| 2138 | else |
| 2139 | err+= str->append(keystr, strlen(keystr)); |
| 2140 | return err; |
| 2141 | } |
| 2142 | |
| 2143 | |
| 2144 | /** |
no test coverage detected