platform_build_blueprint/proptools
Jooyung Han ddb5ed7e1f Add ShellEscapeIncludingSpaces(string)
ShellEscape(string) doesn't escape a string with spaces like "arg1
arg2". However, when we want to escape a string to use it as an
argument, then strings with spaces should be escaped.

For example,

  "command " + ShellEscapeIncludingSpaces("a b")

becomes "command 'a b'" so that "command" will get "a b" as a single
argument.

Bug: 182092664
Test: Added tests to escape_test.go
Change-Id: I8f88c18bc4f9f7aacfe9e701b8f0876dd8b9a8c3
2021-03-12 14:37:42 +09:00
..
clone.go Make proptools functions consistently take *struct types 2020-01-28 09:51:19 -08:00
clone_test.go Make proptools functions consistently take *struct types 2020-01-28 09:51:19 -08:00
escape.go Add ShellEscapeIncludingSpaces(string) 2021-03-12 14:37:42 +09:00
escape_test.go Add ShellEscapeIncludingSpaces(string) 2021-03-12 14:37:42 +09:00
extend.go Add isStruct and isStructPtr helpers 2020-01-28 09:51:19 -08:00
extend_test.go Implement list of maps 2020-03-02 17:26:20 -08:00
filter.go Add isStruct and isStructPtr helpers 2020-01-28 09:51:19 -08:00
filter_test.go Make FilterPropertyStructSharded smarter 2020-01-21 11:49:27 -08:00
proptools.go propertyIndexesWithTag can handle slice of struct 2021-02-24 01:02:59 +09:00
proptools_test.go Fix PropertyNameForField for X86. 2020-02-05 17:13:08 -08:00
tag.go propertyIndexesWithTag can handle slice of struct 2021-02-24 01:02:59 +09:00
tag_test.go propertyIndexesWithTag can handle slice of struct 2021-02-24 01:02:59 +09:00
typeequal.go Support nil pointers to structs in properties 2016-08-05 17:19:36 -07:00
typeequal_test.go Support nil pointers to structs in properties 2016-08-05 17:19:36 -07:00
unpack.go Fix silently ignoring values assigned to map properties 2021-01-15 22:21:28 -08:00
unpack_test.go Fix silently ignoring values assigned to map properties 2021-01-15 22:21:28 -08:00