summaryrefslogtreecommitdiffstats
path: root/src/string_piece.h
diff options
context:
space:
mode:
authorNicholas Hutchinson <nshutchinson@gmail.com>2014-01-08 20:38:20 (GMT)
committerNicholas Hutchinson <nshutchinson@gmail.com>2014-01-08 20:38:20 (GMT)
commit98a33759ddfe166ac684db4f4e1d0e174c89d2b5 (patch)
tree10a824abeb10fdc29c252f4f17ef2efd8ba79197 /src/string_piece.h
parent3e4bf25c40450393b5c5006c11d6e4236294c804 (diff)
downloadNinja-98a33759ddfe166ac684db4f4e1d0e174c89d2b5.zip
Ninja-98a33759ddfe166ac684db4f4e1d0e174c89d2b5.tar.gz
Ninja-98a33759ddfe166ac684db4f4e1d0e174c89d2b5.tar.bz2
Don’t unnecessarily escape backslashes in Win32 paths
Under ::CommandLineToArgvW() rules, the backslash character only gets special treatment if it’s immediately followed by a double quote. So, when checking to see if a string needs Win32 escaping, it’s sufficient to check for the presence of a double quote character. This allows paths like "foo\bar" to be recognised as “sensible” paths, which don’t require the full escaping.
Diffstat (limited to 'src/string_piece.h')
0 files changed, 0 insertions, 0 deletions