diff options
author | Mark Spruiell <mes@zeroc.com> | 2017-09-04 14:40:47 -0700 |
---|---|---|
committer | Mark Spruiell <mes@zeroc.com> | 2017-09-04 14:40:47 -0700 |
commit | cdfd2cbb48cccc460541d21f604834975fe05720 (patch) | |
tree | 6e1277a7ecbe091098ae4e2c8e3c87c44799f7ad /cpp/src/Slice/Util.h | |
parent | Fix PHP build warnings (diff) | |
download | ice-cdfd2cbb48cccc460541d21f604834975fe05720.tar.bz2 ice-cdfd2cbb48cccc460541d21f604834975fe05720.tar.xz ice-cdfd2cbb48cccc460541d21f604834975fe05720.zip |
Initial commit of MATLAB prototype
Diffstat (limited to 'cpp/src/Slice/Util.h')
-rw-r--r-- | cpp/src/Slice/Util.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/cpp/src/Slice/Util.h b/cpp/src/Slice/Util.h index a31536a6ed8..33c52fe5035 100644 --- a/cpp/src/Slice/Util.h +++ b/cpp/src/Slice/Util.h @@ -31,16 +31,17 @@ std::vector<std::string> argvToArgs(int argc, wchar_t* argv[]); std::vector<std::string> argvToArgs(int argc, char* argv[]); #endif -enum EscapeMode { UCN, Octal, ShortUCN, EC6UCN }; +enum EscapeMode { UCN, Octal, ShortUCN, Matlab, EC6UCN }; // Parameters: // const string& value: input string provided by Slice Parser // const string& nonPrintableEscaped: which of \a, \b, \f, \n, \r, \t, \v, \0 (null), \x20 (\s), \x1b (\e) are // escaped in the target language // Warning: don't include \0 if the target language recognizes octal escapes -// const string& printableEscaped: additional printable ASCII characters other than \ and " that need to be escaped +// const string& printableEscaped: additional printable ASCII characters other than \ and the string delimiter +// that need to be escaped // EscapeMode escapeMode: whether we generate both UCNs, octal escape sequences, only short UCNs (\unnnn), -// or ECMAScript 6-style UCNs with \u{...} for astral characters +// Matlab syntax, or ECMAScript 6-style UCNs with \u{...} for astral characters. // unsigned char cutOff: characters < cutOff other than the nonPrintableEscaped are generated as // octal escape sequences, regardless of escapeMode. std::string |