/freebsd/contrib/libedit/ |
H A D | tokenizer.c | 92 quote_t quote; /* Quoting state */ in TYPE() local 152 tok->quote = Q_none; in TYPE() 169 tok->quote = Q_none; in FUN() 225 switch (tok->quote) { in FUN() 227 tok->quote = Q_single; /* Enter single quote in FUN() 232 tok->quote = Q_none; in FUN() 236 tok->quote = Q_none; in FUN() 245 tok->quote = Q_double; in FUN() 257 switch (tok->quote) { in FUN() 259 tok->quote = Q_double; in FUN() [all …]
|
/freebsd/contrib/openpam/lib/libpam/ |
H A D | openpam_readword.c | 56 int ch, escape, quote; in openpam_readword() local 62 escape = quote = 0; in openpam_readword() 94 while ((ch = fgetc(f)) != EOF && (!is_ws(ch) || quote || escape)) { in openpam_readword() 95 if (ch == '\\' && !escape && quote != '\'') { in openpam_readword() 98 } else if ((ch == '\'' || ch == '"') && !quote && !escape) { in openpam_readword() 100 quote = ch; in openpam_readword() 104 } else if (ch == quote && !escape) { in openpam_readword() 106 quote = 0; in openpam_readword() 111 if (escape && quote && ch != '\\' && ch != quote && in openpam_readword() 133 if (ch == EOF && (escape || quote)) { in openpam_readword()
|
/freebsd/lib/libc/gen/ |
H A D | wordexp.c | 303 bool quote = false, dollar = false; in we_check() local 314 quote = !quote; in we_check() 317 if (quote) in we_check() 318 quote = false; in we_check() 323 if (!quote && !have_sq && !have_dq) in we_check() 330 if (!quote && !have_sq && !have_dq) in we_check() 337 if (!quote && !have_sq && !have_cmd) in we_check() 344 if (!quote && !dollar && !have_sq && !have_dq && in we_check() 348 if (!quote && !have_sq) in we_check() 354 if (!quote && !have_sq && !have_dq && !have_par_begin && in we_check() [all …]
|
/freebsd/contrib/llvm-project/lldb/source/Utility/ |
H A D | Args.cpp | 19 // Parses the initial part of the first argument using normal double quote 20 // rules: backslash escapes the double quote and itself. The parsed string is 22 // of the string, starting at the closing quote. 33 // If we have reached the end of string or the closing quote, we're done. in ParseDoubleQuotes() 76 // The function returns a tuple consisting of the parsed argument, the quote 90 // we remember the first quote character we encounter and use that for the in ParseSingleArgument() 91 // quote character. in ParseSingleArgument() 134 // We found the start of a quote scope. in ParseSingleArgument() 141 // For single quotes, we simply skip ahead to the matching quote in ParseSingleArgument() 148 // If we found a closing quote, ski in ParseSingleArgument() 159 ArgEntry(llvm::StringRef str,char quote) ArgEntry() argument 217 char quote = m_entries[i].quote; GetCommandString() local 253 char quote; SetCommandString() local 364 char quote = SetArguments() local 639 char quote; SetFromString() local [all...] |
/freebsd/stand/common/ |
H A D | interp_parse.c | 90 char token, tmp, quote, dquote, *buf; in parse() local 94 dquote = quote = 0; in parse() 113 quote = quote ? 0 : *p; in parse() 121 if (quote) { /* keep dquote */ in parse() 126 } else if (isspace(*p) && !quote && !dquote) { in parse() 134 } else if (*p == '$' && !quote) { in parse() 177 PARSE_FAIL(quote || dquote); in parse()
|
/freebsd/usr.bin/m4/tests/ |
H A D | regress.quotes.out | 1 m4: unclosed quote: 17 3: normal changed quote 31 5: start quote only 44 7: start quote+empty end quote
|
H A D | quotes.m4 | 19 3: normal changed quote 35 5: start quote only 51 7: start quote+empty end quote
|
/freebsd/usr.sbin/pw/ |
H A D | pw_conf.c | 436 int quote = 1; in write_userconfig() local 453 quote = 0; in write_userconfig() 472 quote = 0; in write_userconfig() 482 quote = 0; in write_userconfig() 497 quote = 0; in write_userconfig() 505 quote = 0; in write_userconfig() 509 quote = 0; in write_userconfig() 513 quote = 0; in write_userconfig() 517 quote = 0; in write_userconfig() 521 quote = 0; in write_userconfig() [all …]
|
/freebsd/sys/kern/ |
H A D | tty_ttydisc.c | 725 ttydisc_echo_force(struct tty *tp, char c, int quote) in ttydisc_echo_force() argument 731 if (CMP_FLAG(o, OPOST) && CTL_ECHO(c, quote)) { in ttydisc_echo_force() 737 } else if (CMP_FLAG(l, ECHOCTL) && CTL_PRINT(c, quote)) { in ttydisc_echo_force() 750 if (!quote && CMP_CC(VEOF, c)) { in ttydisc_echo_force() 764 ttydisc_echo(struct tty *tp, char c, int quote) in ttydisc_echo() argument 772 (!CMP_FLAG(l, ECHONL) || c != CNL || quote)) in ttydisc_echo() 775 return ttydisc_echo_force(tp, c, quote); in ttydisc_echo() 779 ttydisc_reprint_char(void *d, char c, int quote) in ttydisc_reprint_char() argument 783 ttydisc_echo(tp, c, quote); in ttydisc_reprint_char() 807 ttydisc_recalc_charlength(void *d, char c, int quote) in ttydisc_recalc_charlength() argument [all …]
|
/freebsd/crypto/heimdal/appl/telnet/telnet/ |
H A D | utilities.c | 252 qprintf(int quote, FILE *f, const char *fmt, ...) in qprintf() argument 256 if (quote) in qprintf() 743 int quote = 0; in printsub() local 747 qprintf(quote, NetTrace, "VAR "); in printsub() 748 quote = 0; in printsub() 752 qprintf(quote, NetTrace, "VALUE"); in printsub() 753 quote = 0; in printsub() 757 qprintf(quote, NetTrace, "ESC "); in printsub() 758 quote = 0; in printsub() 762 qprintf(quote, NetTrace, "USERVAR "); in printsub() [all …]
|
/freebsd/contrib/file/src/ |
H A D | is_csv.c | 70 int quote = 0; in eatquote() local 76 if (quote) { in eatquote() 81 if (quote) { in eatquote() 83 quote = 0; in eatquote() 87 quote = 1; in eatquote()
|
/freebsd/contrib/kyua/utils/text/ |
H A D | operations_test.cpp | 102 ATF_REQUIRE_EQ("''", text::quote("", '\'')); in ATF_TEST_CASE_BODY() 103 ATF_REQUIRE_EQ("##", text::quote("", '#')); in ATF_TEST_CASE_BODY() 110 ATF_REQUIRE_EQ("'Some text\"'", text::quote("Some text\"", '\'')); in ATF_TEST_CASE_BODY() 111 ATF_REQUIRE_EQ("#Another'string#", text::quote("Another'string", '#')); in ATF_TEST_CASE_BODY() 118 ATF_REQUIRE_EQ("'Some\\'text'", text::quote("Some'text", '\'')); in ATF_TEST_CASE_BODY() 119 ATF_REQUIRE_EQ("#Some\\#text#", text::quote("Some#text", '#')); in ATF_TEST_CASE_BODY() 122 text::quote("More than one' quote'", '\'')); in ATF_TEST_CASE_BODY() 124 text::quote("Multiple quotes ''' together", '\'')); in ATF_TEST_CASE_BODY() 127 text::quote("'escape at the beginning", '\'')); in ATF_TEST_CASE_BODY() 129 text::quote("escape at the end'", '\'')); in ATF_TEST_CASE_BODY()
|
H A D | operations.cpp | 91 text::quote(const std::string& text, const char quote) in quote() argument 94 quoted << quote; in quote() 97 std::string::size_type last_pos = text.find(quote); in quote() 101 last_pos = text.find(quote, start_pos + 1); in quote() 105 quoted << quote; in quote()
|
/freebsd/usr.bin/gencat/ |
H A D | gencat.c | 301 getmsg(int fd, char *cptr, char quote) argument 308 if (quote && *cptr == quote) { 323 if (quote && *cptr == quote) { 362 if (quote && *cptr == quote) { 393 char quote = 0; local 414 quote = 0; 418 quote = 0; 420 quote = *cptr; 458 str = getmsg(fd, cptr, quote);
|
/freebsd/contrib/libxo/xolint/ |
H A D | xolint.pl | 170 my $quote = ""; 182 print "'$ch' ($quote) ($#open) [" . join("", @open) . "]\n" 187 if ($ch eq "," && $quote eq "" && $#open < 0) { 194 next if $ch =~ /[ \t\n\r]/ && $quote eq "" && $#open < 0; 198 if ($quote) { 199 if ($ch eq $quote) { 200 $quote = ""; 205 $quote = $quotes{$ch};
|
/freebsd/contrib/com_err/ |
H A D | lex.l | 90 int quote = 0; 92 if(quote) { 94 quote = 0; 103 quote++;
|
/freebsd/crypto/heimdal/lib/com_err/ |
H A D | lex.l | 90 int quote = 0; 92 if(quote) { 94 quote = 0; 103 quote++;
|
/freebsd/crypto/heimdal/lib/hx509/ |
H A D | sel-lex.l | 94 int quote = 0; variable 96 if(quote) { 99 quote = 0; 108 quote++;
|
/freebsd/crypto/heimdal/lib/sl/ |
H A D | slc-lex.l | 129 int quote = 0; in handle_string() local 131 if(quote) { in handle_string() 134 quote = 0; in handle_string() 143 quote++; in handle_string()
|
/freebsd/crypto/heimdal/appl/telnet/telnetd/ |
H A D | utility.c | 916 int quote = 0; in printsub() local 920 if (quote) in printsub() 923 quote = 0; in printsub() 927 if (quote) in printsub() 930 quote = 0; in printsub() 934 if (quote) in printsub() 937 quote = 0; in printsub() 941 if (quote) in printsub() 944 quote = 0; in printsub() 949 if (!quote) { in printsub() [all …]
|
/freebsd/contrib/nvi/vi/ |
H A D | v_replace.c | 49 int quote, rval; in v_replace() local 95 quote = 0; in v_replace() 109 if (!quote) { in v_replace() 111 quote = 1; in v_replace() 152 if ((!quote && vip->rvalue == K_CR) || vip->rvalue == K_NL) { in v_replace()
|
/freebsd/contrib/llvm-project/lld/MachO/ |
H A D | DriverUtils.cpp | 158 os << quote(rewriteInputPath(arg->getValue())) << "\n"; in createResponseFile() 161 os << "-o " << quote(path::filename(arg->getValue())) << "\n"; in createResponseFile() 166 os << quote(rewriteInputPath(path)) << "\n"; in createResponseFile() 172 << quote(rewriteInputPath(arg->getValue())) << "\n"; in createResponseFile() 181 os << arg->getSpelling() << " " << quote(rewritePath(arg->getValue())) in createResponseFile() 185 os << arg->getSpelling() << " " << quote(arg->getValue(0)) << " " in createResponseFile() 186 << quote(arg->getValue(1)) << " " in createResponseFile() 187 << quote(rewritePath(arg->getValue(2))) << "\n"; in createResponseFile()
|
/freebsd/contrib/kyua/os/freebsd/utils/ |
H A D | jail.cpp | 110 char quote = 0; in parse_params_string() local 115 quote = p.front(); in parse_params_string() 117 if (p.find(quote) == std::string::npos) { in parse_params_string() 119 std::getline(iss, rest, quote); in parse_params_string() 123 if (p.back() == quote) in parse_params_string()
|
/freebsd/lib/libfigpar/ |
H A D | figpar.c | 95 uint8_t quote; in parse_config() local 254 quote = 0; in parse_config() 318 quote = !quote; in parse_config() 326 if (!quote) in parse_config() 338 if (!quote && bsemicolon) in parse_config()
|
/freebsd/crypto/heimdal/lib/krb5/ |
H A D | transited.c | 210 int quote = 0; in make_realm() local 224 if(quote){ in make_realm() 226 quote = 0; in make_realm() 230 quote = 1; in make_realm() 262 int quote = 0; in decode_realms() local 267 if(quote){ in decode_realms() 268 quote = 0; in decode_realms() 272 quote = 1; in decode_realms()
|