From a1afc24f8cd797d7007563dbdde112fc7f4ac9ae Mon Sep 17 00:00:00 2001 From: "Steven R. Loomis" Date: Thu, 16 Mar 2017 15:15:26 +0000 Subject: [PATCH] ICU-12766 fix issue w/ u8 escaping * greek tests now pass on solaris X-SVN-Rev: 39835 --- icu4c/source/tools/escapesrc/escapesrc.cpp | 93 +++++++++---------- .../source/tools/escapesrc/expect-simple.cpp | 12 +-- 2 files changed, 51 insertions(+), 54 deletions(-) diff --git a/icu4c/source/tools/escapesrc/escapesrc.cpp b/icu4c/source/tools/escapesrc/escapesrc.cpp index 68845d51a6d..e28c5808cf9 100644 --- a/icu4c/source/tools/escapesrc/escapesrc.cpp +++ b/icu4c/source/tools/escapesrc/escapesrc.cpp @@ -14,17 +14,18 @@ #include "unicode/utf8.h" static const char - kSPACE = 0x20, - kTAB = 0x09, - kLF = 0x0A, - kCR = 0x0D, - kHASH = 0x23, - kSLASH = 0x2f, - kSTAR = 0x2A, - kL_U = 0x75, - kU_U = 0x55, - kQUOT = 0x27, - kDBLQ = 0x22; + kSPACE = 0x20, + kTAB = 0x09, + kLF = 0x0A, + kCR = 0x0D, + // kHASH = 0x23, + // kSLASH = 0x2f, + kBKSLASH = 0x5C, + // kSTAR = 0x2A, + kL_U = 0x75, + kU_U = 0x55, + kQUOT = 0x27, + kDBLQ = 0x22; std::string prog; @@ -52,17 +53,15 @@ int cleanup(const std::string &outfile) { return 0; } -#if 0 -inline bool hasNonAscii(const char *line, size_t len) { - const unsigned char *uline = reinterpret_cast(line); - for(size_t i=0;i 0x7F) { - return true; - } - } - return false; -} -#endif +// inline bool hasNonAscii(const char *line, size_t len) { +// const unsigned char *uline = reinterpret_cast(line); +// for(size_t i=0;i 0x7F) { +// return true; +// } +// } +// return false; +// } inline const char *skipws(const char *p, const char *e) { for(;p