summaryrefslogtreecommitdiff
path: root/zen/utf.h
diff options
context:
space:
mode:
authorDaniel Wilhelm <daniel@wili.li>2016-05-24 22:10:57 +0200
committerDaniel Wilhelm <daniel@wili.li>2016-05-24 22:10:57 +0200
commit9043b32bb1835628c5a1d8be4a271c848443c629 (patch)
tree98ccb4936562731d9cae02a486441dfd446e8a4e /zen/utf.h
parent8.0 (diff)
downloadFreeFileSync-9043b32bb1835628c5a1d8be4a271c848443c629.tar.gz
FreeFileSync-9043b32bb1835628c5a1d8be4a271c848443c629.tar.bz2
FreeFileSync-9043b32bb1835628c5a1d8be4a271c848443c629.zip
8.1
Diffstat (limited to 'zen/utf.h')
-rw-r--r--zen/utf.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/zen/utf.h b/zen/utf.h
index 117b13bc..c0b2b4af 100644
--- a/zen/utf.h
+++ b/zen/utf.h
@@ -238,7 +238,7 @@ void utf8ToCodePoint(CharIterator first, CharIterator last, Function writeOutput
template <class CharString> inline
size_t unicodeLength(const CharString& str, char) //utf8
{
- typedef typename GetCharType<CharString>::Type CharType;
+ using CharType = typename GetCharType<CharString>::Type;
const CharType* strFirst = strBegin(str);
const CharType* const strLast = strFirst + strLength(str);
@@ -258,7 +258,7 @@ size_t unicodeLength(const CharString& str, char) //utf8
template <class WideString> inline
size_t unicodeLengthWide(const WideString& str, Int2Type<2>) //windows: utf16-wchar_t
{
- typedef typename GetCharType<WideString>::Type CharType;
+ using CharType = typename GetCharType<WideString>::Type;
const CharType* strFirst = strBegin(str);
const CharType* const strLast = strFirst + strLength(str);
@@ -302,7 +302,7 @@ namespace implementation
template <class CharString> inline
size_t findUnicodePos(const CharString& str, size_t unicodePos, char) //utf8-char
{
- typedef typename GetCharType<CharString>::Type CharType;
+ using CharType = typename GetCharType<CharString>::Type;
const CharType* strFirst = strBegin(str);
const size_t strLen = strLength(str);
@@ -326,7 +326,7 @@ size_t findUnicodePos(const CharString& str, size_t unicodePos, char) //utf8-cha
template <class WideString> inline
size_t findUnicodePosWide(const WideString& str, size_t unicodePos, Int2Type<2>) //windows: utf16-wchar_t
{
- typedef typename GetCharType<WideString>::Type CharType;
+ using CharType = typename GetCharType<WideString>::Type;
const CharType* strFirst = strBegin(str);
const size_t strLen = strLength(str);
bgstack15