kparzysz-quic opened a new pull request, #12152:
URL: https://github.com/apache/tvm/pull/12152

   - `SplitString` now preserves escape sequences, but still observes quote 
characters.
   - Added function `Interpret` that transforms given string according to 
interpretation rules:
     - outermost quotes are removed (if present),
     - escape sequences inside quotes are preserved verbatim,
     - unquoted escape sequences produce the escaped character (the escape 
character (\) is removed.
   - Interpretation happens every time a value of any type is to be parsed from 
a string, e.g. Array<String> will first be parsed as an array, then substrings 
of the input will be parsed as individual elements of that array. In this case, 
some parts of the initial input will be parsed (and interpreted) twice.
   
   This new scheme enabled encoding nested arrays of string with any degree of 
nesting. For example
   ```
   "-field='\\'foo0\\',\\'bar0,bar1\\'','\\'zing0,zing1\\',\\'fred\\''"
   ```
   would correspond to the target kind attribute
   ```
   Array<Array<Array<String>>>("field"))
   ```
   and have the value
   ```
   { { {foo0}, {bar0, bar1} }, { {zing0, zing1}, {fred} } }
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to