summaryrefslogtreecommitdiff
path: root/cpp/src/slice2cpp
diff options
context:
space:
mode:
authorBernard Normier <bernard@zeroc.com>2016-10-12 13:34:57 -0400
committerBernard Normier <bernard@zeroc.com>2016-10-12 13:34:57 -0400
commit5458f843d41d8335fc6285d95eeb64a6ac0ddf06 (patch)
treec030221d4c9fe8bfdfffbc7974869e9eb90807b6 /cpp/src/slice2cpp
parentMerge pull request #11 from grembo/patch-1 (diff)
downloadice-5458f843d41d8335fc6285d95eeb64a6ac0ddf06.tar.bz2
ice-5458f843d41d8335fc6285d95eeb64a6ac0ddf06.tar.xz
ice-5458f843d41d8335fc6285d95eeb64a6ac0ddf06.zip
Changed parsing of hex escape sequences in Slice string literals
Diffstat (limited to 'cpp/src/slice2cpp')
-rw-r--r--cpp/src/slice2cpp/Gen.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/cpp/src/slice2cpp/Gen.cpp b/cpp/src/slice2cpp/Gen.cpp
index 140438eb37e..582f6edf732 100644
--- a/cpp/src/slice2cpp/Gen.cpp
+++ b/cpp/src/slice2cpp/Gen.cpp
@@ -204,7 +204,7 @@ writeConstantValue(IceUtilInternal::Output& out, const TypePtr& type, const Synt
else
{
//
- // Write any pedding characters in the utf8 buffer
+ // Write any padding characters in the utf8 buffer
//
if(!u8buffer.empty())
{
@@ -229,7 +229,7 @@ writeConstantValue(IceUtilInternal::Output& out, const TypePtr& type, const Synt
//
// An even number of slash \ will escape the backslash and
- // the codepoint will be interpreted as its charaters
+ // the codepoint will be interpreted as its characters
//
// \\U00000041 - ['\\', 'U', '0', '0', '0', '0', '0', '0', '4', '1']
// \\\U00000041 - ['\\', 'A'] (41 is the codepoint for 'A')
@@ -243,7 +243,7 @@ writeConstantValue(IceUtilInternal::Output& out, const TypePtr& type, const Synt
size_t sz = value[j] == 'U' ? 8 : 4;
string codepoint = value.substr(j + 1, sz);
- assert(codepoint.size() == sz);
+ assert(codepoint.size() == sz);
IceUtil::Int64 v = IceUtilInternal::strToInt64(codepoint.c_str(), 0, 16);
out << u32CodePoint(static_cast<unsigned int>(v), cpp11);
@@ -271,7 +271,7 @@ writeConstantValue(IceUtilInternal::Output& out, const TypePtr& type, const Synt
}
//
- // Write any pedding characters in the utf8 buffer
+ // Write any padding characters in the utf8 buffer
//
if(!u8buffer.empty())
{