diff options
| author | jsmall-nvidia <jsmall@nvidia.com> | 2022-05-27 17:28:05 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-05-27 17:28:05 -0400 |
| commit | 2d3392f22c894957d17dd13486e0565c4ecea89c (patch) | |
| tree | ce4dadbd85a59e52725fa6f92613553cd5b29859 /source/core/slang-string-escape-util.h | |
| parent | abb89b3e460e11e8f9a134199c2d559190bfc47e (diff) | |
Added NativeStringType (#2252)
* #include an absolute path didn't work - because paths were taken to always be relative.
* Use TerminatedUnownedStringSlice for literals in output C++.
* Remove Escape/Unescape functions used in slang-token-reader.cpp
Add target type of 'host-cpp' etc to map to the target types.
* Fix some corner cases around string encoding.
* Added unit test for string escaping.
Fixed some assorted escaping bugs.
* Updated test output.
* Added decode test.
* Stop using hex output, to get around 'greedy' aspect. Use octal instead.
Diffstat (limited to 'source/core/slang-string-escape-util.h')
| -rw-r--r-- | source/core/slang-string-escape-util.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source/core/slang-string-escape-util.h b/source/core/slang-string-escape-util.h index 5f749c423..c3a43b623 100644 --- a/source/core/slang-string-escape-util.h +++ b/source/core/slang-string-escape-util.h @@ -55,6 +55,8 @@ struct StringEscapeUtil Cpp, ///< Cpp style quoting and escape handling Space, ///< Applies quotes if there are spaces. Does not escape. JSON, ///< Json encoding + Slang, ///< Slang style string encoding (For now same as Cpp but that may change in the future) + CountOf, }; /// Given a style returns a handler |
