From 74bc5b5210b07496c0d4ce0b881d00daa018d124 Mon Sep 17 00:00:00 2001 From: Charles Iliya Krempeaux Date: Fri, 27 Oct 2023 11:59:12 -0700 Subject: [PATCH] initial commits --- symbols/rune/lowercase.go | 19 +++++++++++++++++++ symbols/rune/symbols.go | 14 -------------- 2 files changed, 19 insertions(+), 14 deletions(-) create mode 100644 symbols/rune/lowercase.go diff --git a/symbols/rune/lowercase.go b/symbols/rune/lowercase.go new file mode 100644 index 0000000..0697046 --- /dev/null +++ b/symbols/rune/lowercase.go @@ -0,0 +1,19 @@ +package runesymbols + +import ( + "sourcecode.social/reiver/go-hexadeca/symbols/byte" +) + +// LowerCase is used with hexadeca.EncodeByte() to encode a byte into hexadecimal symbols using lower-case symbols from ASCII / Unicode UTF-8. +// I.e., +// +// '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'a', 'b', 'c', 'd', 'e', 'f' +// +// Example usage: +// +// mostSignificiant, leastSignificant := hexadeca.EncodeByte(value, runesymbols.LowerCase) +// +// If ‘value’ was 254 (== 0xFE) then ‘mostSignificiant’ would be 'f' and and ‘leastSignificant’ would be 'e'. +func LowerCase(value byte) rune { + return rune(bytesymbols.LowerCase(value)) +} diff --git a/symbols/rune/symbols.go b/symbols/rune/symbols.go index e1c0239..a5c0b5b 100644 --- a/symbols/rune/symbols.go +++ b/symbols/rune/symbols.go @@ -4,20 +4,6 @@ import ( "sourcecode.social/reiver/go-hexadeca/symbols/byte" ) -// LowerCase is used with hexadeca.EncodeByte() to encode a byte into hexadecimal symbols using lower-case symbols from ASCII / Unicode UTF-8. -// I.e., -// -// '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'a', 'b', 'c', 'd', 'e', 'f' -// -// Example usage: -// -// mostSignificiant, leastSignificant := hexadeca.EncodeByte(value, runesymbols.LowerCase) -// -// If ‘value’ was 254 (== 0xFE) then ‘mostSignificiant’ would be 'f' and and ‘leastSignificant’ would be 'e'. -func LowerCase(value byte) rune { - return rune(bytesymbols.LowerCase(value)) -} - // Persian is used with hexadeca.EncodeByte() to encode a byte into hexadecimal symbols using Persian symbols from Unicode UTF-8. // I.e., //