3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2025-11-21 05:06:41 +00:00
yosys/kernel
Krystine Sherwin d6f3ac60f1
io.cc: Support single quoted arguments
Single quoted strings have no escape character and are treated verbatim.
This is useful for minimizing the number of backslashes in (for example) `logger -expect` regexps (e.g. `"\\\""` -> `'\"'`).
`Yosys::quote()` will use single quotes by default, unless the string contains a single quote and then it will use `std::quoted()`.

Fix strange behaviour arrising from always using `std::quoted(result)`.  Because of the way the function interacts with streams, if there is only one quotation mark then the result would end at the first whitespace.
2025-09-24 17:24:40 +12:00
..
binding.cc
binding.h
bitpattern.h
calc.cc
cellaigs.cc
cellaigs.h
celledges.cc
celledges.h
celltypes.h
compute_graph.h
consteval.h
constids.inc
cost.cc
cost.h
driver.cc
drivertools.cc
drivertools.h
ff.cc
ff.h
ffinit.h
ffmerge.cc
ffmerge.h
fmt.cc
fmt.h
fstdata.cc
fstdata.h
functional.cc
functional.h
gzip.cc
gzip.h
hashlib.h
io.cc io.cc: Support single quoted arguments 2025-09-24 17:24:40 +12:00
io.h
json.cc
json.h
log.cc
log.h
log_compat.cc
log_help.cc
log_help.h
macc.h
mem.cc
mem.h
modtools.h
qcsat.cc
qcsat.h
register.cc
register.h
rtlil.cc
rtlil.h
rtlil_bufnorm.cc
satgen.cc
satgen.h
scopeinfo.cc
scopeinfo.h
sexpr.cc
sexpr.h
sigtools.h
tclapi.cc
threading.cc
threading.h
timinginfo.h
topo_scc.h
utils.h
yosys.cc
yosys.h
yosys_common.h
yw.cc
yw.h