From 7a5f22cfe87f938ef58f92b48ac379dc1c4c81c7 Mon Sep 17 00:00:00 2001 From: "B. Stack" Date: Fri, 10 May 2024 11:21:56 -0400 Subject: add upstream 13.6 --- zen/utf.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'zen/utf.h') diff --git a/zen/utf.h b/zen/utf.h index aad05aba..0872fc8f 100644 --- a/zen/utf.h +++ b/zen/utf.h @@ -25,8 +25,8 @@ bool isValidUtf(const UtfString& str); //check for UTF-8 encoding errors template size_t unicodeLength(const UtfString& str); //return number of code points for UTF-encoded string -template -UtfString getUnicodeSubstring(const UtfString& str, size_t uniPosFirst, size_t uniPosLast); +template +UtfStringOut getUnicodeSubstring(const UtfStringIn& str, size_t uniPosFirst, size_t uniPosLast); @@ -310,14 +310,14 @@ size_t unicodeLength(const UtfString& str) //return number of code points (+ cor } -template inline -UtfString getUnicodeSubstring(const UtfString& str, size_t uniPosFirst, size_t uniPosLast) //return position of unicode char in UTF-encoded string +template inline +UtfStringOut getUnicodeSubstring(const UtfStringIn& str, size_t uniPosFirst, size_t uniPosLast) //return position of unicode char in UTF-encoded string { assert(uniPosFirst <= uniPosLast && uniPosLast <= unicodeLength(str)); using namespace impl; - using CharType = GetCharTypeT; + using CharType = GetCharTypeT; - UtfString output; + UtfStringOut output; assert(uniPosFirst <= uniPosLast); if (uniPosFirst >= uniPosLast) //optimize for empty range return output; -- cgit