From 9043b32bb1835628c5a1d8be4a271c848443c629 Mon Sep 17 00:00:00 2001 From: Daniel Wilhelm Date: Tue, 24 May 2016 22:10:57 +0200 Subject: 8.1 --- zen/utf.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'zen/utf.h') 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 inline size_t unicodeLength(const CharString& str, char) //utf8 { - typedef typename GetCharType::Type CharType; + using CharType = typename GetCharType::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 inline size_t unicodeLengthWide(const WideString& str, Int2Type<2>) //windows: utf16-wchar_t { - typedef typename GetCharType::Type CharType; + using CharType = typename GetCharType::Type; const CharType* strFirst = strBegin(str); const CharType* const strLast = strFirst + strLength(str); @@ -302,7 +302,7 @@ namespace implementation template inline size_t findUnicodePos(const CharString& str, size_t unicodePos, char) //utf8-char { - typedef typename GetCharType::Type CharType; + using CharType = typename GetCharType::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 inline size_t findUnicodePosWide(const WideString& str, size_t unicodePos, Int2Type<2>) //windows: utf16-wchar_t { - typedef typename GetCharType::Type CharType; + using CharType = typename GetCharType::Type; const CharType* strFirst = strBegin(str); const size_t strLen = strLength(str); -- cgit