diff options
author | Daniel Wilhelm <daniel@wili.li> | 2014-04-18 17:14:37 +0200 |
---|---|---|
committer | Daniel Wilhelm <daniel@wili.li> | 2014-04-18 17:14:37 +0200 |
commit | 8bf668665b107469086f16cb8ad23e47d479d2b4 (patch) | |
tree | 66a91ef06a8caa7cd6819dcbe1860693d3eda8d5 /shared/string_utf8.h | |
parent | 3.21 (diff) | |
download | FreeFileSync-8bf668665b107469086f16cb8ad23e47d479d2b4.tar.gz FreeFileSync-8bf668665b107469086f16cb8ad23e47d479d2b4.tar.bz2 FreeFileSync-8bf668665b107469086f16cb8ad23e47d479d2b4.zip |
4.0
Diffstat (limited to 'shared/string_utf8.h')
-rw-r--r-- | shared/string_utf8.h | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/shared/string_utf8.h b/shared/string_utf8.h index 26f4c3f2..8c920752 100644 --- a/shared/string_utf8.h +++ b/shared/string_utf8.h @@ -134,21 +134,21 @@ OutputIterator codePointToUtf8(CodePoint cp, OutputIterator result) //http://en. *result++ = static_cast<Char8>(cp); else if (cp < 0x800) { - *result++ = static_cast<Char8>((cp >> 6 )| 0xc0); - *result++ = static_cast<Char8>((cp & 0x3f )| 0x80); + *result++ = static_cast<Char8>((cp >> 6 ) | 0xc0); + *result++ = static_cast<Char8>((cp & 0x3f ) | 0x80); } else if (cp < 0x10000) { - *result++ = static_cast<Char8>((cp >> 12 )| 0xe0); - *result++ = static_cast<Char8>(((cp >> 6) & 0x3f )| 0x80); - *result++ = static_cast<Char8>((cp & 0x3f )| 0x80); + *result++ = static_cast<Char8>((cp >> 12 ) | 0xe0); + *result++ = static_cast<Char8>(((cp >> 6) & 0x3f ) | 0x80); + *result++ = static_cast<Char8>((cp & 0x3f ) | 0x80); } else { - *result++ = static_cast<Char8>((cp >> 18 )| 0xf0); - *result++ = static_cast<Char8>(((cp >> 12) & 0x3f )| 0x80); - *result++ = static_cast<Char8>(((cp >> 6) & 0x3f )| 0x80); - *result++ = static_cast<Char8>((cp & 0x3f )| 0x80); + *result++ = static_cast<Char8>((cp >> 18 ) | 0xf0); + *result++ = static_cast<Char8>(((cp >> 12) & 0x3f ) | 0x80); + *result++ = static_cast<Char8>(((cp >> 6) & 0x3f ) | 0x80); + *result++ = static_cast<Char8>((cp & 0x3f ) | 0x80); } return result; } @@ -179,7 +179,7 @@ Function utf8ToCodePoint(CharIterator first, CharIterator last, Function f) //f for ( ; first != last; ++first) { - auto getChar = [&](Char8& ch ) -> bool + auto getChar = [&](Char8 & ch) -> bool { if (++first == last) { |