Fixed several typos with accepting results form "append". I can't explain the fact that it had no visible influence on the functionality.

git-svn-id: http://svn.code.sf.net/p/utfcpp/code@40 a809a056-fc17-0410-9590-b4f493f8b08e
This commit is contained in:
ntrifunovic 2006-08-11 22:38:42 +00:00
parent 988eb58264
commit 45fe39aeb4

View file

@ -356,7 +356,7 @@ namespace internal
throw invalid_utf16(static_cast<uint16_t>(*start));
}
*result = append(cp, result);
result = append(cp, result);
}
}
@ -378,7 +378,7 @@ namespace internal
void utf32to8 (u32bit_iterator start, u32bit_iterator end, octet_iterator result)
{
while (start != end)
*result = append(*(start++), result);
result = append(*(start++), result);
}
template <typename octet_iterator, typename u32bit_iterator>
@ -481,7 +481,7 @@ namespace internal
uint32_t trail_surrogate = internal::mask16(*start++);
cp = (cp << 10) + trail_surrogate + internal::SURROGATE_OFFSET;
}
*result = append(cp, result);
result = append(cp, result);
}
}
@ -503,7 +503,7 @@ namespace internal
void utf32to8 (u32bit_iterator start, u32bit_iterator end, octet_iterator result)
{
while (start != end)
*result = append(*(start++), result);
result = append(*(start++), result);
}
template <typename octet_iterator, typename u32bit_iterator>