From 97143a1cce92f17699694f5164d5b6bad373db1e Mon Sep 17 00:00:00 2001 From: Igor Zarzycki Date: Wed, 25 Sep 2024 20:20:19 +0200 Subject: [PATCH] Add Latin4 text encoding. --- .../crap/text_encoding.d/textencodingtype.h | 53 +++++++++++++++++++ 1 file changed, 53 insertions(+) diff --git a/include/crap/text_encoding.d/textencodingtype.h b/include/crap/text_encoding.d/textencodingtype.h index 2103d1e..6151119 100644 --- a/include/crap/text_encoding.d/textencodingtype.h +++ b/include/crap/text_encoding.d/textencodingtype.h @@ -309,6 +309,9 @@ namespace crap using text_encoding_id_ISOLatin3_t = std :: integral_constant :: id, textEncodingType :: id :: ISOLatin3>; + using text_encoding_id_ISOLatin4_t = + std :: integral_constant :: id, textEncodingType :: id :: ISOLatin4>; + template <> struct textEncodingType : textEncodingType { @@ -371,6 +374,20 @@ namespace crap string >; }; + template <> + struct textEncodingType : textEncodingType + { + using mib = text_encoding_id_ISOLatin4_t; + using name = string; //Libstdc++ uses name ISO-8859-4:1987 + using aliases = typeList< + string, + string, + string, + string, + string, + string >; + }; + template <> struct textEncodingType > : textEncodingType @@ -419,6 +436,12 @@ namespace crap { }; + template <> + struct textEncodingType > + : textEncodingType + { + }; + template <> struct textEncodingType > : textEncodingType @@ -461,6 +484,12 @@ namespace crap { }; + template <> + struct textEncodingType > + : textEncodingType + { + }; + template <> struct textEncodingType > : textEncodingType @@ -479,6 +508,12 @@ namespace crap { }; + template <> + struct textEncodingType > + : textEncodingType + { + }; + template <> struct textEncodingType > : textEncodingType @@ -497,6 +532,12 @@ namespace crap { }; + template <> + struct textEncodingType > + : textEncodingType + { + }; + template <> struct textEncodingType > : textEncodingType @@ -521,6 +562,12 @@ namespace crap { }; + template <> + struct textEncodingType > + : textEncodingType + { + }; + template <> struct textEncodingType > : textEncodingType @@ -539,6 +586,12 @@ namespace crap { }; + template <> + struct textEncodingType > + : textEncodingType + { + }; + template <> struct textEncodingType > : textEncodingType