|
|
@ -787,6 +787,17 @@ UTF<CharT>::nfc_string UTF<CharT>::nfc_string::substr(std::size_t pos, std::size |
|
|
|
return nfc_string{s.substr(pos,count)}; |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
template<class CharT> |
|
|
|
void UTF<CharT>::nfc_string::normalize() |
|
|
|
{ |
|
|
|
if(isNFC_quick_check(s) != IsNFC::Yes) |
|
|
|
{ |
|
|
|
s = generate( createNFC( fromUtf_decompose(s) )); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
// convenience function to avoid ::strdup(pEp::toNFC<char>(text).c_str());
|
|
|
|
// and unecessary temporary std::string etc.
|
|
|
|
char* strdup_NFC(std::string_view s) |
|
|
|