From f8725c0624afe32343bedb8421a47ade32dbbca2 Mon Sep 17 00:00:00 2001 From: Michael Sippel <micha@fragmental.art> Date: Wed, 19 Mar 2025 17:28:04 +0100 Subject: [PATCH] unicode morphisms: switch to 0 terminator instead of '\0' --- morphisms/unicode.morphism-base | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/morphisms/unicode.morphism-base b/morphisms/unicode.morphism-base index db4b342..c8e8a87 100644 --- a/morphisms/unicode.morphism-base +++ b/morphisms/unicode.morphism-base @@ -3,7 +3,7 @@ ``` morph_string_as_ascii_to_utf8 () - <Seq ~ <ValueTerminated '\0'> Char~Ascii~x86.UInt8> + <Seq ~ <ValueTerminated 0> Char~Ascii~x86.UInt8> --> <Seq Char~Unicode> ~ UTF-8 ~ <Seq~<ValueTerminated 0> x86.UInt8> @@ -17,7 +17,7 @@ morph_string_as_utf8_to_ascii () <Seq Char~Unicode> ~ UTF-8 ~ <Seq~<ValueTerminated 0> x86.UInt8> ---> <Seq ~ <ValueTerminated '\0'> Char~Ascii~x86.UInt8> +--> <Seq ~ <ValueTerminated 0> Char~Ascii~x86.UInt8> ``` while( *src ) { if( *src < 128 ) { @@ -32,7 +32,7 @@ morph_string_as_utf8_to_ascii () ``` morph_string_as_ascii_to_utf32 () - <Seq ~ <ValueTerminated '\0'> Char~Ascii~x86.UInt8> + <Seq ~ <ValueTerminated 0> Char~Ascii~x86.UInt8> --> <Seq Char~Unicode> ~ UTF-32LE ~ <Seq~<ValueTerminated 0> x86.UInt32>