summaryrefslogtreecommitdiff
path: root/zen/zstring.h
diff options
context:
space:
mode:
authorB. Stack <bgstack15@gmail.com>2022-10-11 11:16:39 -0400
committerB. Stack <bgstack15@gmail.com>2022-10-11 11:16:39 -0400
commitcab22f2dc3c5f41b5163f74cbb233e390edff6ff (patch)
treea49cfd729d9793681a57fa6f7409b0f0848e9ede /zen/zstring.h
parentMerge branch 'b11.25' into 'master' (diff)
downloadFreeFileSync-cab22f2dc3c5f41b5163f74cbb233e390edff6ff.tar.gz
FreeFileSync-cab22f2dc3c5f41b5163f74cbb233e390edff6ff.tar.bz2
FreeFileSync-cab22f2dc3c5f41b5163f74cbb233e390edff6ff.zip
add upstream 11.26
Diffstat (limited to 'zen/zstring.h')
-rw-r--r--zen/zstring.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/zen/zstring.h b/zen/zstring.h
index 692217c1..d0a8eb4c 100644
--- a/zen/zstring.h
+++ b/zen/zstring.h
@@ -27,7 +27,13 @@ using Zstringc = zen::Zbase<char>;
//Windows, Linux: precomposed
//macOS: decomposed
-Zstring getUnicodeNormalForm(const Zstring& str);
+enum class UnicodeNormalForm
+{
+ nfc, //precomposed
+ nfd, //decomposed
+ native = nfc,
+};
+Zstring getUnicodeNormalForm(const Zstring& str, UnicodeNormalForm form = UnicodeNormalForm::native);
/* "In fact, Unicode declares that there is an equivalence relationship between decomposed and composed sequences,
and conformant software should not treat canonically equivalent sequences, whether composed or decomposed or something in between, as different."
https://www.win.tue.nl/~aeb/linux/uc/nfc_vs_nfd.html */
bgstack15