summaryrefslogtreecommitdiff
path: root/shared/string_utf8.h
diff options
context:
space:
mode:
Diffstat (limited to 'shared/string_utf8.h')
-rw-r--r--shared/string_utf8.h20
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)
{
bgstack15