X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Flibpspp%2Fsyntax-gen.c;h=b3d49521052cd1485abc47183d0f1191df8e76db;hb=f5c108becd49d78f4898cab11352291f5689d24e;hp=2afcf46d84df7d8e7d64d036481160f18ad6db6e;hpb=7eee0554f378481faf447e2d2e940f389d6b05ec;p=pspp-builds.git diff --git a/src/libpspp/syntax-gen.c b/src/libpspp/syntax-gen.c index 2afcf46d..b3d49521 100644 --- a/src/libpspp/syntax-gen.c +++ b/src/libpspp/syntax-gen.c @@ -40,15 +40,15 @@ has_double_quote (const struct string *str) return (SIZE_MAX != ds_find_char (str, '"')); } -/* +/* Quotes the string STR. If STR contains no '\'' character, then the returned value will be enclosed in single quotes. Else, if STR contains no '"' character, then it will be enclosed in double quotes. Otherwise, it will be enclosed in single quotes, and each - '\'' will be padded with another '\''. + '\'' will be padded with another '\''. STR must be encoded in UTF-8, and the quoted result will also be - encoded in UTF-8. + encoded in UTF-8. */ void gen_quoted_string (struct string *str)